[pulseaudio-discuss] [PATCH] alsa-mixer: Fix element channel masks array size.

2012-03-26 Thread Tanu Kaskinen
Valid channel id range is from 0 to SND_MIXER_SCHN_LAST, inclusive, so the array size has to be SND_MIXER_SCHN_LAST + 1. --- src/modules/alsa/alsa-mixer.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/modules/alsa/alsa-mixer.h b/src/modules/alsa/alsa-mixer.h index

Re: [pulseaudio-discuss] [PATCH] alsa-mixer: Fix element channel masks array size.

2012-03-26 Thread David Henningsson
On 03/26/2012 01:35 PM, Tanu Kaskinen wrote: Valid channel id range is from 0 to SND_MIXER_SCHN_LAST, inclusive, so the array size has to be SND_MIXER_SCHN_LAST + 1. This looks correct. A quick grep for SND_MIXER_SCHN_LAST shows similar arrays in alsa-sink and alsa-source, and also, that my

Re: [pulseaudio-discuss] [PATCH] alsa-mixer: Fix element channel masks array size.

2012-03-26 Thread Tanu Kaskinen
On Mon, 2012-03-26 at 13:44 +0200, David Henningsson wrote: On 03/26/2012 01:35 PM, Tanu Kaskinen wrote: Valid channel id range is from 0 to SND_MIXER_SCHN_LAST, inclusive, so the array size has to be SND_MIXER_SCHN_LAST + 1. This looks correct. A quick grep for SND_MIXER_SCHN_LAST shows