summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_sigmatel.c
diff options
context:
space:
mode:
authorDaniel Mack2015-01-04 19:59:29 +0100
committerTakashi Iwai2015-01-05 08:56:19 +0100
commit49cdd5b641933fda6324fc901eaf856924ba6a27 (patch)
tree58b313a1df09183fd4aa86f034dc5b7dbfb2da2a /sound/pci/hda/patch_sigmatel.c
parentALSA: pcm: Fix kerneldoc for params_*() functions (diff)
downloadkernel-qcow2-linux-49cdd5b641933fda6324fc901eaf856924ba6a27.tar.gz
kernel-qcow2-linux-49cdd5b641933fda6324fc901eaf856924ba6a27.tar.xz
kernel-qcow2-linux-49cdd5b641933fda6324fc901eaf856924ba6a27.zip
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>
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
0 files changed, 0 insertions, 0 deletions