[alsa-devel] ASoC - Support for multiple components

Timur Tabi timur at freescale.com
Mon Apr 26 14:05:41 CEST 2010


On Mon, Apr 26, 2010 at 5:49 AM, Mark Brown
<broonie at opensource.wolfsonmicro.com> wrote:

> It occurs to me that we probably want something a bit more flexible
> here than just a numeric ID - most of the use cases for having more than
> one of the same device are for things like 5.1 or dual speaker amps for
> stereo where it'd be much more convenient to have the machine driver be
> able to add text based prefixes to the control names (eg, "Left" and
> "Right").

How about instead of a string + id, we just have a string, and then
define a convention for various devices.  For instance, the codec
could be "name at bus-addr", so my cs4270 driver would register something
like "cs4270 at 0-004f".

-- 
Timur Tabi
Linux kernel developer at Freescale


More information about the Alsa-devel mailing list