Skip to contentSkip to conversation

Mixer quirk for QuickCam E 3500

PATCH In review Alexey Fisher 2 participants 18 messages Jul 21, 2009 – Jul 22, 2009 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Mixer quirk for QuickCam E 3500

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.

---
 sound/usb/usbmixer.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
sound/usb/usbmixer.c +7 -0
index 4bd3a7a..72562ee 100644
@@ -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):
Signature · 1 line
1.6.3.3
#1 lore raw

At Tue, 21 Jul 2009 23:10:42 +0200,

Quoted 10 lines · 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.

Thanks for the patch. The added code looks almost good. But, it's better to put your code into another place, e.g. a bit later so that you don't insert it between the comment and the other code. Also, if you use switch(), you need break.

In your case, simply put a new if () block with a proper comment after that switch() block. It's not necessarily merged into a single switch. The compiler should be clever enough.

Also, try to keep the patch checkpatch.pl-clean. Run it once before submitting your patch.

Could you fix these and repost?

thanks,

Takashi

Quoted 30 lines
---
 sound/usb/usbmixer.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
sound/usb/usbmixer.c +7 -0
index 4bd3a7a..72562ee 100644
@@ -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):
Signature · 6 lines
1.6.3.3

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#2 lore raw
Quoted 45 lines · Takashi Iwai

At Tue, 21 Jul 2009 23:10:42 +0200,

Quoted 9 lines · 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.

Thanks for the patch. The added code looks almost good. But, it's better to put your code into another place, e.g. a bit later so that you don't insert it between the comment and the other code. Also, if you use switch(), you need break.

In your case, simply put a new if () block with a proper comment after that switch() block. It's not necessarily merged into a single switch. The compiler should be clever enough.

Also, try to keep the patch checkpatch.pl-clean. Run it once before submitting your patch.

Could you fix these and repost?

thanks,

Takashi

Quoted 14 lines
---
 sound/usb/usbmixer.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
sound/usb/usbmixer.c +2 -0
index 4bd3a7a..72562ee 100644
@@ -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")) {
Quoted 8 lines

sound/usb/usbmixer.c static void build_feature_ctl(struct mixer_build *state, unsigned char *desc, · line 1007

Quoted 8 lines
sound/usb/usbmixer.c +5 -0
+			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):

There is some thing wrong with this. After suspend and resume this quirk not working. Even replug the cam not help, only reloading of snd_usb_sound will do it work again.

Thanks,
Alexey

#3 lore raw

At Tue, 21 Jul 2009 23:57:46 +0200,

Quoted 51 lines · Alexey Fisher
Quoted 49 lines · Takashi Iwai

At Tue, 21 Jul 2009 23:10:42 +0200,

Quoted 9 lines · 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.

Thanks for the patch. The added code looks almost good. But, it's better to put your code into another place, e.g. a bit later so that you don't insert it between the comment and the other code. Also, if you use switch(), you need break.

In your case, simply put a new if () block with a proper comment after that switch() block. It's not necessarily merged into a single switch. The compiler should be clever enough.

Also, try to keep the patch checkpatch.pl-clean. Run it once before submitting your patch.

Could you fix these and repost?

thanks,

Takashi

Quoted 18 lines
---
 sound/usb/usbmixer.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
sound/usb/usbmixer.c +6 -0
index 4bd3a7a..72562ee 100644
@@ -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;
Quoted 8 lines
Quoted 4 lines

sound/usb/usbmixer.c static void build_feature_ctl(struct mixer_build *state, unsigned char *desc, · line 1007

Quoted 4 lines
sound/usb/usbmixer.c +1 -0
+		}
 	case USB_ID(0x0471, 0x0101):
 	case USB_ID(0x0471, 0x0104):
 	case USB_ID(0x0471, 0x0105):

There is some thing wrong with this. After suspend and resume this quirk not working. Even replug the cam not help, only reloading of snd_usb_sound will do it work again.

But isn't it irrelevant with your patch?

Takashi

#4 lore raw
Quoted 59 lines · Takashi Iwai

At Tue, 21 Jul 2009 23:57:46 +0200,

Quoted 48 lines · Alexey Fisher
Quoted 47 lines · Takashi Iwai

At Tue, 21 Jul 2009 23:10:42 +0200,

Quoted 9 lines · 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.

Thanks for the patch. The added code looks almost good. But, it's better to put your code into another place, e.g. a bit later so that you don't insert it between the comment and the other code. Also, if you use switch(), you need break.

In your case, simply put a new if () block with a proper comment after that switch() block. It's not necessarily merged into a single switch. The compiler should be clever enough.

Also, try to keep the patch checkpatch.pl-clean. Run it once before submitting your patch.

Could you fix these and repost?

thanks,

Takashi

Quoted 17 lines
---
 sound/usb/usbmixer.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
sound/usb/usbmixer.c +5 -0
index 4bd3a7a..72562ee 100644
@@ -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;
Quoted 8 lines
Quoted 5 lines

