Lines Matching +full:qrb5165 +full:- +full:rb5 +full:- +full:sndcard
1 // SPDX-License-Identifier: GPL-2.0
8 #include <sound/soc-dapm.h>
12 #include <linux/input-event-codes.h>
30 struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_init()
32 return qcom_snd_wcd_jack_setup(rtd, &data->jack, &data->jack_setup); in sm8250_snd_init()
43 rate->min = rate->max = 48000; in sm8250_be_hw_params_fixup()
44 channels->min = channels->max = 2; in sm8250_be_hw_params_fixup()
53 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sm8250_snd_startup()
57 switch (cpu_dai->id) { in sm8250_snd_startup()
75 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sm8250_snd_hw_params()
77 struct sm8250_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_hw_params()
79 return qcom_snd_sdw_hw_params(substream, params, &pdata->sruntime[cpu_dai->id]); in sm8250_snd_hw_params()
84 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sm8250_snd_prepare()
86 struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_prepare()
87 struct sdw_stream_runtime *sruntime = data->sruntime[cpu_dai->id]; in sm8250_snd_prepare()
90 &data->stream_prepared[cpu_dai->id]); in sm8250_snd_prepare()
95 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sm8250_snd_hw_free()
96 struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_hw_free()
98 struct sdw_stream_runtime *sruntime = data->sruntime[cpu_dai->id]; in sm8250_snd_hw_free()
101 &data->stream_prepared[cpu_dai->id]); in sm8250_snd_hw_free()
117 if (link->no_pcm == 1) { in sm8250_add_be_ops()
118 link->init = sm8250_snd_init; in sm8250_add_be_ops()
119 link->be_hw_params_fixup = sm8250_be_hw_params_fixup; in sm8250_add_be_ops()
120 link->ops = &sm8250_be_ops; in sm8250_add_be_ops()
129 struct device *dev = &pdev->dev; in sm8250_platform_probe()
134 return -ENOMEM; in sm8250_platform_probe()
136 card->owner = THIS_MODULE; in sm8250_platform_probe()
140 return -ENOMEM; in sm8250_platform_probe()
142 card->dev = dev; in sm8250_platform_probe()
149 card->driver_name = DRIVER_NAME; in sm8250_platform_probe()
155 {.compatible = "qcom,sm8250-sndcard"},
156 {.compatible = "qcom,qrb4210-rb2-sndcard"},
157 {.compatible = "qcom,qrb5165-rb5-sndcard"},
166 .name = "snd-sm8250",