Lines Matching refs:cpu_dai

49 	struct snd_soc_dai *cpu_dai = rtd->cpu_dai;  in snd_soc_runtime_activate()  local
55 cpu_dai->playback_active++; in snd_soc_runtime_activate()
59 cpu_dai->capture_active++; in snd_soc_runtime_activate()
64 cpu_dai->active++; in snd_soc_runtime_activate()
65 cpu_dai->component->active++; in snd_soc_runtime_activate()
84 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in snd_soc_runtime_deactivate() local
90 cpu_dai->playback_active--; in snd_soc_runtime_deactivate()
94 cpu_dai->capture_active--; in snd_soc_runtime_deactivate()
99 cpu_dai->active--; in snd_soc_runtime_deactivate()
100 cpu_dai->component->active--; in snd_soc_runtime_deactivate()
127 return rtd->cpu_dai->component->ignore_pmdown_time && ignore; in snd_soc_runtime_ignore_pmdown_time()
237 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_params_symmetry() local
245 symmetry = cpu_dai->driver->symmetric_rates || in soc_pcm_params_symmetry()
251 if (symmetry && cpu_dai->rate && cpu_dai->rate != rate) { in soc_pcm_params_symmetry()
253 cpu_dai->rate, rate); in soc_pcm_params_symmetry()
257 symmetry = cpu_dai->driver->symmetric_channels || in soc_pcm_params_symmetry()
263 if (symmetry && cpu_dai->channels && cpu_dai->channels != channels) { in soc_pcm_params_symmetry()
265 cpu_dai->channels, channels); in soc_pcm_params_symmetry()
269 symmetry = cpu_dai->driver->symmetric_samplebits || in soc_pcm_params_symmetry()
275 if (symmetry && cpu_dai->sample_bits && cpu_dai->sample_bits != sample_bits) { in soc_pcm_params_symmetry()
277 cpu_dai->sample_bits, sample_bits); in soc_pcm_params_symmetry()
287 struct snd_soc_dai_driver *cpu_driver = rtd->cpu_dai->driver; in soc_pcm_has_symmetry()
321 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_apply_msb() local
335 cpu_bits = cpu_dai->driver->playback.sig_bits; in soc_pcm_apply_msb()
345 cpu_bits = cpu_dai->driver->capture.sig_bits; in soc_pcm_apply_msb()
357 struct snd_soc_dai_driver *cpu_dai_drv = rtd->cpu_dai->driver; in soc_pcm_init_runtime_hw()
423 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_open() local
428 pinctrl_pm_select_default_state(cpu_dai->dev); in soc_pcm_open()
431 pm_runtime_get_sync(cpu_dai->dev); in soc_pcm_open()
439 if (cpu_dai->driver->ops && cpu_dai->driver->ops->startup) { in soc_pcm_open()
440 ret = cpu_dai->driver->ops->startup(substream, cpu_dai); in soc_pcm_open()
442 dev_err(cpu_dai->dev, "ASoC: can't open interface" in soc_pcm_open()
443 " %s: %d\n", cpu_dai->name, ret); in soc_pcm_open()
501 codec_dai_name, cpu_dai->name); in soc_pcm_open()
506 codec_dai_name, cpu_dai->name); in soc_pcm_open()
512 codec_dai_name, cpu_dai->name); in soc_pcm_open()
519 if (cpu_dai->active) { in soc_pcm_open()
520 ret = soc_pcm_apply_symmetry(substream, cpu_dai); in soc_pcm_open()
535 codec_dai_name, cpu_dai->name); in soc_pcm_open()
567 if (cpu_dai->driver->ops->shutdown) in soc_pcm_open()
568 cpu_dai->driver->ops->shutdown(substream, cpu_dai); in soc_pcm_open()
575 pm_runtime_put(cpu_dai->dev); in soc_pcm_open()
580 if (!cpu_dai->active) in soc_pcm_open()
581 pinctrl_pm_select_sleep_state(cpu_dai->dev); in soc_pcm_open()
623 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_close() local
632 if (!cpu_dai->active) in soc_pcm_close()
633 cpu_dai->rate = 0; in soc_pcm_close()
641 snd_soc_dai_digital_mute(cpu_dai, 1, substream->stream); in soc_pcm_close()
643 if (cpu_dai->driver->ops->shutdown) in soc_pcm_close()
644 cpu_dai->driver->ops->shutdown(substream, cpu_dai); in soc_pcm_close()
682 pm_runtime_put(cpu_dai->dev); in soc_pcm_close()
687 if (!cpu_dai->active) in soc_pcm_close()
688 pinctrl_pm_select_sleep_state(cpu_dai->dev); in soc_pcm_close()
702 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_prepare() local
740 if (cpu_dai->driver->ops && cpu_dai->driver->ops->prepare) { in soc_pcm_prepare()
741 ret = cpu_dai->driver->ops->prepare(substream, cpu_dai); in soc_pcm_prepare()
743 dev_err(cpu_dai->dev, in soc_pcm_prepare()
762 snd_soc_dai_digital_mute(cpu_dai, 0, substream->stream); in soc_pcm_prepare()
808 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_hw_params() local
851 ret = soc_dai_hw_params(substream, params, cpu_dai); in soc_pcm_hw_params()
865 cpu_dai->rate = params_rate(params); in soc_pcm_hw_params()
866 cpu_dai->channels = params_channels(params); in soc_pcm_hw_params()
867 cpu_dai->sample_bits = in soc_pcm_hw_params()
875 if (cpu_dai->driver->ops && cpu_dai->driver->ops->hw_free) in soc_pcm_hw_params()
876 cpu_dai->driver->ops->hw_free(substream, cpu_dai); in soc_pcm_hw_params()
903 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_hw_free() local
911 if (cpu_dai->active == 1) { in soc_pcm_hw_free()
912 cpu_dai->rate = 0; in soc_pcm_hw_free()
913 cpu_dai->channels = 0; in soc_pcm_hw_free()
914 cpu_dai->sample_bits = 0; in soc_pcm_hw_free()
949 if (cpu_dai->driver->ops && cpu_dai->driver->ops->hw_free) in soc_pcm_hw_free()
950 cpu_dai->driver->ops->hw_free(substream, cpu_dai); in soc_pcm_hw_free()
960 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_trigger() local
980 if (cpu_dai->driver->ops && cpu_dai->driver->ops->trigger) { in soc_pcm_trigger()
981 ret = cpu_dai->driver->ops->trigger(substream, cmd, cpu_dai); in soc_pcm_trigger()
1000 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_bespoke_trigger() local
1021 if (cpu_dai->driver->ops && cpu_dai->driver->ops->bespoke_trigger) { in soc_pcm_bespoke_trigger()
1022 ret = cpu_dai->driver->ops->bespoke_trigger(substream, cmd, cpu_dai); in soc_pcm_bespoke_trigger()
1037 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_pointer() local
1048 if (cpu_dai->driver->ops && cpu_dai->driver->ops->delay) in soc_pcm_pointer()
1049 delay += cpu_dai->driver->ops->delay(substream, cpu_dai); in soc_pcm_pointer()
1178 if (be->cpu_dai->playback_widget == widget) in dpcm_get_be()
1195 if (be->cpu_dai->capture_widget == widget) in dpcm_get_be()
1236 struct snd_soc_dai *cpu_dai = fe->cpu_dai; in dpcm_path_get() local
1246 paths = snd_soc_dapm_dai_get_connected_widgets(cpu_dai, stream, &list); in dpcm_path_get()
1268 widget = dai_get_widget(dpcm->be->cpu_dai, stream); in dpcm_prune_paths()
1505 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in dpcm_set_fe_runtime() local
1506 struct snd_soc_dai_driver *cpu_dai_drv = cpu_dai->driver; in dpcm_set_fe_runtime()
2277 if (!fe->cpu_dai->active) in soc_dpcm_runtime_update()
2285 if (!fe->cpu_dai->driver->playback.channels_min in soc_dpcm_runtime_update()
2290 if (!fe->cpu_dai->playback_active in soc_dpcm_runtime_update()
2321 if (!fe->cpu_dai->driver->capture.channels_min in soc_dpcm_runtime_update()
2326 if (!fe->cpu_dai->capture_active in soc_dpcm_runtime_update()
2454 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_new_pcm() local
2472 capture = capture && cpu_dai->driver->capture.channels_min; in soc_new_pcm()
2473 playback = playback && cpu_dai->driver->playback.channels_min; in soc_new_pcm()
2577 cpu_dai->name); in soc_new_pcm()
2788 if (fe->cpu_dai->driver->playback.channels_min) in dpcm_state_read_file()
2792 if (fe->cpu_dai->driver->capture.channels_min) in dpcm_state_read_file()