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

Timur Tabi timur at freescale.com
Fri Sep 16 20:25:08 CEST 2011

Mark Brown wrote:

>> "Although the WM8776 driver includes a .set_sysclk function, it was also
>> hard-coding the list of supported sample rates."
> Right, but the two things aren't connected.  As I've *repeatedly* said
> the list of supported sample rates in the DAI should be the full set
> that the device can support, unrelated to any clock setup.

But I could hook up any frequency to audmclk and dacmclk.  What if I want
40000Hz as a sample rate?  I could then then set mclk to 15.36MHz.

I don't see how the codec driver can know what sample rates it supports until
*after* set_sysclk() is called (i.e. when the driver is told the value of mclk).

Timur Tabi
Linux kernel developer at Freescale

More information about the Alsa-devel mailing list