ALSA: snd-usb-caiaq: drop bogus iso packets
authorDaniel Mack <daniel@caiaq.de>
Wed, 18 Mar 2009 10:03:54 +0000 (11:03 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 18 Mar 2009 10:31:08 +0000 (11:31 +0100)
commit9311c9b4f12218b588e51806c44d290cfec678a3
tree9abf620f6497fcc491b079c0577a9abcfdfea46d
parent1313e7041480f523a09dedc7ef2185d8ee94c163
ALSA: snd-usb-caiaq: drop bogus iso packets

Drop inbound packets that are smaller than expected. This has been
observed at the very beginning of the streaming transaction.

And when the hardware is in panic mode (which can only very rarely
happen in case of massive EMI chaos), mute the input channels.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Tested-by: Mark Hills <mark@pogo.org.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/caiaq/caiaq-audio.c
sound/usb/caiaq/caiaq-device.c
sound/usb/caiaq/caiaq-device.h