[alsa-devel] Question about snd_pcm_limit_hw_rates() call timing

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Tue Jan 21 09:11:06 CET 2020


Hi Takashi

Thank you for feedback

> Actually the question is whether we need snd_pcm_limit_hw_rates() call
> or not.  The current code in soc_pcm_init_runtime_hw() assumes that
> each cpu and codec dais already set the proper rate_min and rate_max,
> and narrow the range accordingly.  So basically the call there is
> superfluous.  OTOH, in dpcm_fe_dai_startup(), the call overrides the
> existing rate_min/max setup as you mentioned, so it may be wrong.

OK, it is same as my understanding.
I want to do (so far) is just cleanup.
I will fixup/cleanup it.

I'm posting ALSA SoC cleanup patches to ML.
This fixup/cleanup will be added to my ALSA-SoC-cleanup-patch-queue

Thank you for your help !!
Best regards
---
Kuninori Morimoto


More information about the Alsa-devel mailing list