Lines Matching +full:qrb5165 +full:- +full:rb5 +full:- +full:sndcard

1 // SPDX-License-Identifier: GPL-2.0
4 #include <dt-bindings/sound/qcom,q6afe.h>
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()
57 switch (cpu_dai->id) { in sm8250_snd_startup()
93 struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_shutdown()
94 struct sdw_stream_runtime *sruntime = data->sruntime[cpu_dai->id]; in sm8250_snd_shutdown()
96 data->sruntime[cpu_dai->id] = NULL; in sm8250_snd_shutdown()
105 struct sm8250_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_hw_params()
107 return qcom_snd_sdw_hw_params(substream, params, &pdata->sruntime[cpu_dai->id]); in sm8250_snd_hw_params()
114 struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_prepare()
115 struct sdw_stream_runtime *sruntime = data->sruntime[cpu_dai->id]; in sm8250_snd_prepare()
118 &data->stream_prepared[cpu_dai->id]); in sm8250_snd_prepare()
124 struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_hw_free()
126 struct sdw_stream_runtime *sruntime = data->sruntime[cpu_dai->id]; in sm8250_snd_hw_free()
129 &data->stream_prepared[cpu_dai->id]); in sm8250_snd_hw_free()
146 if (link->no_pcm == 1) { in sm8250_add_be_ops()
147 link->init = sm8250_snd_init; in sm8250_add_be_ops()
148 link->be_hw_params_fixup = sm8250_be_hw_params_fixup; in sm8250_add_be_ops()
149 link->ops = &sm8250_be_ops; in sm8250_add_be_ops()
158 struct device *dev = &pdev->dev; in sm8250_platform_probe()
163 return -ENOMEM; in sm8250_platform_probe()
165 card->owner = THIS_MODULE; in sm8250_platform_probe()
169 return -ENOMEM; in sm8250_platform_probe()
171 card->dev = dev; in sm8250_platform_probe()
178 card->driver_name = DRIVER_NAME; in sm8250_platform_probe()
184 {.compatible = "qcom,sm8250-sndcard"},
185 {.compatible = "qcom,qrb4210-rb2-sndcard"},
186 {.compatible = "qcom,qrb5165-rb5-sndcard"},
195 .name = "snd-sm8250",