Lines Matching refs:cpu_dai

61 	struct snd_soc_dai *cpu_dai = rtd->cpu_dai;  in snd_soc_runtime_activate()  local
67 cpu_dai->playback_active++; in snd_soc_runtime_activate()
71 cpu_dai->capture_active++; in snd_soc_runtime_activate()
76 cpu_dai->active++; in snd_soc_runtime_activate()
77 cpu_dai->component->active++; in snd_soc_runtime_activate()
96 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in snd_soc_runtime_deactivate() local
102 cpu_dai->playback_active--; in snd_soc_runtime_deactivate()
106 cpu_dai->capture_active--; in snd_soc_runtime_deactivate()
111 cpu_dai->active--; in snd_soc_runtime_deactivate()
112 cpu_dai->component->active--; in snd_soc_runtime_deactivate()
255 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_params_symmetry() local
263 symmetry = cpu_dai->driver->symmetric_rates || in soc_pcm_params_symmetry()
269 if (symmetry && cpu_dai->rate && cpu_dai->rate != rate) { in soc_pcm_params_symmetry()
271 cpu_dai->rate, rate); in soc_pcm_params_symmetry()
275 symmetry = cpu_dai->driver->symmetric_channels || in soc_pcm_params_symmetry()
281 if (symmetry && cpu_dai->channels && cpu_dai->channels != channels) { in soc_pcm_params_symmetry()
283 cpu_dai->channels, channels); in soc_pcm_params_symmetry()
287 symmetry = cpu_dai->driver->symmetric_samplebits || in soc_pcm_params_symmetry()
293 if (symmetry && cpu_dai->sample_bits && cpu_dai->sample_bits != sample_bits) { in soc_pcm_params_symmetry()
295 cpu_dai->sample_bits, sample_bits); in soc_pcm_params_symmetry()
305 struct snd_soc_dai_driver *cpu_driver = rtd->cpu_dai->driver; in soc_pcm_has_symmetry()
339 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_apply_msb() local
353 cpu_bits = cpu_dai->driver->playback.sig_bits; in soc_pcm_apply_msb()
363 cpu_bits = cpu_dai->driver->capture.sig_bits; in soc_pcm_apply_msb()
375 struct snd_soc_dai_driver *cpu_dai_drv = rtd->cpu_dai->driver; in soc_pcm_init_runtime_hw()
479 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_open() local
484 pinctrl_pm_select_default_state(cpu_dai->dev); in soc_pcm_open()
497 if (cpu_dai->driver->ops->startup) { in soc_pcm_open()
498 ret = cpu_dai->driver->ops->startup(substream, cpu_dai); in soc_pcm_open()
500 dev_err(cpu_dai->dev, "ASoC: can't open interface" in soc_pcm_open()
501 " %s: %d\n", cpu_dai->name, ret); in soc_pcm_open()
567 codec_dai_name, cpu_dai->name); in soc_pcm_open()
572 codec_dai_name, cpu_dai->name); in soc_pcm_open()
578 codec_dai_name, cpu_dai->name); in soc_pcm_open()
585 if (cpu_dai->active) { in soc_pcm_open()
586 ret = soc_pcm_apply_symmetry(substream, cpu_dai); in soc_pcm_open()
601 codec_dai_name, cpu_dai->name); in soc_pcm_open()
632 if (cpu_dai->driver->ops->shutdown) in soc_pcm_open()
633 cpu_dai->driver->ops->shutdown(substream, cpu_dai); in soc_pcm_open()
648 if (!cpu_dai->active) in soc_pcm_open()
649 pinctrl_pm_select_sleep_state(cpu_dai->dev); in soc_pcm_open()
692 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_close() local
701 if (!cpu_dai->active) in soc_pcm_close()
702 cpu_dai->rate = 0; in soc_pcm_close()
710 snd_soc_dai_digital_mute(cpu_dai, 1, substream->stream); in soc_pcm_close()
712 if (cpu_dai->driver->ops->shutdown) in soc_pcm_close()
713 cpu_dai->driver->ops->shutdown(substream, cpu_dai); in soc_pcm_close()
758 if (!cpu_dai->active) in soc_pcm_close()
759 pinctrl_pm_select_sleep_state(cpu_dai->dev); in soc_pcm_close()
774 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_prepare() local
818 if (cpu_dai->driver->ops->prepare) { in soc_pcm_prepare()
819 ret = cpu_dai->driver->ops->prepare(substream, cpu_dai); in soc_pcm_prepare()
821 dev_err(cpu_dai->dev, in soc_pcm_prepare()
840 snd_soc_dai_digital_mute(cpu_dai, 0, substream->stream); in soc_pcm_prepare()
922 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_hw_params() local
977 ret = soc_dai_hw_params(substream, params, cpu_dai); in soc_pcm_hw_params()
999 cpu_dai->rate = params_rate(params); in soc_pcm_hw_params()
1000 cpu_dai->channels = params_channels(params); in soc_pcm_hw_params()
1001 cpu_dai->sample_bits = in soc_pcm_hw_params()
1014 if (cpu_dai->driver->ops->hw_free) in soc_pcm_hw_params()
1015 cpu_dai->driver->ops->hw_free(substream, cpu_dai); in soc_pcm_hw_params()
1041 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_hw_free() local
1049 if (cpu_dai->active == 1) { in soc_pcm_hw_free()
1050 cpu_dai->rate = 0; in soc_pcm_hw_free()
1051 cpu_dai->channels = 0; in soc_pcm_hw_free()
1052 cpu_dai->sample_bits = 0; in soc_pcm_hw_free()
1086 if (cpu_dai->driver->ops->hw_free) in soc_pcm_hw_free()
1087 cpu_dai->driver->ops->hw_free(substream, cpu_dai); in soc_pcm_hw_free()
1098 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_trigger() local
1124 if (cpu_dai->driver->ops->trigger) { in soc_pcm_trigger()
1125 ret = cpu_dai->driver->ops->trigger(substream, cmd, cpu_dai); in soc_pcm_trigger()
1143 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_bespoke_trigger() local
1157 if (cpu_dai->driver->ops->bespoke_trigger) { in soc_pcm_bespoke_trigger()
1158 ret = cpu_dai->driver->ops->bespoke_trigger(substream, cmd, cpu_dai); in soc_pcm_bespoke_trigger()
1174 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_pointer() local
1199 if (cpu_dai->driver->ops->delay) in soc_pcm_pointer()
1200 delay += cpu_dai->driver->ops->delay(substream, cpu_dai); in soc_pcm_pointer()
1324 be->cpu_dai->playback_widget ? in dpcm_get_be()
1325 be->cpu_dai->playback_widget->name : "(not set)"); in dpcm_get_be()
1327 if (be->cpu_dai->playback_widget == widget) in dpcm_get_be()
1344 be->cpu_dai->capture_widget ? in dpcm_get_be()
1345 be->cpu_dai->capture_widget->name : "(not set)"); in dpcm_get_be()
1347 if (be->cpu_dai->capture_widget == widget) in dpcm_get_be()
1398 if (rtd->cpu_dai->playback_widget == widget) in dpcm_end_walk_at_be()
1412 if (rtd->cpu_dai->capture_widget == widget) in dpcm_end_walk_at_be()
1429 struct snd_soc_dai *cpu_dai = fe->cpu_dai; in dpcm_path_get() local
1433 paths = snd_soc_dapm_dai_get_connected_widgets(cpu_dai, stream, list, in dpcm_path_get()
1455 widget = dai_get_widget(dpcm->be->cpu_dai, stream); in dpcm_prune_paths()
1752 struct snd_soc_dai_driver *cpu_dai_drv = be->cpu_dai->driver; in dpcm_runtime_merge_chan()
1804 struct snd_soc_dai_driver *cpu_dai_drv = be->cpu_dai->driver; in dpcm_runtime_merge_rate()
1847 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in dpcm_set_fe_runtime() local
1848 struct snd_soc_dai_driver *cpu_dai_drv = cpu_dai->driver; in dpcm_set_fe_runtime()
1890 struct snd_soc_dai *fe_cpu_dai = fe->cpu_dai; in dpcm_apply_symmetry()
1919 if (rtd->cpu_dai->active) { in dpcm_apply_symmetry()
1921 rtd->cpu_dai); in dpcm_apply_symmetry()
2693 if (!fe->cpu_dai->active) in soc_dpcm_fe_runtime_update()
2701 if (!fe->cpu_dai->driver->playback.channels_min || in soc_dpcm_fe_runtime_update()
2706 if (!fe->cpu_dai->playback_active || !fe->codec_dai->playback_active) in soc_dpcm_fe_runtime_update()
2732 if (!fe->cpu_dai->driver->capture.channels_min || in soc_dpcm_fe_runtime_update()
2737 if (!fe->cpu_dai->capture_active || !fe->codec_dai->capture_active) in soc_dpcm_fe_runtime_update()
3032 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_new_pcm() local
3052 capture = capture && cpu_dai->driver->capture.channels_min; in soc_new_pcm()
3053 playback = playback && cpu_dai->driver->playback.channels_min; in soc_new_pcm()
3174 cpu_dai->name); in soc_new_pcm()
3376 if (fe->cpu_dai->driver->playback.channels_min) in dpcm_state_read_file()
3380 if (fe->cpu_dai->driver->capture.channels_min) in dpcm_state_read_file()