[alsa-devel] SOC: using a codec (ADAU1761) just as an analog mixer
I'm using an ADAU1761 codec in a project, but we'd like, for now, to use it just as a mixer, i.e. without passing through the ADC/DAC and DSP stages.
Which is the best way of accomplishing that?
In the past I tried to add virtual DAPM routes in order to get the relevant power systems powered up, and bypassing the standby modes, since the device wouldn't let me use the mixer controls through I2C if I don't clock it.
Another question: how do I tell ALSA to power up a stage (in this case, the ALC/differential input stage)?
TIA, Matteo
On Wed, Oct 12, 2011 at 07:07:28PM +0200, Matteo Fortini wrote:
I'm using an ADAU1761 codec in a project, but we'd like, for now, to use it just as a mixer, i.e. without passing through the ADC/DAC and DSP stages.
Which is the best way of accomplishing that?
Just plumb it into the system as normal, bypass paths should just work. If there's no digital link at all (not even one that you're not using right now) then it's an aux_dev.
In the past I tried to add virtual DAPM routes in order to get the relevant power systems powered up, and bypassing the standby modes, since the device wouldn't let me use the mixer controls through I2C if I don't clock it.
This is a bug in the driver, the driver should be putting the chip in cache only mode when it can't be written to. If it's in _OFF and the device needs clocks for I2C it's reasonable to expect that the driver would assume they've gone away.
participants (2)
-
Mark Brown
-
Matteo Fortini