Lines Matching refs:cpu_dai
43 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in snd_soc_runtime_activate() local
50 cpu_dai->playback_active++; in snd_soc_runtime_activate()
54 cpu_dai->capture_active++; in snd_soc_runtime_activate()
59 cpu_dai->active++; in snd_soc_runtime_activate()
60 cpu_dai->component->active++; in snd_soc_runtime_activate()
79 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in snd_soc_runtime_deactivate() local
86 cpu_dai->playback_active--; in snd_soc_runtime_deactivate()
90 cpu_dai->capture_active--; in snd_soc_runtime_deactivate()
95 cpu_dai->active--; in snd_soc_runtime_deactivate()
96 cpu_dai->component->active--; in snd_soc_runtime_deactivate()
239 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_params_symmetry() local
248 symmetry = cpu_dai->driver->symmetric_rates || in soc_pcm_params_symmetry()
254 if (symmetry && cpu_dai->rate && cpu_dai->rate != rate) { in soc_pcm_params_symmetry()
256 cpu_dai->rate, rate); in soc_pcm_params_symmetry()
260 symmetry = cpu_dai->driver->symmetric_channels || in soc_pcm_params_symmetry()
266 if (symmetry && cpu_dai->channels && cpu_dai->channels != channels) { in soc_pcm_params_symmetry()
268 cpu_dai->channels, channels); in soc_pcm_params_symmetry()
272 symmetry = cpu_dai->driver->symmetric_samplebits || in soc_pcm_params_symmetry()
278 if (symmetry && cpu_dai->sample_bits && cpu_dai->sample_bits != sample_bits) { in soc_pcm_params_symmetry()
280 cpu_dai->sample_bits, sample_bits); in soc_pcm_params_symmetry()
290 struct snd_soc_dai_driver *cpu_driver = rtd->cpu_dai->driver; in soc_pcm_has_symmetry()
325 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_apply_msb() local
338 cpu_bits = cpu_dai->driver->playback.sig_bits; in soc_pcm_apply_msb()
347 cpu_bits = cpu_dai->driver->capture.sig_bits; in soc_pcm_apply_msb()
360 struct snd_soc_dai_driver *cpu_dai_drv = rtd->cpu_dai->driver; in soc_pcm_init_runtime_hw()
494 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_open() local
499 pinctrl_pm_select_default_state(cpu_dai->dev); in soc_pcm_open()
512 ret = snd_soc_dai_startup(cpu_dai, substream); in soc_pcm_open()
514 dev_err(cpu_dai->dev, "ASoC: can't open interface %s: %d\n", in soc_pcm_open()
515 cpu_dai->name, ret); in soc_pcm_open()
563 codec_dai_name, cpu_dai->name); in soc_pcm_open()
568 codec_dai_name, cpu_dai->name); in soc_pcm_open()
574 codec_dai_name, cpu_dai->name); in soc_pcm_open()
581 if (cpu_dai->active) { in soc_pcm_open()
582 ret = soc_pcm_apply_symmetry(substream, cpu_dai); in soc_pcm_open()
596 codec_dai_name, cpu_dai->name); in soc_pcm_open()
624 snd_soc_dai_shutdown(cpu_dai, substream); in soc_pcm_open()
639 if (!cpu_dai->active) in soc_pcm_open()
640 pinctrl_pm_select_sleep_state(cpu_dai->dev); in soc_pcm_open()
693 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_close() local
702 if (!cpu_dai->active) in soc_pcm_close()
703 cpu_dai->rate = 0; in soc_pcm_close()
710 snd_soc_dai_digital_mute(cpu_dai, 1, substream->stream); in soc_pcm_close()
712 snd_soc_dai_shutdown(cpu_dai, substream); in soc_pcm_close()
754 if (!cpu_dai->active) in soc_pcm_close()
755 pinctrl_pm_select_sleep_state(cpu_dai->dev); in soc_pcm_close()
770 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_prepare() local
806 ret = snd_soc_dai_prepare(cpu_dai, substream); in soc_pcm_prepare()
808 dev_err(cpu_dai->dev, in soc_pcm_prepare()
826 snd_soc_dai_digital_mute(cpu_dai, 0, substream->stream); in soc_pcm_prepare()
875 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_hw_params() local
936 ret = snd_soc_dai_hw_params(cpu_dai, substream, params); in soc_pcm_hw_params()
941 cpu_dai->rate = params_rate(params); in soc_pcm_hw_params()
942 cpu_dai->channels = params_channels(params); in soc_pcm_hw_params()
943 cpu_dai->sample_bits = in soc_pcm_hw_params()
946 snd_soc_dapm_update_dai(substream, params, cpu_dai); in soc_pcm_hw_params()
971 snd_soc_dai_hw_free(cpu_dai, substream); in soc_pcm_hw_params()
972 cpu_dai->rate = 0; in soc_pcm_hw_params()
999 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_hw_free() local
1007 if (cpu_dai->active == 1) { in soc_pcm_hw_free()
1008 cpu_dai->rate = 0; in soc_pcm_hw_free()
1009 cpu_dai->channels = 0; in soc_pcm_hw_free()
1010 cpu_dai->sample_bits = 0; in soc_pcm_hw_free()
1044 snd_soc_dai_hw_free(cpu_dai, substream); in soc_pcm_hw_free()
1055 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_trigger() local
1073 ret = snd_soc_dai_trigger(cpu_dai, substream, cmd); in soc_pcm_trigger()
1090 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_bespoke_trigger() local
1100 ret = snd_soc_dai_bespoke_trigger(cpu_dai, substream, cmd); in soc_pcm_bespoke_trigger()
1114 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_pointer() local
1130 delay += snd_soc_dai_delay(cpu_dai, substream); in soc_pcm_pointer()
1265 be->cpu_dai->playback_widget ? in dpcm_get_be()
1266 be->cpu_dai->playback_widget->name : "(not set)"); in dpcm_get_be()
1268 if (be->cpu_dai->playback_widget == widget) in dpcm_get_be()
1284 be->cpu_dai->capture_widget ? in dpcm_get_be()
1285 be->cpu_dai->capture_widget->name : "(not set)"); in dpcm_get_be()
1287 if (be->cpu_dai->capture_widget == widget) in dpcm_get_be()
1338 if (rtd->cpu_dai->playback_widget == widget) in dpcm_end_walk_at_be()
1351 if (rtd->cpu_dai->capture_widget == widget) in dpcm_end_walk_at_be()
1367 struct snd_soc_dai *cpu_dai = fe->cpu_dai; in dpcm_path_get() local
1371 paths = snd_soc_dapm_dai_get_connected_widgets(cpu_dai, stream, list, in dpcm_path_get()
1394 widget = dai_get_widget(dpcm->be->cpu_dai, stream); in dpcm_prune_paths()
1693 struct snd_soc_dai_driver *cpu_dai_drv = be->cpu_dai->driver; in dpcm_runtime_merge_chan()
1745 struct snd_soc_dai_driver *cpu_dai_drv = be->cpu_dai->driver; in dpcm_runtime_merge_rate()
1788 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in dpcm_set_fe_runtime() local
1789 struct snd_soc_dai_driver *cpu_dai_drv = cpu_dai->driver; in dpcm_set_fe_runtime()
1831 struct snd_soc_dai *fe_cpu_dai = fe->cpu_dai; in dpcm_apply_symmetry()
1866 if (rtd->cpu_dai->active) { in dpcm_apply_symmetry()
1868 rtd->cpu_dai); in dpcm_apply_symmetry()
2627 if (!fe->cpu_dai->active) in soc_dpcm_fe_runtime_update()
2635 if (!snd_soc_dai_stream_valid(fe->cpu_dai, SNDRV_PCM_STREAM_PLAYBACK) || in soc_dpcm_fe_runtime_update()
2640 if (!fe->cpu_dai->playback_active || !fe->codec_dai->playback_active) in soc_dpcm_fe_runtime_update()
2666 if (!snd_soc_dai_stream_valid(fe->cpu_dai, SNDRV_PCM_STREAM_CAPTURE) || in soc_dpcm_fe_runtime_update()
2671 if (!fe->cpu_dai->capture_active || !fe->codec_dai->capture_active) in soc_dpcm_fe_runtime_update()
2825 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_new_pcm() local
2838 &cpu_dai->driver->playback : &cpu_dai->driver->capture; in soc_new_pcm()
2840 &cpu_dai->driver->capture : &cpu_dai->driver->playback; in soc_new_pcm()
2844 snd_soc_dai_stream_valid(cpu_dai, SNDRV_PCM_STREAM_PLAYBACK)) in soc_new_pcm()
2847 snd_soc_dai_stream_valid(cpu_dai, SNDRV_PCM_STREAM_CAPTURE)) in soc_new_pcm()
2969 cpu_dai->name); in soc_new_pcm()
3185 if (snd_soc_dai_stream_valid(fe->cpu_dai, SNDRV_PCM_STREAM_PLAYBACK)) in dpcm_state_read_file()
3189 if (snd_soc_dai_stream_valid(fe->cpu_dai, SNDRV_PCM_STREAM_CAPTURE)) in dpcm_state_read_file()