sound/usb/usbmixer.c static void build_feature_ctl(struct mixer_build *state, unsigned char *desc, · line 1007

Quoted 5 lines
sound/usb/usbmixer.c +2 -0
+			cval->res = 192;
+		}
 	case USB_ID(0x0471, 0x0101):
 	case USB_ID(0x0471, 0x0104):
 	case USB_ID(0x0471, 0x0105):

There is some thing wrong with this. After suspend and resume this quirk not working. Even replug the cam not help, only reloading of snd_usb_sound will do it work again.

Quoted 4 lines

But isn't it irrelevant with your patch?

Takashi

it should be irrelevant, but some times it doesn't use this quirk. Seems like it depend on my usb.. so if quirk is not used there passably (if capture level set to more then 90%) will be no sound on this cam.

here is example. On this port it's working fine:
===========================================================================

[ 1197.141867] ALSA sound/usb/usbaudio.c:2802: 17:3:1: add audio 
endpoint 0x86
[ 1198.144187] ALSA sound/usb/usbaudio.c:1295: 17:3:1: cannot get freq 
at ep 0x86
[ 1198.144344] ALSA sound/usb/usbmixer.c:1017: [5] FU [Mic Capture 
Switch] ch = 1, val = 0/1/1
[ 1198.917814] ALSA sound/usb/usbmixer.c:1000: using volume control 
quirk for the QuickCam E3500
[ 1198.917818] ALSA sound/usb/usbmixer.c:1017: [5] FU [Mic Capture 
Volume] ch = 1, val = 6080/8768/192
[ 1198.972148] ALSA sound/usb/usbaudio.c:1349: setting usb interface 3:1
[ 1198.999384] ALSA sound/usb/usbaudio.c:1349: setting usb interface 3:1

==================================================================================

and quirk is applied:
=================================================================
amixer -D hw:1
Simple mixer control 'Mic',0
Capabilities: cvolume cvolume-joined cswitch cswitch-joined Capture channels: Mono
Limits: Capture 0 - 14
Mono: Capture 14 [100%] [34.25dB] [on]
======================================================================

On this port it's looks different:
==================================================================

[  434.298740] ALSA sound/usb/usbaudio.c:2802: 16:3:1: add audio 
endpoint 0x86
[  435.296189] ALSA sound/usb/usbaudio.c:1288: 16:3:1: cannot set freq 
16000 to ep 0x86
[  435.296346] ALSA sound/usb/usbmixer.c:1017: [5] FU [Mic Capture 
Switch] ch = 1, val = 0/1/1
[  436.055930] ALSA sound/usb/usbmixer.c:374: cannot get ctl value: req 
= 0x83, wValue = 0x200, wIndex = 0x502, type = 4
[  436.055936] ALSA sound/usb/usbmixer.c:730: 5:2: cannot get min/max 
values for control 2 (id 5)
[  436.055954] ALSA sound/usb/usbmixer.c:1000: using volume control 
quirk for the QuickCam E3500
[  436.055957] ALSA sound/usb/usbmixer.c:1017: [5] FU [Mic Capture 
Volume] ch = 1, val = 6080/8768/192
[  436.107018] ALSA sound/usb/usbaudio.c:1349: setting usb interface 3:1
[  436.133640] ALSA sound/usb/usbaudio.c:1349: setting usb interface 3:1

========================================================================

and quirk is not working:
=========================================================
amixer -D hw:1
Simple mixer control 'Mic',0
Capabilities: cvolume cvolume-joined cswitch cswitch-joined Capture channels: Mono
Limits: Capture 0 - 3072
Mono: Capture 3072 [100%] [23.00dB] [on]
============================================================

this can't be reproduce with every plug in.. but some port have better possibility to get error. On this kind of port the setting can be changed after resume.

#5 lore raw

At Wed, 22 Jul 2009 07:15:41 +0200,

Quoted 128 lines · Alexey Fisher
Quoted 59 lines · Takashi Iwai

At Tue, 21 Jul 2009 23:57:46 +0200,

Quoted 48 lines · Alexey Fisher
Quoted 47 lines · Takashi Iwai

At Tue, 21 Jul 2009 23:10:42 +0200,

Quoted 9 lines · 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.

Thanks for the patch. The added code looks almost good. But, it's better to put your code into another place, e.g. a bit later so that you don't insert it between the comment and the other code. Also, if you use switch(), you need break.

In your case, simply put a new if () block with a proper comment after that switch() block. It's not necessarily merged into a single switch. The compiler should be clever enough.

Also, try to keep the patch checkpatch.pl-clean. Run it once before submitting your patch.

Could you fix these and repost?

thanks,

Takashi

Quoted 17 lines
---
 sound/usb/usbmixer.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
sound/usb/usbmixer.c +5 -0
index 4bd3a7a..72562ee 100644
@@ -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;
Quoted 8 lines
Quoted 5 lines

sound/usb/usbmixer.c static void build_feature_ctl(struct mixer_build *state, unsigned char *desc, · line 1007

Quoted 5 lines
sound/usb/usbmixer.c +2 -0
+			cval->res = 192;
+		}
 	case USB_ID(0x0471, 0x0101):
 	case USB_ID(0x0471, 0x0104):
 	case USB_ID(0x0471, 0x0105):

