On Fri, Sep 16, 2011 at 01:25:08PM -0500, Timur Tabi wrote:
Mark Brown wrote:
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.
If the CODEC supports continuous rates it'll say so and nothing in the CODEC driver will stop that being selected.
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).
The part will have been specified and qualified for a set of sample rates. These will be listed in the datasheet and are the rates the driver should advertise.