Skip to contentSkip to conversation

ALSA: usb-audio: Fix Creative VF0420 rate

PATCH Applied Pavel Hofman 2 participants 2 messages Jan 14, 2014 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: usb-audio: Fix Creative VF0420 rate

Quoted 1 line

From db1dcaf0f3c2459b02b29c55639a9a6943cffec9 Mon Sep 17 00:00:00 2001

From: Pavel Hofman <[email protected]>
Date: Tue, 14 Jan 2014 13:42:57 +0100
Subject: [PATCH] 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.

---
 sound/usb/format.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
sound/usb/format.c +4 -2
index 3525231..d244fd3 100644
@@ -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;
Signature · 1 line
1.7.1
Applied
#1 lore raw

At Tue, 14 Jan 2014 14:21:23 +0100,

Quoted 11 lines · Pavel Hofman

[2 0001-ALSA-usb-audio-Fix-Creative-VF0420-rate.patch <text/x-diff (7bit)>]

Quoted 1 line

From db1dcaf0f3c2459b02b29c55639a9a6943cffec9 Mon Sep 17 00:00:00 2001

From: Pavel Hofman <[email protected]>
Date: Tue, 14 Jan 2014 13:42:57 +0100
Subject: [PATCH] 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.

Applied, thanks.

Takashi

Quoted 24 lines
---
 sound/usb/format.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
sound/usb/format.c +4 -2
index 3525231..d244fd3 100644
@@ -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;
Signature · 1 line
1.7.1