Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Mixer quirk for QuickCam E 3500
@ 2009-07-21 21:10 Alexey Fisher
  2009-07-21 21:40 ` Takashi Iwai
  0 siblings, 1 reply; 18+ messages in thread
From: Alexey Fisher @ 2009-07-21 21:10 UTC (permalink / raw)
  To: alsa-devel, clemens; +Cc: Alexey Fisher

1. E3500 report cval->max more than it actually can handel, so if you
set 95% capture level it will be muted.
2. betwen cval->min and cval-max(real) is 2940 control units,
but real are only 7.
3. we found only 7 real control units, with cval->res = 384,
but alsa can't handel less than 10 controls, so make it more
and set cval->res = 192.

Signed-off-by: Alexey Fisher <bug-track@fisher-privat.net>
---
 sound/usb/usbmixer.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/sound/usb/usbmixer.c b/sound/usb/usbmixer.c
index 4bd3a7a..72562ee 100644
--- a/sound/usb/usbmixer.c
+++ b/sound/usb/usbmixer.c
@@ -995,6 +995,13 @@ static void build_feature_ctl(struct mixer_build *state, unsigned char *desc,
 	/* is not very clear from datasheets */
 	/* I hope that the min value is -15360 for newer firmware --jk */
 	switch (state->chip->usb_id) {
+	case USB_ID(0x046d, 0x09a4):
+		if (!strcmp(kctl->id.name, "Mic Capture Volume")) {
+			snd_printk(KERN_INFO "using volume control quirk for the QuickCam E3500\n");
+			cval->min = 6080;
+			cval->max = 8768;
+			cval->res = 192;
+		}
 	case USB_ID(0x0471, 0x0101):
 	case USB_ID(0x0471, 0x0104):
 	case USB_ID(0x0471, 0x0105):
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2009-07-22 14:32 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-21 21:10 [PATCH] Mixer quirk for QuickCam E 3500 Alexey Fisher
2009-07-21 21:40 ` Takashi Iwai
2009-07-21 21:57   ` Alexey Fisher
2009-07-21 22:01     ` Takashi Iwai
2009-07-22  5:15       ` Alexey Fisher
2009-07-22  9:33         ` Takashi Iwai
2009-07-22 10:37           ` Alexey Fisher
2009-07-22  9:16       ` [PATCH] Volume control " Alexey Fisher
2009-07-22  9:32         ` Takashi Iwai
2009-07-22 10:42           ` Alexey Fisher
2009-07-22 10:44             ` Takashi Iwai
2009-07-22 11:28               ` Alexey Fisher
2009-07-22 11:30               ` Alexey Fisher
2009-07-22 11:40                 ` Takashi Iwai
2009-07-22 12:18                   ` Alexey Fisher
2009-07-22 12:47                     ` Takashi Iwai
2009-07-22 12:57                       ` Alexey Fisher
2009-07-22 14:32                         ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox