From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Paolo Doz <paolo.doz@gmail.com>
Cc: alsa-devel@alsa-project.org, lrg@ti.com
Subject: Re: [PATCH 1/4] ASoC: ak5702: add support for ak5702 -- 4ch ADC
Date: Mon, 26 Nov 2012 16:36:29 +0000 [thread overview]
Message-ID: <20121126163628.GP9411@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <CAFsPKCVmLx_zqQVspNCjeGL-i8nJoyu7t11CB4PUjk4oKwJv_w@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 695 bytes --]
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.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
prev parent reply other threads:[~2012-11-26 16:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-29 8:43 [PATCH 1/4] ASoC: ak5702: add support for ak5702 -- 4ch ADC Paolo Doz
2012-10-29 12:41 ` Lars-Peter Clausen
2012-10-29 16:04 ` Mark Brown
2012-10-29 17:49 ` Paolo Doz
2012-10-29 18:17 ` Mark Brown
2012-11-26 16:14 ` Paolo Doz
2012-11-26 16:36 ` Mark Brown [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121126163628.GP9411@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=alsa-devel@alsa-project.org \
--cc=lrg@ti.com \
--cc=paolo.doz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox