Lines Matching refs:cpu_dai

67 	struct snd_soc_dai *cpu_dai = rtd->cpu_dai;  in snd_soc_runtime_activate()  local
73 cpu_dai->playback_active++; in snd_soc_runtime_activate()
77 cpu_dai->capture_active++; in snd_soc_runtime_activate()
82 cpu_dai->active++; in snd_soc_runtime_activate()
83 cpu_dai->component->active++; in snd_soc_runtime_activate()
102 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in snd_soc_runtime_deactivate() local
108 cpu_dai->playback_active--; in snd_soc_runtime_deactivate()
112 cpu_dai->capture_active--; in snd_soc_runtime_deactivate()
117 cpu_dai->active--; in snd_soc_runtime_deactivate()
118 cpu_dai->component->active--; in snd_soc_runtime_deactivate()
145 return rtd->cpu_dai->component->ignore_pmdown_time && ignore; in snd_soc_runtime_ignore_pmdown_time()
253 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_params_symmetry() local
261 symmetry = cpu_dai->driver->symmetric_rates || in soc_pcm_params_symmetry()
267 if (symmetry && cpu_dai->rate && cpu_dai->rate != rate) { in soc_pcm_params_symmetry()
269 cpu_dai->rate, rate); in soc_pcm_params_symmetry()
273 symmetry = cpu_dai->driver->symmetric_channels || in soc_pcm_params_symmetry()
279 if (symmetry && cpu_dai->channels && cpu_dai->channels != channels) { in soc_pcm_params_symmetry()
281 cpu_dai->channels, channels); in soc_pcm_params_symmetry()
285 symmetry = cpu_dai->driver->symmetric_samplebits || in soc_pcm_params_symmetry()
291 if (symmetry && cpu_dai->sample_bits && cpu_dai->sample_bits != sample_bits) { in soc_pcm_params_symmetry()
293 cpu_dai->sample_bits, sample_bits); in soc_pcm_params_symmetry()
303 struct snd_soc_dai_driver *cpu_driver = rtd->cpu_dai->driver; in soc_pcm_has_symmetry()
337 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_apply_msb() local
351 cpu_bits = cpu_dai->driver->playback.sig_bits; in soc_pcm_apply_msb()
361 cpu_bits = cpu_dai->driver->capture.sig_bits; in soc_pcm_apply_msb()
373 struct snd_soc_dai_driver *cpu_dai_drv = rtd->cpu_dai->driver; in soc_pcm_init_runtime_hw()
453 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_open() local
458 pinctrl_pm_select_default_state(cpu_dai->dev); in soc_pcm_open()
461 pm_runtime_get_sync(cpu_dai->dev); in soc_pcm_open()
469 if (cpu_dai->driver->ops && cpu_dai->driver->ops->startup) { in soc_pcm_open()
470 ret = cpu_dai->driver->ops->startup(substream, cpu_dai); in soc_pcm_open()
472 dev_err(cpu_dai->dev, "ASoC: can't open interface" in soc_pcm_open()
473 " %s: %d\n", cpu_dai->name, ret); in soc_pcm_open()
531 codec_dai_name, cpu_dai->name); in soc_pcm_open()
536 codec_dai_name, cpu_dai->name); in soc_pcm_open()
542 codec_dai_name, cpu_dai->name); in soc_pcm_open()
549 if (cpu_dai->active) { in soc_pcm_open()
550 ret = soc_pcm_apply_symmetry(substream, cpu_dai); in soc_pcm_open()
565 codec_dai_name, cpu_dai->name); in soc_pcm_open()
597 if (cpu_dai->driver->ops->shutdown) in soc_pcm_open()
598 cpu_dai->driver->ops->shutdown(substream, cpu_dai); in soc_pcm_open()
605 pm_runtime_put(cpu_dai->dev); in soc_pcm_open()
610 if (!cpu_dai->active) in soc_pcm_open()
611 pinctrl_pm_select_sleep_state(cpu_dai->dev); in soc_pcm_open()
653 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_close() local
662 if (!cpu_dai->active) in soc_pcm_close()
663 cpu_dai->rate = 0; in soc_pcm_close()
671 snd_soc_dai_digital_mute(cpu_dai, 1, substream->stream); in soc_pcm_close()
673 if (cpu_dai->driver->ops->shutdown) in soc_pcm_close()
674 cpu_dai->driver->ops->shutdown(substream, cpu_dai); in soc_pcm_close()
712 pm_runtime_put(cpu_dai->dev); in soc_pcm_close()
717 if (!cpu_dai->active) in soc_pcm_close()
718 pinctrl_pm_select_sleep_state(cpu_dai->dev); in soc_pcm_close()
732 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_prepare() local
770 if (cpu_dai->driver->ops && cpu_dai->driver->ops->prepare) { in soc_pcm_prepare()
771 ret = cpu_dai->driver->ops->prepare(substream, cpu_dai); in soc_pcm_prepare()
773 dev_err(cpu_dai->dev, in soc_pcm_prepare()
792 snd_soc_dai_digital_mute(cpu_dai, 0, substream->stream); in soc_pcm_prepare()
838 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_hw_params() local
898 ret = soc_dai_hw_params(substream, params, cpu_dai); in soc_pcm_hw_params()
912 cpu_dai->rate = params_rate(params); in soc_pcm_hw_params()
913 cpu_dai->channels = params_channels(params); in soc_pcm_hw_params()
914 cpu_dai->sample_bits = in soc_pcm_hw_params()
922 if (cpu_dai->driver->ops && cpu_dai->driver->ops->hw_free) in soc_pcm_hw_params()
923 cpu_dai->driver->ops->hw_free(substream, cpu_dai); in soc_pcm_hw_params()
950 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_hw_free() local
958 if (cpu_dai->active == 1) { in soc_pcm_hw_free()
959 cpu_dai->rate = 0; in soc_pcm_hw_free()
960 cpu_dai->channels = 0; in soc_pcm_hw_free()
961 cpu_dai->sample_bits = 0; in soc_pcm_hw_free()
996 if (cpu_dai->driver->ops && cpu_dai->driver->ops->hw_free) in soc_pcm_hw_free()
997 cpu_dai->driver->ops->hw_free(substream, cpu_dai); in soc_pcm_hw_free()
1007 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_trigger() local
1027 if (cpu_dai->driver->ops && cpu_dai->driver->ops->trigger) { in soc_pcm_trigger()
1028 ret = cpu_dai->driver->ops->trigger(substream, cmd, cpu_dai); in soc_pcm_trigger()
1047 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_bespoke_trigger() local
1068 if (cpu_dai->driver->ops && cpu_dai->driver->ops->bespoke_trigger) { in soc_pcm_bespoke_trigger()
1069 ret = cpu_dai->driver->ops->bespoke_trigger(substream, cmd, cpu_dai); in soc_pcm_bespoke_trigger()
1084 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_pointer() local
1095 if (cpu_dai->driver->ops && cpu_dai->driver->ops->delay) in soc_pcm_pointer()
1096 delay += cpu_dai->driver->ops->delay(substream, cpu_dai); in soc_pcm_pointer()
1225 if (be->cpu_dai->playback_widget == widget) in dpcm_get_be()
1242 if (be->cpu_dai->capture_widget == widget) in dpcm_get_be()
1283 struct snd_soc_dai *cpu_dai = fe->cpu_dai; in dpcm_path_get() local
1287 paths = snd_soc_dapm_dai_get_connected_widgets(cpu_dai, stream, list); in dpcm_path_get()
1308 widget = dai_get_widget(dpcm->be->cpu_dai, stream); in dpcm_prune_paths()
1586 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in dpcm_set_fe_runtime() local
1587 struct snd_soc_dai_driver *cpu_dai_drv = cpu_dai->driver; in dpcm_set_fe_runtime()
2359 if (!fe->cpu_dai->active) in soc_dpcm_runtime_update()
2367 if (!fe->cpu_dai->driver->playback.channels_min in soc_dpcm_runtime_update()
2372 if (!fe->cpu_dai->playback_active in soc_dpcm_runtime_update()
2403 if (!fe->cpu_dai->driver->capture.channels_min in soc_dpcm_runtime_update()
2408 if (!fe->cpu_dai->capture_active in soc_dpcm_runtime_update()
2536 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_new_pcm() local
2554 capture = capture && cpu_dai->driver->capture.channels_min; in soc_new_pcm()
2555 playback = playback && cpu_dai->driver->playback.channels_min; in soc_new_pcm()
2659 cpu_dai->name); in soc_new_pcm()
2870 if (fe->cpu_dai->driver->playback.channels_min) in dpcm_state_read_file()
2874 if (fe->cpu_dai->driver->capture.channels_min) in dpcm_state_read_file()