[alsa-devel] Default enabling of mixer controls

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Jun 8 16:39:10 CEST 2009

On Mon, Jun 08, 2009 at 07:54:00PM +0530, Aggarwal, Anuj wrote:

> 	/* Enable Analog Left Capture Route AUXL */
> 	reg = codec->read(codec, TWL4030_REG_ANAMICL);
> 	reg |= TWL4030_AUXL_EN;
> 	codec->write(codec, TWL4030_REG_ANAMICL, reg);

> After that, if I do a get on Analog Left Capture Route AUXL (or the other),
> I am seeing that it has been turned ON. However, when I try to capture,
> It doesn't work. I have to disable it first and then re-enable it to
> capture properly.

Hrm, you'll be missing some internal DAPM state updates.  Currently the
most direct way to do that would be to go through the actual control
interface and there's not a particularly nice way of doing that that
from the kernel that I'm aware of.

Is this not something you can have user space do?

More information about the Alsa-devel mailing list