linux/sound/usb
Clemens Ladisch eab2b553c3 sound: usb-audio: fix rules check for 32-channel devices
When storing the channel numbers used by a format, and if the device
happens to support 32 channels, the code would try to store 1<<32 in
a 32-bit value.

Since no valid format can have zero channels, we can use 1<<(channels-1)
instead of 1<<channels so that all the channel numbers that we test for
fit into 32 bits.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-02 14:49:58 +01:00
..
caiaq ALSA: caiaq - Version 1.3.10 2009-01-09 07:52:45 +01:00
usx2y ALSA: usb - Add missing KERN_* prefix to printk 2009-02-05 15:55:18 +01:00
Kconfig ALSA: us122l - Add missing dependency on CONFIG_SND_HWDEP 2008-09-09 09:10:57 +02:00
Makefile ALSA: Add USB US122L driver 2008-08-01 13:37:12 +02:00
usbaudio.c sound: usb-audio: fix rules check for 32-channel devices 2009-03-02 14:49:58 +01:00
usbaudio.h ALSA: snd-usb-audio: support for Edirol UA-4FX device 2008-10-10 13:41:48 +02:00
usbmidi.c ALSA: sound/usb: Use negated usb_endpoint_xfer_control, etc 2009-01-04 12:10:04 +01:00
usbmixer_maps.c ALSA: usb-audio - Quirk for Serato phono 2009-01-18 18:48:03 +01:00
usbmixer.c ALSA: usb - Add missing KERN_* prefix to printk 2009-02-05 15:55:18 +01:00
usbquirks.h ALSA: rename "Device" to "Toshiba SB-0500" via quirks 2009-01-13 07:54:57 +01:00