-----Original Message----- From: Mark Brown [mailto:broonie@opensource.wolfsonmicro.com] Sent: Monday, June 08, 2009 8:09 PM To: Aggarwal, Anuj Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Default enabling of mixer controls
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?
[Aggarwal, Anuj] Since this was by default enabled in my earlier codec driver, I wanted to make the change transparent to the end user. However, since the same can be done from user space too, it should not be a problem for my customer.