diff options
author | Pavel Hofman <pavel.hofman@ivitera.com> | 2014-01-14 07:42:57 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-01-14 08:23:47 -0500 |
commit | 8c4b79cf216f467faacdfa7c6c40b6b85cc05782 (patch) | |
tree | 26d45b33b1e609207a31bb08b387a0cd128f6876 /sound/usb | |
parent | 11e424e88bd493b5d55d73d96c82bd889002ef30 (diff) |
ALSA: usb-audio: Fix Creative VF0420 rate
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>
Diffstat (limited to 'sound/usb')
-rw-r--r-- | sound/usb/format.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/usb/format.c b/sound/usb/format.c index 3525231c6b97..d244fd3703d8 100644 --- a/sound/usb/format.c +++ b/sound/usb/format.c | |||
@@ -189,8 +189,10 @@ static int parse_audio_format_rates_v1(struct snd_usb_audio *chip, struct audiof | |||
189 | chip->usb_id == USB_ID(0x0ccd, 0x00b1)) && | 189 | chip->usb_id == USB_ID(0x0ccd, 0x00b1)) && |
190 | fp->altsetting == 5 && fp->maxpacksize == 392) | 190 | fp->altsetting == 5 && fp->maxpacksize == 392) |
191 | rate = 96000; | 191 | rate = 96000; |
192 | /* Creative VF0470 Live Cam reports 16 kHz instead of 8kHz */ | 192 | /* Creative VF0420/VF0470 Live Cams report 16 kHz instead of 8kHz */ |
193 | if (rate == 16000 && chip->usb_id == USB_ID(0x041e, 0x4068)) | 193 | if (rate == 16000 && |
194 | (chip->usb_id == USB_ID(0x041e, 0x4064) || | ||
195 | chip->usb_id == USB_ID(0x041e, 0x4068))) | ||
194 | rate = 8000; | 196 | rate = 8000; |
195 | 197 | ||
196 | fp->rate_table[fp->nr_rates] = rate; | 198 | fp->rate_table[fp->nr_rates] = rate; |