[pulseaudio-discuss] [PATCH 1/2] alsa-mixer: Fix reference to too high channel numbers

Tanu Kaskinen tanuk at iki.fi
Fri Mar 4 06:54:58 UTC 2016


On Fri, 2016-03-04 at 07:48 +0800, Raymond Yau wrote:
> :
> > > The volume_use is set to ignore, but we continue the volume parsing
> > > code, potentially referencing somewhere outside the array (which has
> > > max two channels).
> 
> Alsa mixer api just combine volume control and mute switch with same name
> to an element,
> 
> Is it possible that  these two control have different number of channels
> for some sound card ?

I don't know if it's possible, but the PulseAudio code works in any
case, because the switch handling code doesn't depend on how many
channels the corresponding volume element has.

-- 
Tanu


More information about the pulseaudio-discuss mailing list