[alsa-devel] [PATCH 02/10] ASoC: twl6040: Combine the custom volsw get, and put functions

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Sep 27 12:56:26 CEST 2011

On Tue, Sep 27, 2011 at 09:16:16AM +0300, Péter Ujfalusi wrote:
> On Monday 26 September 2011 22:21:42 Mark Brown wrote:

> > Traditionally this would be done by comparing reg and rreg - if they're
> > the same they're a mono control.

> I'm not looking for the mono/stereo, but looking for the gain value(s) are in 
> the same register, but in different offset VS gain values are at the same 
> offset, but in two different registers.

That's not what you're actually checking :)  This would generally be
checked by comparing the shift registers - the basic reason we have the
two functions at all is that we used to mash everything into a 32 bit
int rather than using a pointer to struct.

More information about the Alsa-devel mailing list