Lines Matching refs:cpu_dai
50 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sdm845_slim_snd_hw_params() local
62 pdata->sruntime[cpu_dai->id] = sruntime; in sdm845_slim_snd_hw_params()
76 ret = snd_soc_dai_set_channel_map(cpu_dai, 0, NULL, in sdm845_slim_snd_hw_params()
79 ret = snd_soc_dai_set_channel_map(cpu_dai, tx_ch_cnt, in sdm845_slim_snd_hw_params()
90 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sdm845_tdm_snd_hw_params() local
107 ret = snd_soc_dai_set_tdm_slot(cpu_dai, 0, 0x3, in sdm845_tdm_snd_hw_params()
115 ret = snd_soc_dai_set_channel_map(cpu_dai, 0, NULL, in sdm845_tdm_snd_hw_params()
123 ret = snd_soc_dai_set_tdm_slot(cpu_dai, 0xf, 0, in sdm845_tdm_snd_hw_params()
131 ret = snd_soc_dai_set_channel_map(cpu_dai, channels, in sdm845_tdm_snd_hw_params()
175 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sdm845_snd_hw_params() local
179 switch (cpu_dai->id) { in sdm845_snd_hw_params()
207 pr_err("%s: invalid dai id 0x%x\n", __func__, cpu_dai->id); in sdm845_snd_hw_params()
225 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sdm845_dai_init() local
264 switch (cpu_dai->id) { in sdm845_dai_init()
308 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sdm845_snd_startup() local
313 switch (cpu_dai->id) { in sdm845_snd_startup()
318 snd_soc_dai_set_sysclk(cpu_dai, in sdm845_snd_startup()
321 snd_soc_dai_set_sysclk(cpu_dai, in sdm845_snd_startup()
325 snd_soc_dai_set_fmt(cpu_dai, fmt); in sdm845_snd_startup()
332 snd_soc_dai_set_sysclk(cpu_dai, in sdm845_snd_startup()
336 snd_soc_dai_set_fmt(cpu_dai, fmt); in sdm845_snd_startup()
340 snd_soc_dai_set_sysclk(cpu_dai, in sdm845_snd_startup()
343 snd_soc_dai_set_fmt(cpu_dai, SND_SOC_DAIFMT_CBS_CFS); in sdm845_snd_startup()
351 snd_soc_dai_set_sysclk(cpu_dai, in sdm845_snd_startup()
387 pr_err("%s: invalid dai id 0x%x\n", __func__, cpu_dai->id); in sdm845_snd_startup()
398 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sdm845_snd_shutdown() local
400 switch (cpu_dai->id) { in sdm845_snd_shutdown()
404 snd_soc_dai_set_sysclk(cpu_dai, in sdm845_snd_shutdown()
407 snd_soc_dai_set_sysclk(cpu_dai, in sdm845_snd_shutdown()
415 snd_soc_dai_set_sysclk(cpu_dai, in sdm845_snd_shutdown()
424 snd_soc_dai_set_sysclk(cpu_dai, in sdm845_snd_shutdown()
434 pr_err("%s: invalid dai id 0x%x\n", __func__, cpu_dai->id); in sdm845_snd_shutdown()
443 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sdm845_snd_prepare() local
444 struct sdw_stream_runtime *sruntime = data->sruntime[cpu_dai->id]; in sdm845_snd_prepare()
450 if (data->stream_prepared[cpu_dai->id]) { in sdm845_snd_prepare()
453 data->stream_prepared[cpu_dai->id] = false; in sdm845_snd_prepare()
473 data->stream_prepared[cpu_dai->id] = true; in sdm845_snd_prepare()
482 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); in sdm845_snd_hw_free() local
483 struct sdw_stream_runtime *sruntime = data->sruntime[cpu_dai->id]; in sdm845_snd_hw_free()
485 if (sruntime && data->stream_prepared[cpu_dai->id]) { in sdm845_snd_hw_free()
488 data->stream_prepared[cpu_dai->id] = false; in sdm845_snd_hw_free()