[alsa-devel] ASoC - Support for multiple components

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Apr 26 15:13:31 CEST 2010

On Mon, Apr 26, 2010 at 07:05:41AM -0500, Timur Tabi wrote:
> On Mon, Apr 26, 2010 at 5:49 AM, Mark Brown

> > 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".

Well, we already have a struct device for the actual chip so we can just
dev_name() away.  The problem is presenting the results to userspace in
a useful fashion.

More information about the Alsa-devel mailing list