aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@suse.cz>2004-11-11 13:50:04 +0100
committerJaroslav Kysela <perex@suse.cz>2004-11-11 13:50:04 +0100
commitdcd3942f498a6e4338109da123ee79be6b5a4ced (patch)
tree8b56fd07d908deda314d3c43aeae1b6f5abe8140 /sound
parentd457e8c93a0eb67f00ff1594f63b4d47df7b8254 (diff)
downloadhistory-dcd3942f498a6e4338109da123ee79be6b5a4ced.tar.gz
[ALSA] read bmControls array in correct order
USB generic driver The driver used some code from audio.c that reads the bmControl array backwards; this would not work here as we get a pointer to the beginning of the array. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/usb/usbmixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/usbmixer.c b/sound/usb/usbmixer.c
index 5d2ed1c6a138c2..2155a25ad08d5c 100644
--- a/sound/usb/usbmixer.c
+++ b/sound/usb/usbmixer.c
@@ -374,7 +374,7 @@ static int parse_audio_unit(mixer_build_t *state, int unitid);
static int check_matrix_bitmap(unsigned char *bmap, int ich, int och, int num_outs)
{
int idx = ich * num_outs + och;
- return bmap[-(idx >> 3)] & (0x80 >> (idx & 7));
+ return bmap[idx >> 3] & (0x80 >> (idx & 7));
}