[alsa-devel] [PATCH 1/4] ASoC: ak5702: add support for ak5702 -- 4ch ADC

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Nov 26 17:36:29 CET 2012

On Mon, Nov 26, 2012 at 05:14:58PM +0100, Paolo Doz wrote:

> 8 bit register (ie ADC A)
> bit 0 -> select left1 or left2
> bit 1 -> select right1 or right2

> bit2/3/4 other settings

> bit5 -> if 1 select left5 otherwise select (left1 or left2) depending on bit0
> bit6 -> if 1 select right5 otherwise select (right1 or rigth2) depending on bit1

> Is there any SOC_ENUM that can be used to represent this situation? I
> mean something like "Left1, Left2, Left5" ?

> At the moment I have one SOC_ENUM to select "Left1, Left2" and another
> for "Left1/2, Left5"

That's pretty special and creative, you'd have to open code it otherwise
the structure you've got sounds about as good as it gets.
-------------- 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/20121126/3270a196/attachment.sig>

More information about the Alsa-devel mailing list