Revert "alsa-mixer: support up to 8 channels per mixer element"

This reverts commit e0ab9fa4a4.

The change broke some Xonar cards, and we probably don't want to hold up
the 14.0 release for this.

Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1009
This commit is contained in:
Arun Raghavan 2020-10-13 21:03:30 -04:00
parent 8614a37a95
commit 7f4d7fcf5f
2 changed files with 10 additions and 16 deletions

View file

@ -160,7 +160,7 @@ struct pa_alsa_element {
long volume_limit; /* -1 for no configured limit */
double min_dB, max_dB;
pa_channel_position_mask_t masks[SND_MIXER_SCHN_LAST + 1][8];
pa_channel_position_mask_t masks[SND_MIXER_SCHN_LAST + 1][2];
unsigned n_channels;
pa_channel_position_mask_t merged_mask;