There is some thing wrong with this. After suspend and resume this quirk not working. Even replug the cam not help, only reloading of snd_usb_sound will do it work again.

Quoted 4 lines

But isn't it irrelevant with your patch?

Takashi

it should be irrelevant, but some times it doesn't use this quirk. Seems like it depend on my usb.. so if quirk is not used there passably (if capture level set to more then 90%) will be no sound on this cam.

here is example. On this port it's working fine:
===========================================================================

[ 1197.141867] ALSA sound/usb/usbaudio.c:2802: 17:3:1: add audio 
endpoint 0x86
[ 1198.144187] ALSA sound/usb/usbaudio.c:1295: 17:3:1: cannot get freq 
at ep 0x86
[ 1198.144344] ALSA sound/usb/usbmixer.c:1017: [5] FU [Mic Capture 
Switch] ch = 1, val = 0/1/1
[ 1198.917814] ALSA sound/usb/usbmixer.c:1000: using volume control 
quirk for the QuickCam E3500
[ 1198.917818] ALSA sound/usb/usbmixer.c:1017: [5] FU [Mic Capture 
Volume] ch = 1, val = 6080/8768/192
[ 1198.972148] ALSA sound/usb/usbaudio.c:1349: setting usb interface 3:1
[ 1198.999384] ALSA sound/usb/usbaudio.c:1349: setting usb interface 3:1

==================================================================================

and quirk is applied:
=================================================================
amixer -D hw:1
Simple mixer control 'Mic',0
Capabilities: cvolume cvolume-joined cswitch cswitch-joined Capture channels: Mono
Limits: Capture 0 - 14
Mono: Capture 14 [100%] [34.25dB] [on]
======================================================================

On this port it's looks different:
==================================================================

[  434.298740] ALSA sound/usb/usbaudio.c:2802: 16:3:1: add audio 
endpoint 0x86
[  435.296189] ALSA sound/usb/usbaudio.c:1288: 16:3:1: cannot set freq 
16000 to ep 0x86
[  435.296346] ALSA sound/usb/usbmixer.c:1017: [5] FU [Mic Capture 
Switch] ch = 1, val = 0/1/1
[  436.055930] ALSA sound/usb/usbmixer.c:374: cannot get ctl value: req 
= 0x83, wValue = 0x200, wIndex = 0x502, type = 4
[  436.055936] ALSA sound/usb/usbmixer.c:730: 5:2: cannot get min/max 
values for control 2 (id 5)
[  436.055954] ALSA sound/usb/usbmixer.c:1000: using volume control 
quirk for the QuickCam E3500
[  436.055957] ALSA sound/usb/usbmixer.c:1017: [5] FU [Mic Capture 
Volume] ch = 1, val = 6080/8768/192
[  436.107018] ALSA sound/usb/usbaudio.c:1349: setting usb interface 3:1
[  436.133640] ALSA sound/usb/usbaudio.c:1349: setting usb interface 3:1

========================================================================

and quirk is not working:
=========================================================
amixer -D hw:1
Simple mixer control 'Mic',0
Capabilities: cvolume cvolume-joined cswitch cswitch-joined Capture channels: Mono
Limits: Capture 0 - 3072
Mono: Capture 3072 [100%] [23.00dB] [on]
============================================================

Quoted 3 lines

this can't be reproduce with every plug in.. but some port have better possibility to get error. On this kind of port the setting can be changed after resume.

Hm, then it means that chip->usb_id has a different number. Could you check with printk?

Takashi

#6 lore raw
Quoted 127 lines · Takashi Iwai

At Wed, 22 Jul 2009 07:15:41 +0200,

Quoted 125 lines · Alexey Fisher
Quoted 58 lines · Takashi Iwai

At Tue, 21 Jul 2009 23:57:46 +0200,

Quoted 48 lines · Alexey Fisher
Quoted 47 lines · Takashi Iwai

At Tue, 21 Jul 2009 23:10:42 +0200,

Quoted 9 lines · 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.

Thanks for the patch. The added code looks almost good. But, it's better to put your code into another place, e.g. a bit later so that you don't insert it between the comment and the other code. Also, if you use switch(), you need break.

In your case, simply put a new if () block with a proper comment after that switch() block. It's not necessarily merged into a single switch. The compiler should be clever enough.

Also, try to keep the patch checkpatch.pl-clean. Run it once before submitting your patch.

Could you fix these and repost?

thanks,

Takashi

Quoted 17 lines
---
 sound/usb/usbmixer.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
sound/usb/usbmixer.c +5 -0
index 4bd3a7a..72562ee 100644
@@ -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;
Quoted 8 lines
Quoted 5 lines

sound/usb/usbmixer.c static void build_feature_ctl(struct mixer_build *state, unsigned char *desc, · line 1007

Quoted 5 lines
sound/usb/usbmixer.c +2 -0
+			cval->res = 192;
+		}
 	case USB_ID(0x0471, 0x0101):
 	case USB_ID(0x0471, 0x0104):
 	case USB_ID(0x0471, 0x0105):

