[alsa-devel] [PATCH 2/8] ASoC: Add support for virtual switch controls
Mark Brown
broonie at opensource.wolfsonmicro.com
Fri Jan 11 14:57:54 CET 2013
On Fri, Jan 11, 2013 at 01:56:17PM +0100, Lars-Peter Clausen wrote:
> On 01/11/2013 01:45 PM, Mark Brown wrote:
> > Virtual enums do actually end up routing, that's not what a mute control
> > usually does. You can do the above in the manner I suggested, just have
> > the register forced to a particular value when the DAC is disabled.
> Well, that's what the code does. The alternative is to implement more or
No, it's not (at least not according to the changelog). It implements a
totally separate virtual control.
> less in the driver. Have custom put/get callbacks for the controls, which
> write to a shadow register, only if the DAC is enabled the shadow value gets
> written to the real register. And listen to the DAC powerdown/powerup
> events, when it is powered down enable all hw mutes, when it is enabled
What makes you say that this must be open coded in the driver? We can
modify the framework code...
> restore the shadow register value. The virtual control more or less
> implements it in a generic manner so it does not have to be implemented by
> each driver which needs this on its own.
I'm having a really hard time seeing the equivalence here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130111/09b7da10/attachment.sig>
More information about the Alsa-devel
mailing list