Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Fisher <bug-track@fisher-privat.net>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org, clemens@ladisch.de
Subject: Re: [PATCH] Volume control quirk for QuickCam E 3500
Date: Wed, 22 Jul 2009 13:30:31 +0200	[thread overview]
Message-ID: <4A66F857.9090309@fisher-privat.net> (raw)
In-Reply-To: <s5hocrd0zfp.wl%tiwai@suse.de>

Takashi Iwai schrieb:
> At Wed, 22 Jul 2009 12:42:56 +0200,
> Alexey Fisher wrote:
>> - 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.
>>
>> Signed-off-by: Alexey Fisher <bug-track@fisher-privat.net>
> 
> They miss still break lines...
> Could you fix it?

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

thanky,
Alexey



> 
> thanks,
> 
> Takashi
> 
>> ---
>>  sound/usb/usbmixer.c |   23 ++++++++++++++++++-----
>>  1 files changed, 18 insertions(+), 5 deletions(-)
>>
>> diff --git a/sound/usb/usbmixer.c b/sound/usb/usbmixer.c
>> index 5c48199..c87bcd1 100644
>> --- a/sound/usb/usbmixer.c
>> +++ b/sound/usb/usbmixer.c
>> @@ -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",
>> -- 
>> 1.6.3.3
>>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  parent reply	other threads:[~2009-07-22 11:30 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A66F857.9090309@fisher-privat.net \
    --to=bug-track@fisher-privat.net \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox