16 Sep
2011
16 Sep
'11
8:25 p.m.
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