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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux