• Home
  • Raw
  • Download

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()
241 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_params_symmetry() local
249 symmetry = cpu_dai->driver->symmetric_rates || in soc_pcm_params_symmetry()
255 if (symmetry && cpu_dai->rate && cpu_dai->rate != rate) { in soc_pcm_params_symmetry()
257 cpu_dai->rate, rate); in soc_pcm_params_symmetry()
261 symmetry = cpu_dai->driver->symmetric_channels || in soc_pcm_params_symmetry()
267 if (symmetry && cpu_dai->channels && cpu_dai->channels != channels) { in soc_pcm_params_symmetry()
269 cpu_dai->channels, channels); in soc_pcm_params_symmetry()
273 symmetry = cpu_dai->driver->symmetric_samplebits || in soc_pcm_params_symmetry()
279 if (symmetry && cpu_dai->sample_bits && cpu_dai->sample_bits != sample_bits) { in soc_pcm_params_symmetry()
281 cpu_dai->sample_bits, sample_bits); in soc_pcm_params_symmetry()
291 struct snd_soc_dai_driver *cpu_driver = rtd->cpu_dai->driver; in soc_pcm_has_symmetry()
341 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_apply_msb() local
355 cpu_bits = cpu_dai->driver->playback.sig_bits; in soc_pcm_apply_msb()
365 cpu_bits = cpu_dai->driver->capture.sig_bits; in soc_pcm_apply_msb()
377 struct snd_soc_dai_driver *cpu_dai_drv = rtd->cpu_dai->driver; in soc_pcm_init_runtime_hw()
443 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_open() local
448 pinctrl_pm_select_default_state(cpu_dai->dev); in soc_pcm_open()
451 pm_runtime_get_sync(cpu_dai->dev); in soc_pcm_open()
459 if (cpu_dai->driver->ops && cpu_dai->driver->ops->startup) { in soc_pcm_open()
460 ret = cpu_dai->driver->ops->startup(substream, cpu_dai); in soc_pcm_open()
462 dev_err(cpu_dai->dev, "ASoC: can't open interface" in soc_pcm_open()
463 " %s: %d\n", cpu_dai->name, ret); in soc_pcm_open()
521 codec_dai_name, cpu_dai->name); in soc_pcm_open()
526 codec_dai_name, cpu_dai->name); in soc_pcm_open()
532 codec_dai_name, cpu_dai->name); in soc_pcm_open()
539 if (cpu_dai->active) { in soc_pcm_open()
540 ret = soc_pcm_apply_symmetry(substream, cpu_dai); in soc_pcm_open()
555 codec_dai_name, cpu_dai->name); in soc_pcm_open()
587 if (cpu_dai->driver->ops->shutdown) in soc_pcm_open()
588 cpu_dai->driver->ops->shutdown(substream, cpu_dai); in soc_pcm_open()
595 pm_runtime_put(cpu_dai->dev); in soc_pcm_open()
600 if (!cpu_dai->active) in soc_pcm_open()
601 pinctrl_pm_select_sleep_state(cpu_dai->dev); in soc_pcm_open()
643 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_close() local
652 if (!cpu_dai->active) in soc_pcm_close()
653 cpu_dai->rate = 0; in soc_pcm_close()
661 if (cpu_dai->driver->ops->shutdown) in soc_pcm_close()
662 cpu_dai->driver->ops->shutdown(substream, cpu_dai); in soc_pcm_close()
700 pm_runtime_put(cpu_dai->dev); in soc_pcm_close()
705 if (!cpu_dai->active) in soc_pcm_close()
706 pinctrl_pm_select_sleep_state(cpu_dai->dev); in soc_pcm_close()
720 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_prepare() local
757 if (cpu_dai->driver->ops && cpu_dai->driver->ops->prepare) { in soc_pcm_prepare()
758 ret = cpu_dai->driver->ops->prepare(substream, cpu_dai); in soc_pcm_prepare()
760 dev_err(cpu_dai->dev, "ASoC: DAI prepare error: %d\n", in soc_pcm_prepare()
824 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_hw_params() local
867 ret = soc_dai_hw_params(substream, params, cpu_dai); in soc_pcm_hw_params()
881 cpu_dai->rate = params_rate(params); in soc_pcm_hw_params()
882 cpu_dai->channels = params_channels(params); in soc_pcm_hw_params()
883 cpu_dai->sample_bits = in soc_pcm_hw_params()
891 if (cpu_dai->driver->ops && cpu_dai->driver->ops->hw_free) in soc_pcm_hw_params()
892 cpu_dai->driver->ops->hw_free(substream, cpu_dai); in soc_pcm_hw_params()
919 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_hw_free() local
927 if (cpu_dai->active == 1) { in soc_pcm_hw_free()
928 cpu_dai->rate = 0; in soc_pcm_hw_free()
929 cpu_dai->channels = 0; in soc_pcm_hw_free()
930 cpu_dai->sample_bits = 0; in soc_pcm_hw_free()
965 if (cpu_dai->driver->ops && cpu_dai->driver->ops->hw_free) in soc_pcm_hw_free()
966 cpu_dai->driver->ops->hw_free(substream, cpu_dai); in soc_pcm_hw_free()
976 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_trigger() local
996 if (cpu_dai->driver->ops && cpu_dai->driver->ops->trigger) { in soc_pcm_trigger()
997 ret = cpu_dai->driver->ops->trigger(substream, cmd, cpu_dai); in soc_pcm_trigger()
1016 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_bespoke_trigger() local
1037 if (cpu_dai->driver->ops && cpu_dai->driver->ops->bespoke_trigger) { in soc_pcm_bespoke_trigger()
1038 ret = cpu_dai->driver->ops->bespoke_trigger(substream, cmd, cpu_dai); in soc_pcm_bespoke_trigger()
1053 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_pcm_pointer() local
1064 if (cpu_dai->driver->ops && cpu_dai->driver->ops->delay) in soc_pcm_pointer()
1065 delay += cpu_dai->driver->ops->delay(substream, cpu_dai); in soc_pcm_pointer()
1193 if (be->cpu_dai->playback_widget == widget) in dpcm_get_be()
1210 if (be->cpu_dai->capture_widget == widget) in dpcm_get_be()
1251 struct snd_soc_dai *cpu_dai = fe->cpu_dai; in dpcm_path_get() local
1261 paths = snd_soc_dapm_dai_get_connected_widgets(cpu_dai, stream, &list); in dpcm_path_get()
1283 widget = dai_get_widget(dpcm->be->cpu_dai, stream); in dpcm_prune_paths()
1520 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in dpcm_set_fe_runtime() local
1521 struct snd_soc_dai_driver *cpu_dai_drv = cpu_dai->driver; in dpcm_set_fe_runtime()
2288 if (!fe->cpu_dai->active) in soc_dpcm_runtime_update()
2296 if (!fe->cpu_dai->driver->playback.channels_min) in soc_dpcm_runtime_update()
2326 if (!fe->cpu_dai->driver->capture.channels_min) in soc_dpcm_runtime_update()
2453 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; in soc_new_pcm() local
2471 capture = capture && cpu_dai->driver->capture.channels_min; in soc_new_pcm()
2472 playback = playback && cpu_dai->driver->playback.channels_min; in soc_new_pcm()
2575 cpu_dai->name); in soc_new_pcm()
2786 if (fe->cpu_dai->driver->playback.channels_min) in dpcm_state_read_file()
2790 if (fe->cpu_dai->driver->capture.channels_min) in dpcm_state_read_file()