]>
Commit | Line | Data |
---|---|---|
60859109 GKH |
1 | From c10514394ef9e8de93a4ad8c8904d71dcd82c122 Mon Sep 17 00:00:00 2001 |
2 | From: David Henningsson <david.henningsson@canonical.com> | |
3 | Date: Thu, 20 Sep 2012 10:20:41 +0200 | |
4 | Subject: ALSA: usb - disable broken hw volume for Tenx TP6911 | |
5 | ||
6 | From: David Henningsson <david.henningsson@canonical.com> | |
7 | ||
8 | commit c10514394ef9e8de93a4ad8c8904d71dcd82c122 upstream. | |
9 | ||
10 | While going through Ubuntu bugs, I discovered this patch being | |
11 | posted and a confirmation that the patch works as expected. | |
12 | ||
13 | Finding out how the hw volume really works would be preferrable | |
14 | to just disabling the broken one, but this would be better than | |
15 | nothing. | |
16 | ||
17 | Credit: sndfnsdfin (qawsnews) | |
18 | BugLink: https://bugs.launchpad.net/bugs/559939 | |
19 | Signed-off-by: David Henningsson <david.henningsson@canonical.com> | |
20 | Signed-off-by: Takashi Iwai <tiwai@suse.de> | |
21 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
22 | ||
23 | --- | |
24 | sound/usb/mixer.c | 7 +++++++ | |
25 | 1 file changed, 7 insertions(+) | |
26 | ||
27 | --- a/sound/usb/mixer.c | |
28 | +++ b/sound/usb/mixer.c | |
29 | @@ -1267,6 +1267,13 @@ static int parse_audio_feature_unit(stru | |
30 | /* disable non-functional volume control */ | |
31 | master_bits &= ~UAC_CONTROL_BIT(UAC_FU_VOLUME); | |
32 | break; | |
33 | + case USB_ID(0x1130, 0xf211): | |
34 | + snd_printk(KERN_INFO | |
35 | + "usbmixer: volume control quirk for Tenx TP6911 Audio Headset\n"); | |
36 | + /* disable non-functional volume control */ | |
37 | + channels = 0; | |
38 | + break; | |
39 | + | |
40 | } | |
41 | if (channels > 0) | |
42 | first_ch_bits = snd_usb_combine_bytes(bmaControls + csize, csize); |