alsa: mixer - add support up 8 mixer channels
authorJaroslav Kysela <perex@perex.cz>
Wed, 14 Oct 2020 20:20:37 +0000 (22:20 +0200)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Mon, 21 Dec 2020 17:41:37 +0000 (17:41 +0000)
commitb530aa4681087bcb315890df31ec91b4eb3cd4cc
treeef6146a59bb71dadc668bebd8f4f97f0a61ce365
parente67af95830a5f1b9930ecfdd4e32e0027b7a902f
alsa: mixer - add support up 8 mixer channels

We have at least one USB hardware which supports the 8
channels in one mixer element:

  https://github.com/alsa-project/alsa-ucm-conf/pull/25

POSITION_MASK_CHANNELS define was added for the future extensions.

The override_map variable was changed from bool to mask (unsigned int).
The channel map override settings is handled for channels up to eight now.

Also added missing override-map.3 .. override-map.8 to the configuration
parser array.

The driver channel position was added to the override mask arguments
(syntax is driver:pulseaudio like left:all-left). If ommited, the ALSA's
channel positions are guessed by index.

Link: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/292
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/389>
src/modules/alsa/alsa-mixer.c
src/modules/alsa/alsa-mixer.h