There is some thing wrong with this. After suspend and resume this quirk not working. Even replug the cam not help, only reloading of snd_usb_sound will do it work again.

Quoted 4 lines

But isn't it irrelevant with your patch?

Takashi

it should be irrelevant, but some times it doesn't use this quirk. Seems like it depend on my usb.. so if quirk is not used there passably (if capture level set to more then 90%) will be no sound on this cam.

here is example. On this port it's working fine:
===========================================================================

[ 1197.141867] ALSA sound/usb/usbaudio.c:2802: 17:3:1: add audio 
endpoint 0x86
[ 1198.144187] ALSA sound/usb/usbaudio.c:1295: 17:3:1: cannot get freq 
at ep 0x86
[ 1198.144344] ALSA sound/usb/usbmixer.c:1017: [5] FU [Mic Capture 
Switch] ch = 1, val = 0/1/1
[ 1198.917814] ALSA sound/usb/usbmixer.c:1000: using volume control 
quirk for the QuickCam E3500
[ 1198.917818] ALSA sound/usb/usbmixer.c:1017: [5] FU [Mic Capture 
Volume] ch = 1, val = 6080/8768/192
[ 1198.972148] ALSA sound/usb/usbaudio.c:1349: setting usb interface 3:1
[ 1198.999384] ALSA sound/usb/usbaudio.c:1349: setting usb interface 3:1

==================================================================================

and quirk is applied:
=================================================================
amixer -D hw:1
Simple mixer control 'Mic',0
Capabilities: cvolume cvolume-joined cswitch cswitch-joined Capture channels: Mono
Limits: Capture 0 - 14
Mono: Capture 14 [100%] [34.25dB] [on]
======================================================================

On this port it's looks different:
==================================================================

[  434.298740] ALSA sound/usb/usbaudio.c:2802: 16:3:1: add audio 
endpoint 0x86
[  435.296189] ALSA sound/usb/usbaudio.c:1288: 16:3:1: cannot set freq 
16000 to ep 0x86
[  435.296346] ALSA sound/usb/usbmixer.c:1017: [5] FU [Mic Capture 
Switch] ch = 1, val = 0/1/1
[  436.055930] ALSA sound/usb/usbmixer.c:374: cannot get ctl value: req 
= 0x83, wValue = 0x200, wIndex = 0x502, type = 4
[  436.055936] ALSA sound/usb/usbmixer.c:730: 5:2: cannot get min/max 
values for control 2 (id 5)
[  436.055954] ALSA sound/usb/usbmixer.c:1000: using volume control 
quirk for the QuickCam E3500
[  436.055957] ALSA sound/usb/usbmixer.c:1017: [5] FU [Mic Capture 
Volume] ch = 1, val = 6080/8768/192
[  436.107018] ALSA sound/usb/usbaudio.c:1349: setting usb interface 3:1
[  436.133640] ALSA sound/usb/usbaudio.c:1349: setting usb interface 3:1

========================================================================

and quirk is not working:
=========================================================
amixer -D hw:1
Simple mixer control 'Mic',0
Capabilities: cvolume cvolume-joined cswitch cswitch-joined Capture channels: Mono
Limits: Capture 0 - 3072
Mono: Capture 3072 [100%] [23.00dB] [on]
============================================================

Quoted 6 lines
Quoted 3 lines

this can't be reproduce with every plug in.. but some port have better possibility to get error. On this kind of port the setting can be changed after resume.

Hm, then it means that chip->usb_id has a different number. Could you check with printk?

From the second dmesg you can see, the quirk was applyed. But for some
reason overwrite after it did get_min_max. i did some debuging with printk but was not able to reproduce this issue. So will leave this until i have some more time.

#7 lore raw

PATCH 1/1 Volume control quirk for QuickCam E 3500

In reply to Takashi Iwai

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

---
 sound/usb/usbmixer.c |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)
sound/usb/usbmixer.c +12 -4
index 5c48199..cda9d7c 100644
@@ -1000,20 +1000,28 @@ static void build_feature_ctl(struct mixer_build *state, unsigned char *desc,
 		break;
 	}
 
-	/* quirk for UDA1321/N101 */
-	/* note that detection between firmware 2.1.1.7 (N101) and later 2.1.1.21 */
-	/* is not very clear from datasheets */
-	/* I hope that the min value is -15360 for newer firmware --jk */
+	/* volume control quirks */
 	switch (state->chip->usb_id) {
 	case USB_ID(0x0471, 0x0101):
 	case USB_ID(0x0471, 0x0104):
 	case USB_ID(0x0471, 0x0105):
 	case USB_ID(0x0672, 0x1041):
+	/* quirk for UDA1321/N101 */
+	/* note that detection between firmware 2.1.1.7 (N101) and later 2.1.1.21 */
+	/* is not very clear from datasheets */
+	/* I hope that the min value is -15360 for newer firmware --jk */
 		if (!strcmp(kctl->id.name, "PCM Playback Volume") &&
 		    cval->min == -15616) {
 			snd_printk(KERN_INFO "using volume control quirk for the UDA1321/N101 chip\n");
 			cval->max = -256;
 		}
+	case USB_ID(0x046d, 0x09a4):
+		if (!strcmp(kctl->id.name, "Mic Capture Volume")) {
+			snd_printk(KERN_INFO "using volume control quirk for the QuickCam E 3500\n");
+			cval->min = 6080;
+			cval->max = 8768;
+			cval->res = 192;
+		}
 	}
 
 	snd_printdd(KERN_INFO "[%d] FU [%s] ch = %d, val = %d/%d/%d\n",
Signature · 1 line
1.6.3.3
#8 lore raw

Re: [PATCH] Volume control quirk for QuickCam E 3500

At Wed, 22 Jul 2009 11:16:17 +0200,

Quoted 30 lines · Alexey Fisher

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

---
 sound/usb/usbmixer.c |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)
