linux/sound/usb
Daniel Mack 49cdd5b641 ALSA: snd-usb-caiaq: fix stream count check
Commit 897c329bc ("ALSA: usb: caiaq: check for cdev->n_streams > 1")
introduced a safety check to protect against bogus data provided by
devices. However, the n_streams variable is already divided by
CHANNELS_PER_STREAM, so the correct check is 'n_streams > 0'.

Fix this to un-break support for stereo devices.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Cc: stable@kernel.org [v3.18+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-01-05 08:56:19 +01:00
..
6fire ALSA: 6fire: Convert byte_rev_table uses to bitrev8 2014-11-14 08:01:53 +01:00
bcd2000
caiaq ALSA: snd-usb-caiaq: fix stream count check 2015-01-05 08:56:19 +01:00
hiface
misc ALSA: pcm: Add snd_pcm_stop_xrun() helper 2014-11-09 18:20:40 +01:00
usx2y ALSA: pcm: Add snd_pcm_stop_xrun() helper 2014-11-09 18:20:40 +01:00
card.c Merge branch 'for-linus' into for-next 2014-11-05 15:37:22 +01:00
card.h
clock.c
clock.h
debug.h
endpoint.c ALSA: pcm: Add snd_pcm_stop_xrun() helper 2014-11-09 18:20:40 +01:00
endpoint.h ALSA: usb-audio: Pass direct struct pointer instead of list_head 2014-11-04 15:09:10 +01:00
format.c
format.h
helper.c
helper.h
Kconfig
Makefile ALSA: usb-audio: Scarlett mixer interface for 6i6, 18i6, 18i8 and 18i20 2014-11-13 07:32:39 +01:00
midi.c ALSA: usb-audio: Don't resubmit pending URBs at MIDI error recovery 2014-12-06 21:35:38 +01:00
midi.h
mixer_maps.c ALSA: usb-audio: extend KEF X300A FU 10 tweak to Arcam rPAC 2014-12-18 17:49:50 +01:00
mixer_quirks.c ALSA: usb-audio: Add resume support for MicroII SPDIF ctls 2014-11-21 11:58:52 +01:00
mixer_quirks.h
mixer_scarlett.c ALSA: usb-audio: Fix Scarlett 6i6 initialization typo 2014-12-18 08:39:17 +01:00
mixer_scarlett.h ALSA: usb-audio: Scarlett mixer interface for 6i6, 18i6, 18i8 and 18i20 2014-11-13 07:32:39 +01:00
mixer.c ALSA: usb-audio: Allow quirks to handle own resume and proc dump 2014-11-21 11:56:58 +01:00
mixer.h ALSA: usb-audio: Add Xonar U1 resume support 2014-11-21 11:58:01 +01:00
pcm.c ALSA: usb-audio: Add mode select quirk for Denon/Marantz DACs 2014-11-28 18:02:35 +01:00
pcm.h
power.h
proc.c
proc.h
quirks-table.h sound updates for 3.19-rc1 2014-12-11 13:20:50 -08:00
quirks.c ALSA: usb-audio: add native DSD support for Matrix Audio DACs 2014-12-17 17:55:20 +01:00
quirks.h ALSA: usb-audio: Add mode select quirk for Denon/Marantz DACs 2014-11-28 18:02:35 +01:00
stream.c
stream.h
usbaudio.h