diff options
author | Daniel Mack <daniel@caiaq.de> | 2009-03-18 11:03:54 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-03-18 11:31:08 +0100 |
commit | 9311c9b4f12218b588e51806c44d290cfec678a3 (patch) | |
tree | 9abf620f6497fcc491b079c0577a9abcfdfea46d /sound/usb/caiaq/caiaq-device.c | |
parent | 1313e7041480f523a09dedc7ef2185d8ee94c163 (diff) |
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>
Diffstat (limited to 'sound/usb/caiaq/caiaq-device.c')
-rw-r--r-- | sound/usb/caiaq/caiaq-device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/usb/caiaq/caiaq-device.c b/sound/usb/caiaq/caiaq-device.c index 5736669df2d..336a93de0b3 100644 --- a/sound/usb/caiaq/caiaq-device.c +++ b/sound/usb/caiaq/caiaq-device.c @@ -251,6 +251,8 @@ int snd_usb_caiaq_set_audio_params (struct snd_usb_caiaqdev *dev, if (dev->audio_parm_answer != 1) debug("unable to set the device's audio params\n"); + else + dev->bpp = bpp; return dev->audio_parm_answer == 1 ? 0 : -EINVAL; } |