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()
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 sm2450_snd_shutdown()
77 struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sm2450_snd_shutdown()
78 struct sdw_stream_runtime *sruntime = data->sruntime[cpu_dai->id]; in sm2450_snd_shutdown()
80 data->sruntime[cpu_dai->id] = NULL; in sm2450_snd_shutdown()
87 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sm8250_snd_hw_params()
89 struct sm8250_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_hw_params()
91 return qcom_snd_sdw_hw_params(substream, params, &pdata->sruntime[cpu_dai->id]); in sm8250_snd_hw_params()
96 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sm8250_snd_prepare()
98 struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_prepare()
99 struct sdw_stream_runtime *sruntime = data->sruntime[cpu_dai->id]; in sm8250_snd_prepare()
102 &data->stream_prepared[cpu_dai->id]); in sm8250_snd_prepare()
107 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sm8250_snd_hw_free()
108 struct sm8250_snd_data *data = snd_soc_card_get_drvdata(rtd->card); in sm8250_snd_hw_free()
110 struct sdw_stream_runtime *sruntime = data->sruntime[cpu_dai->id]; in sm8250_snd_hw_free()
113 &data->stream_prepared[cpu_dai->id]); in sm8250_snd_hw_free()
130 if (link->no_pcm == 1) { in sm8250_add_be_ops()
131 link->init = sm8250_snd_init; in sm8250_add_be_ops()
132 link->be_hw_params_fixup = sm8250_be_hw_params_fixup; in sm8250_add_be_ops()
133 link->ops = &sm8250_be_ops; in sm8250_add_be_ops()
142 struct device *dev = &pdev->dev; in sm8250_platform_probe()
147 return -ENOMEM; in sm8250_platform_probe()
149 card->owner = THIS_MODULE; in sm8250_platform_probe()
153 return -ENOMEM; in sm8250_platform_probe()
155 card->dev = dev; in sm8250_platform_probe()
162 card->driver_name = DRIVER_NAME; in sm8250_platform_probe()
168 {.compatible = "qcom,sm8250-sndcard"},
169 {.compatible = "qcom,qrb5165-rb5-sndcard"},
178 .name = "snd-sm8250",