desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #93077
[Bug 1390474] Re: "Volume element PCM has 6 channels. That's too much!" - PA doesn't support elements with more than two channels
+ if (e->n_channels > 2) {
+ /* FIXME: In some places code like this is used:
+ *
+ * e->masks[alsa_channel_ids[p]][e->n_channels-1]
+ *
+ * The definition of e->masks is
+ *
+ * pa_channel_position_mask_t masks[SND_MIXER_SCHN_LAST][2];
+ *
+ * Since the array size is fixed at 2, we obviously
+ * don't support elements with more than two
+ * channels... */
+ pa_log_warn("Volume element %s has %u channels. That's too much! I can't handle that!", e->alsa_name, e->n_channels);
+ return -1;
+ }
+
http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa
/alsa-mixer.c?id=527078523815587bfd021bc1d10782403e9b3e84
the answer was aleady stated in the patch
you need to change alsa-mixer.h
-pa_channel_position_mask_t masks[SND_MIXER_SCHN_LAST][2];
+pa_channel_position_mask_t masks[SND_MIXER_SCHN_LAST][8];
and
- if (e->n_channels > 2) {
+ if (e->n_channels > 8) {
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pulseaudio in Ubuntu.
https://bugs.launchpad.net/bugs/1390474
Title:
"Volume element PCM has 6 channels. That's too much!" - PA doesn't
support elements with more than two channels
Status in pulseaudio package in Ubuntu:
Incomplete
Bug description:
When connecting the Terratec PHASE26 in 16/48 mode (6 channels) I get the error "Volume element PCM has 6 channels. That's too much! I can't handle that!" and the card fails to show up in Sound Settings.
Everything is fine with 24/48 mode (2 channels).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1390474/+subscriptions
References