]> git.alsa-project.org Git - alsa-lib.git/commit
Follow channel position definitions to mixer channel in mixer.h
authorTakashi Iwai <tiwai@suse.de>
Tue, 21 Aug 2012 13:07:44 +0000 (15:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 13 Sep 2012 06:24:47 +0000 (08:24 +0200)
commit0f36270dd315b9baf3a93f5586776b91c0bcf589
tree9e0f3a141c2226d98e887a40f4c909a9e582bda8
parent915b26bfe8af876d467a37c336c6bf22d5e370fe
Follow channel position definitions to mixer channel in mixer.h

mixer.h already contains some channel position definitions.
To be more consistent over all systems, better to follow the same
order for the new channel map, too.  But since UNKNOWN channel must be
zero but the definition in mixer.h contains -1 as UNKNOWN, simply
shift the value with 1.

If the conversion is required between SND_CHMAP and SND_MIXER_SCHN,
just increment/decrement 1.  Eventually I'll provide helper functions
for that...

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/pcm.h
include/sound/asound.h
test/chmap.c