sound/usb/usbmixer.c +1 -4
index 5c48199..cda9d7c 100644
@@ -1000,20 +1000,28 @@ static void build_feature_ctl(struct mixer_build *state, unsigned char *desc,
 		break;
 	}
 
-	/* quirk for UDA1321/N101 */
-	/* note that detection between firmware 2.1.1.7 (N101) and later 2.1.1.21 */
-	/* is not very clear from datasheets */
-	/* I hope that the min value is -15360 for newer firmware --jk */
+	/* volume control quirks */
 	switch (state->chip->usb_id) {
 	case USB_ID(0x0471, 0x0101):
 	case USB_ID(0x0471, 0x0104):
 	case USB_ID(0x0471, 0x0105):

sound/usb/usbmixer.c static void build_feature_ctl(struct mixer_build *state, unsigned char *desc, · line 1017

Quoted 10 lines
sound/usb/usbmixer.c +4 -0
 	case USB_ID(0x0672, 0x1041):
+	/* quirk for UDA1321/N101 */
+	/* note that detection between firmware 2.1.1.7 (N101) and later 2.1.1.21 */
+	/* is not very clear from datasheets */
+	/* I hope that the min value is -15360 for newer firmware --jk */
 		if (!strcmp(kctl->id.name, "PCM Playback Volume") &&
 		    cval->min == -15616) {
 			snd_printk(KERN_INFO "using volume control quirk for the UDA1321/N101 chip\n");
 			cval->max = -256;
 		}

Missing break.

sound/usb/usbmixer.c static void build_feature_ctl(struct mixer_build *state, unsigned char *desc, · line 1020

Quoted 3 lines
sound/usb/usbmixer.c +3 -0
+	case USB_ID(0x046d, 0x09a4):
+		if (!strcmp(kctl->id.name, "Mic Capture Volume")) {
+			snd_printk(KERN_INFO "using volume control quirk for the QuickCam E 3500\n");

Could you fold the line to fit within 80 chars?

sound/usb/usbmixer.c static void build_feature_ctl(struct mixer_build *state, unsigned char *desc, · line 1024

Quoted 4 lines
sound/usb/usbmixer.c +4 -0
+			cval->min = 6080;
+			cval->max = 8768;
+			cval->res = 192;
+		}

Better break here, too.

thanks,

Takashi

#9 lore raw

PATCH 1/1 Volume control quirk for QuickCam E 3500

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

---
 sound/usb/usbmixer.c |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)
sound/usb/usbmixer.c +18 -5
index 5c48199..c87bcd1 100644
@@ -1000,20 +1000,33 @@ static void build_feature_ctl(struct mixer_build *state, unsigned char *desc,
 		break;
 	}
 
-	/* quirk for UDA1321/N101 */
-	/* note that detection between firmware 2.1.1.7 (N101) and later 2.1.1.21 */
-	/* is not very clear from datasheets */
-	/* I hope that the min value is -15360 for newer firmware --jk */
+	/* volume control quirks */
 	switch (state->chip->usb_id) {
 	case USB_ID(0x0471, 0x0101):
 	case USB_ID(0x0471, 0x0104):
 	case USB_ID(0x0471, 0x0105):
 	case USB_ID(0x0672, 0x1041):
+	/* quirk for UDA1321/N101.
+	 * note that detection between firmware 2.1.1.7 (N101) 
+	 * and later 2.1.1.21 is not very clear from datasheets.
+	 * I hope that the min value is -15360 for newer firmware --jk
+	 */
 		if (!strcmp(kctl->id.name, "PCM Playback Volume") &&
 		    cval->min == -15616) {
-			snd_printk(KERN_INFO "using volume control quirk for the UDA1321/N101 chip\n");
+			snd_printk(KERN_INFO
+				 "set volume quirk for UDA1321/N101 chip\n");
 			cval->max = -256;
 		}
+
+	case USB_ID(0x046d, 0x09a4):
+		if (!strcmp(kctl->id.name, "Mic Capture Volume")) {
+			snd_printk(KERN_INFO
+				"set volume quirk for QuickCam E3500\n");
+			cval->min = 6080;
+			cval->max = 8768;
+			cval->res = 192;
+		}
+
 	}
 
 	snd_printdd(KERN_INFO "[%d] FU [%s] ch = %d, val = %d/%d/%d\n",
Signature · 1 line
1.6.3.3
#10 lore raw

Re: [PATCH] Volume control quirk for QuickCam E 3500

At Wed, 22 Jul 2009 12:42:56 +0200,

Quoted 9 lines · Alexey Fisher

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

They miss still break lines...
Could you fix it?

thanks,

Takashi

Quoted 50 lines
---
 sound/usb/usbmixer.c |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)
sound/usb/usbmixer.c +18 -5
index 5c48199..c87bcd1 100644
@@ -1000,20 +1000,33 @@ static void build_feature_ctl(struct mixer_build *state, unsigned char *desc,
 		break;
 	}
 
-	/* quirk for UDA1321/N101 */
-	/* note that detection between firmware 2.1.1.7 (N101) and later 2.1.1.21 */
-	/* is not very clear from datasheets */
-	/* I hope that the min value is -15360 for newer firmware --jk */
+	/* volume control quirks */
 	switch (state->chip->usb_id) {
 	case USB_ID(0x0471, 0x0101):
 	case USB_ID(0x0471, 0x0104):
 	case USB_ID(0x0471, 0x0105):
 	case USB_ID(0x0672, 0x1041):
+	/* quirk for UDA1321/N101.
+	 * note that detection between firmware 2.1.1.7 (N101) 
+	 * and later 2.1.1.21 is not very clear from datasheets.
+	 * I hope that the min value is -15360 for newer firmware --jk
+	 */
 		if (!strcmp(kctl->id.name, "PCM Playback Volume") &&
 		    cval->min == -15616) {
-			snd_printk(KERN_INFO "using volume control quirk for the UDA1321/N101 chip\n");
+			snd_printk(KERN_INFO
+				 "set volume quirk for UDA1321/N101 chip\n");
 			cval->max = -256;
 		}
+
+	case USB_ID(0x046d, 0x09a4):
+		if (!strcmp(kctl->id.name, "Mic Capture Volume")) {
+			snd_printk(KERN_INFO
+				"set volume quirk for QuickCam E3500\n");
+			cval->min = 6080;
+			cval->max = 8768;
+			cval->res = 192;
+		}
+
 	}
 
 	snd_printdd(KERN_INFO "[%d] FU [%s] ch = %d, val = %d/%d/%d\n",
Signature · 1 line
1.6.3.3
#11 lore raw

PATCH 1/1 Volume control quirk for QuickCam E 3500

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

---
 sound/usb/usbmixer.c |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)
sound/usb/usbmixer.c +18 -5
index 5c48199..1e587f5 100644
@@ -1000,20 +1000,33 @@ static void build_feature_ctl(struct mixer_build *state, unsigned char *desc,
 		break;
 	}
 
-	/* quirk for UDA1321/N101 */
-	/* note that detection between firmware 2.1.1.7 (N101) and later 2.1.1.21 */
-	/* is not very clear from datasheets */
-	/* I hope that the min value is -15360 for newer firmware --jk */
+	/* volume control quirks */
 	switch (state->chip->usb_id) {
 	case USB_ID(0x0471, 0x0101):
 	case USB_ID(0x0471, 0x0104):
 	case USB_ID(0x0471, 0x0105):
 	case USB_ID(0x0672, 0x1041):
+	/* quirk for UDA1321/N101.
+	 * note that detection between firmware 2.1.1.7 (N101)
+	 * and later 2.1.1.21 is not very clear from datasheets.
+	 * I hope that the min value is -15360 for newer firmware --jk
+	 */
 		if (!strcmp(kctl->id.name, "PCM Playback Volume") &&
 		    cval->min == -15616) {
-			snd_printk(KERN_INFO "using volume control quirk for the UDA1321/N101 chip\n");
+			snd_printk(KERN_INFO
+				 "set volume quirk for UDA1321/N101 chip\n");
 			cval->max = -256;
 		}
+
+	case USB_ID(0x046d, 0x09a4):
+		if (!strcmp(kctl->id.name, "Mic Capture Volume")) {
+			snd_printk(KERN_INFO
+				"set volume quirk for QuickCam E3500\n");
+			cval->min = 6080;
+			cval->max = 8768;
+			cval->res = 192;
+		}
+
 	}
 
 	snd_printdd(KERN_INFO "[%d] FU [%s] ch = %d, val = %d/%d/%d\n",
Signature · 1 line
1.6.3.3
#12 lore raw

Re: [PATCH] Volume control quirk for QuickCam E 3500

In reply to Takashi Iwai
Quoted 9 lines · Takashi Iwai

At Wed, 22 Jul 2009 12:42:56 +0200,

Quoted 7 lines · Alexey Fisher

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

Quoted 4 lines
Quoted 1 line

They miss still break lines...
Could you fix it?

Ok, i'll do every time checkpatch.pl. I promise :)

thanky,
Alexey

Quoted 59 lines

thanks,

Takashi

Quoted 50 lines
---
 sound/usb/usbmixer.c |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)
sound/usb/usbmixer.c +18 -5
index 5c48199..c87bcd1 100644
@@ -1000,20 +1000,33 @@ static void build_feature_ctl(struct mixer_build *state, unsigned char *desc,
 		break;
 	}
 
-	/* quirk for UDA1321/N101 */
-	/* note that detection between firmware 2.1.1.7 (N101) and later 2.1.1.21 */
-	/* is not very clear from datasheets */
-	/* I hope that the min value is -15360 for newer firmware --jk */
+	/* volume control quirks */
 	switch (state->chip->usb_id) {
 	case USB_ID(0x0471, 0x0101):
 	case USB_ID(0x0471, 0x0104):
 	case USB_ID(0x0471, 0x0105):
 	case USB_ID(0x0672, 0x1041):
+	/* quirk for UDA1321/N101.
+	 * note that detection between firmware 2.1.1.7 (N101) 
+	 * and later 2.1.1.21 is not very clear from datasheets.
+	 * I hope that the min value is -15360 for newer firmware --jk
+	 */
 		if (!strcmp(kctl->id.name, "PCM Playback Volume") &&
 		    cval->min == -15616) {
-			snd_printk(KERN_INFO "using volume control quirk for the UDA1321/N101 chip\n");
+			snd_printk(KERN_INFO
+				 "set volume quirk for UDA1321/N101 chip\n");
 			cval->max = -256;
 		}
+
+	case USB_ID(0x046d, 0x09a4):
+		if (!strcmp(kctl->id.name, "Mic Capture Volume")) {
+			snd_printk(KERN_INFO
+				"set volume quirk for QuickCam E3500\n");
+			cval->min = 6080;
+			cval->max = 8768;
+			cval->res = 192;
+		}
+
 	}
 
 	snd_printdd(KERN_INFO "[%d] FU [%s] ch = %d, val = %d/%d/%d\n",
Signature · 1 line
1.6.3.3

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#13 lore raw

Re: [PATCH] Volume control quirk for QuickCam E 3500

At Wed, 22 Jul 2009 13:30:31 +0200,

Quoted 11 lines · Alexey Fisher
Quoted 9 lines · Takashi Iwai

At Wed, 22 Jul 2009 12:42:56 +0200,

Quoted 7 lines · Alexey Fisher

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

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

They miss still break lines...
Could you fix it?

Ok, i'll do every time checkpatch.pl. I promise :)

Ah, no, what I meant is to add "break;" line after each case in the switch block...

Takashi

#14 lore raw

PATCH 1/1 Volume control quirk for QuickCam E 3500

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

---
 sound/usb/usbmixer.c |   28 +++++++++++++++++++++++-----
 1 files changed, 23 insertions(+), 5 deletions(-)
sound/usb/usbmixer.c +23 -5
index 5c48199..79e5b6d 100644
@@ -1000,20 +1000,38 @@ static void build_feature_ctl(struct mixer_build *state, unsigned char *desc,
 		break;
 	}
 
-	/* quirk for UDA1321/N101 */
-	/* note that detection between firmware 2.1.1.7 (N101) and later 2.1.1.21 */
-	/* is not very clear from datasheets */
-	/* I hope that the min value is -15360 for newer firmware --jk */
+	/* volume control quirks */
 	switch (state->chip->usb_id) {
 	case USB_ID(0x0471, 0x0101):
+		break;
 	case USB_ID(0x0471, 0x0104):
+		break;
 	case USB_ID(0x0471, 0x0105):
+		break;
 	case USB_ID(0x0672, 0x1041):
+	/* quirk for UDA1321/N101.
+	 * note that detection between firmware 2.1.1.7 (N101)
+	 * and later 2.1.1.21 is not very clear from datasheets.
+	 * I hope that the min value is -15360 for newer firmware --jk
+	 */
 		if (!strcmp(kctl->id.name, "PCM Playback Volume") &&
 		    cval->min == -15616) {
-			snd_printk(KERN_INFO "using volume control quirk for the UDA1321/N101 chip\n");
+			snd_printk(KERN_INFO
+				 "set volume quirk for UDA1321/N101 chip\n");
 			cval->max = -256;
 		}
+		break;
+
+	case USB_ID(0x046d, 0x09a4):
+		if (!strcmp(kctl->id.name, "Mic Capture Volume")) {
+			snd_printk(KERN_INFO
+				"set volume quirk for QuickCam E3500\n");
+			cval->min = 6080;
+			cval->max = 8768;
+			cval->res = 192;
+		}
+		break;
+
 	}
 
 	snd_printdd(KERN_INFO "[%d] FU [%s] ch = %d, val = %d/%d/%d\n",
Signature · 1 line
1.6.3.3
#15 lore raw

Re: [PATCH] Volume control quirk for QuickCam E 3500

At Wed, 22 Jul 2009 14:18:33 +0200,

Quoted 23 lines · Alexey Fisher

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

---
 sound/usb/usbmixer.c |   28 +++++++++++++++++++++++-----
 1 files changed, 23 insertions(+), 5 deletions(-)
sound/usb/usbmixer.c +0 -2
index 5c48199..79e5b6d 100644
@@ -1000,20 +1000,38 @@ static void build_feature_ctl(struct mixer_build *state, unsigned char *desc,
 		break;
 	}
 
-	/* quirk for UDA1321/N101 */
-	/* note that detection between firmware 2.1.1.7 (N101) and later 2.1.1.21 */

sound/usb/usbmixer.c static void build_feature_ctl(struct mixer_build *state, unsigned char *desc, · line 1010

Quoted 10 lines
sound/usb/usbmixer.c +4 -2
-	/* is not very clear from datasheets */
-	/* I hope that the min value is -15360 for newer firmware --jk */
+	/* volume control quirks */
 	switch (state->chip->usb_id) {
 	case USB_ID(0x0471, 0x0101):
+		break;
 	case USB_ID(0x0471, 0x0104):
+		break;
 	case USB_ID(0x0471, 0x0105):
+		break;

These three breaks are wrong. It leads to skip the quirk for these items.

Takashi

#16 lore raw

PATCH 1/1 Volume control quirk for QuickCam E 3500

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

---
 sound/usb/usbmixer.c |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)
sound/usb/usbmixer.c +20 -5
index 5c48199..ab5a3ac 100644
@@ -1000,20 +1000,35 @@ static void build_feature_ctl(struct mixer_build *state, unsigned char *desc,
 		break;
 	}
 
-	/* quirk for UDA1321/N101 */
-	/* note that detection between firmware 2.1.1.7 (N101) and later 2.1.1.21 */
-	/* is not very clear from datasheets */
-	/* I hope that the min value is -15360 for newer firmware --jk */
+	/* volume control quirks */
 	switch (state->chip->usb_id) {
 	case USB_ID(0x0471, 0x0101):
 	case USB_ID(0x0471, 0x0104):
 	case USB_ID(0x0471, 0x0105):
 	case USB_ID(0x0672, 0x1041):
+	/* quirk for UDA1321/N101.
+	 * note that detection between firmware 2.1.1.7 (N101)
+	 * and later 2.1.1.21 is not very clear from datasheets.
+	 * I hope that the min value is -15360 for newer firmware --jk
+	 */
 		if (!strcmp(kctl->id.name, "PCM Playback Volume") &&
 		    cval->min == -15616) {
-			snd_printk(KERN_INFO "using volume control quirk for the UDA1321/N101 chip\n");
+			snd_printk(KERN_INFO
+				 "set volume quirk for UDA1321/N101 chip\n");
 			cval->max = -256;
 		}
+		break;
+
+	case USB_ID(0x046d, 0x09a4):
+		if (!strcmp(kctl->id.name, "Mic Capture Volume")) {
+			snd_printk(KERN_INFO
+				"set volume quirk for QuickCam E3500\n");
+			cval->min = 6080;
+			cval->max = 8768;
+			cval->res = 192;
+		}
+		break;
+
 	}
 
 	snd_printdd(KERN_INFO "[%d] FU [%s] ch = %d, val = %d/%d/%d\n",
Signature · 1 line
1.6.3.3
#17 lore raw

Re: [PATCH] Volume control quirk for QuickCam E 3500

At Wed, 22 Jul 2009 14:57:54 +0200,

Quoted 9 lines · Alexey Fisher

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

Applied now. Thanks!

Takashi

Quoted 52 lines
---
 sound/usb/usbmixer.c |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)
sound/usb/usbmixer.c +20 -5
index 5c48199..ab5a3ac 100644
@@ -1000,20 +1000,35 @@ static void build_feature_ctl(struct mixer_build *state, unsigned char *desc,
 		break;
 	}
 
-	/* quirk for UDA1321/N101 */
-	/* note that detection between firmware 2.1.1.7 (N101) and later 2.1.1.21 */
-	/* is not very clear from datasheets */
-	/* I hope that the min value is -15360 for newer firmware --jk */
+	/* volume control quirks */
 	switch (state->chip->usb_id) {
 	case USB_ID(0x0471, 0x0101):
 	case USB_ID(0x0471, 0x0104):
 	case USB_ID(0x0471, 0x0105):
 	case USB_ID(0x0672, 0x1041):
+	/* quirk for UDA1321/N101.
+	 * note that detection between firmware 2.1.1.7 (N101)
+	 * and later 2.1.1.21 is not very clear from datasheets.
+	 * I hope that the min value is -15360 for newer firmware --jk
+	 */
 		if (!strcmp(kctl->id.name, "PCM Playback Volume") &&
 		    cval->min == -15616) {
-			snd_printk(KERN_INFO "using volume control quirk for the UDA1321/N101 chip\n");
+			snd_printk(KERN_INFO
+				 "set volume quirk for UDA1321/N101 chip\n");
 			cval->max = -256;
 		}
+		break;
+
+	case USB_ID(0x046d, 0x09a4):
+		if (!strcmp(kctl->id.name, "Mic Capture Volume")) {
+			snd_printk(KERN_INFO
+				"set volume quirk for QuickCam E3500\n");
+			cval->min = 6080;
+			cval->max = 8768;
+			cval->res = 192;
+		}
+		break;
+
 	}
 
 	snd_printdd(KERN_INFO "[%d] FU [%s] ch = %d, val = %d/%d/%d\n",
Signature · 1 line
1.6.3.3