From: David Henningsson Date: Thu, 20 Sep 2012 08:20:41 +0000 (+0200) Subject: ALSA: usb - disable broken hw volume for Tenx TP6911 X-Git-Tag: v3.4.14~41 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=92c635bfcd86aa182b9a6734426e61e1420579d7;p=karo-tx-linux.git ALSA: usb - disable broken hw volume for Tenx TP6911 commit c10514394ef9e8de93a4ad8c8904d71dcd82c122 upstream. While going through Ubuntu bugs, I discovered this patch being posted and a confirmation that the patch works as expected. Finding out how the hw volume really works would be preferrable to just disabling the broken one, but this would be better than nothing. Credit: sndfnsdfin (qawsnews) BugLink: https://bugs.launchpad.net/bugs/559939 Signed-off-by: David Henningsson Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c index ab23869c01bb..8a818a4573af 100644 --- a/sound/usb/mixer.c +++ b/sound/usb/mixer.c @@ -1247,6 +1247,13 @@ static int parse_audio_feature_unit(struct mixer_build *state, int unitid, void /* disable non-functional volume control */ master_bits &= ~UAC_CONTROL_BIT(UAC_FU_VOLUME); break; + case USB_ID(0x1130, 0xf211): + snd_printk(KERN_INFO + "usbmixer: volume control quirk for Tenx TP6911 Audio Headset\n"); + /* disable non-functional volume control */ + channels = 0; + break; + } if (channels > 0) first_ch_bits = snd_usb_combine_bytes(bmaControls + csize, csize);