[alsa-devel] [PATCH 2/3] ASoC: support all possible sample rates in the WM8776 driver

Timur Tabi timur at freescale.com
Fri Sep 16 15:48:46 CEST 2011


Mark Brown wrote:
> The first one says that the rates announced by the driver are the
> superset of all rates the device can ever support, the second says that
> this is done because the system can change the clock rate after we're
> done announcing what sample rates we support.

Ok, I understand what you're saying.  In fact, it seems this change, while it
allows the codec driver to automatically support all of the sample rates that
the hardware actually supports at the moment, it has the drawback in that it
doesn't tell ASoC what that list is.  All .hw_params() does is accept or reject
any particular sample rate.

Is there a way for set_syclk() to tell ASoC the full list of supported rates?
That is, is there any way it can update snd_soc_dai_driver.playback.rates?

-- 
Timur Tabi
Linux kernel developer at Freescale



More information about the Alsa-devel mailing list