ALSA: usb-audio: Fix Creative VF0420 rate
authorPavel Hofman <pavel.hofman@ivitera.com>
Tue, 14 Jan 2014 12:42:57 +0000 (13:42 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 14 Jan 2014 13:23:47 +0000 (14:23 +0100)
Creative Live! Cam Vista IM (VF0420) reports rate of 16kHz while working
at 8kHz. The patch adds its USB ID to the existing quirk.

Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/format.c

index 3525231c6b97325dcbb400ae0c7f9e021555ad8b..d244fd3703d8382c85989b6934611e418600c728 100644 (file)
@@ -189,8 +189,10 @@ static int parse_audio_format_rates_v1(struct snd_usb_audio *chip, struct audiof
                             chip->usb_id == USB_ID(0x0ccd, 0x00b1)) &&
                            fp->altsetting == 5 && fp->maxpacksize == 392)
                                rate = 96000;
-                       /* Creative VF0470 Live Cam reports 16 kHz instead of 8kHz */
-                       if (rate == 16000 && chip->usb_id == USB_ID(0x041e, 0x4068))
+                       /* Creative VF0420/VF0470 Live Cams report 16 kHz instead of 8kHz */
+                       if (rate == 16000 &&
+                           (chip->usb_id == USB_ID(0x041e, 0x4064) ||
+                            chip->usb_id == USB_ID(0x041e, 0x4068)))
                                rate = 8000;
 
                        fp->rate_table[fp->nr_rates] = rate;