[alsa-devel] [RFC] Channel mapping API

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Aug 21 15:59:47 CEST 2012

On Tue, Aug 21, 2012 at 12:31:57PM +0200, Takashi Iwai wrote:

> snd_pcm_query_chmaps() returns the list of channel maps.  A channel
> map is represented by an integer array, beginning with the channel map
> type, followed by the number of channels, and the position of each
> channel, e.g.

Currently only named channel maps are supported.  It'd be nice to also
support just plain numbered channels, or at least provide a way to say
to userspace that it needs to do something like chase through a routing
map to figure out where each channel goes (as opposed to assuming that
the driver doesn't know what to report).  

It'd also be nice to be able to express the situation we sometimes get
in embedded devices where we (for example) play to channels 0 and 1 to
get headphones and to 2 and 3 for speaker but that usually falls into
the route tracing case anyway so I'm not sure it's worth worrying about.

More information about the Alsa-devel mailing list