]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.6.2/alsa-usb-disable-broken-hw-volume-for-tenx-tp6911.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.6.2 / alsa-usb-disable-broken-hw-volume-for-tenx-tp6911.patch
CommitLineData
60859109
GKH
1From c10514394ef9e8de93a4ad8c8904d71dcd82c122 Mon Sep 17 00:00:00 2001
2From: David Henningsson <david.henningsson@canonical.com>
3Date: Thu, 20 Sep 2012 10:20:41 +0200
4Subject: ALSA: usb - disable broken hw volume for Tenx TP6911
5
6From: David Henningsson <david.henningsson@canonical.com>
7
8commit c10514394ef9e8de93a4ad8c8904d71dcd82c122 upstream.
9
10While going through Ubuntu bugs, I discovered this patch being
11posted and a confirmation that the patch works as expected.
12
13Finding out how the hw volume really works would be preferrable
14to just disabling the broken one, but this would be better than
15nothing.
16
17Credit: sndfnsdfin (qawsnews)
18BugLink: https://bugs.launchpad.net/bugs/559939
19Signed-off-by: David Henningsson <david.henningsson@canonical.com>
20Signed-off-by: Takashi Iwai <tiwai@suse.de>
21Signed-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);