30 Jun
2014
30 Jun
'14
4:50 p.m.
On Mon, Jun 30, 2014 at 12:45:06PM +0200, Lars-Peter Clausen wrote:
On 06/30/2014 08:09 AM, Bard Liao wrote:
To turn on/off rt5640's ASRC function is not decided by only one condition. To make it flexible, I prefer to use a control to enable/ disable ASRC function.
But the driver should be able to autodetect those conditions, shouldn't it?
That depends; we're back to issues with the clock API again. If the device is slave on an interface which is ultimately clocked from a clock which is also fed directly to the device it's not going to be able to tell that the two are synchronous even if we have the common clock API.
However this still shouldn't be exposed directly to userspace since the clocking is generally handled entirely in the kernel.