From: Mark Brown <broonie@kernel.org>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: alsa-devel@alsa-project.org, Gilles <gilles@whospot.com>
Subject: Re: Audio codec with multiple I2C devices
Date: Mon, 7 Apr 2014 12:37:10 +0100 [thread overview]
Message-ID: <20140407113710.GC14763@sirena.org.uk> (raw)
In-Reply-To: <53411B1F.5070004@metafoo.de>
[-- Attachment #1.1: Type: text/plain, Size: 1034 bytes --]
On Sun, Apr 06, 2014 at 11:15:11AM +0200, Lars-Peter Clausen wrote:
> On 04/05/2014 12:02 AM, Gilles wrote:
Always CC kernel related mails to relevant maintainers, it's very hit
and miss if things on the list only will get seen.
> >I'm writing an ALSA SoC codec which uses a 3 distinct I2C devices (a
> >DAC, a CAG for volume and a input selector) all 3 at different I2C
> >addresses.
> If those are 3 distinct devices you'd typically implement them as 3
> different drivers and model the interconnections between them at the
> board/machine driver level.
If they're hard wired together then i2c_new_dummy() allows a single
driver to control multiple slaves - have the driver instantiate from one
of the addresses and then register dummies for the other addresses. The
framework is probably still going to want to see this registered as a
series of CODECs though unless that's extended. In any case the
internal mappings for the devices ought to at least have helpers
available so machine drivers don't need to reinvent things.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2014-04-07 11:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.300.1396595329.806.alsa-devel@alsa-project.org>
2014-04-04 22:02 ` Audio codec with multiple I2C devices Gilles
2014-04-06 9:15 ` Lars-Peter Clausen
2014-04-07 11:37 ` Mark Brown [this message]
2014-04-07 18:32 ` Gilles
[not found] ` <5342F68B.9060801@metafoo.de>
[not found] ` <81C8B318-CBB6-4862-A779-E0EBFACA48C6@whospot.com>
2014-04-08 6:40 ` Lars-Peter Clausen
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=20140407113710.GC14763@sirena.org.uk \
--to=broonie@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=gilles@whospot.com \
--cc=lars@metafoo.de \
/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