aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2012-09-20 04:20:41 -0400
committerTakashi Iwai <tiwai@suse.de>2012-09-20 04:48:47 -0400
commitc10514394ef9e8de93a4ad8c8904d71dcd82c122 (patch)
tree91ac6afe012f906694fec62e4ea478f3d56ec603
parentc40bd914a80e067ad87aa5c587e590873ebb97e2 (diff)
ALSA: usb - disable broken hw volume for Tenx TP6911
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 <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/usb/mixer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c
index 4f40ba823163..fe56c9da38e9 100644
--- a/sound/usb/mixer.c
+++ b/sound/usb/mixer.c
@@ -1267,6 +1267,13 @@ static int parse_audio_feature_unit(struct mixer_build *state, int unitid, void
1267 /* disable non-functional volume control */ 1267 /* disable non-functional volume control */
1268 master_bits &= ~UAC_CONTROL_BIT(UAC_FU_VOLUME); 1268 master_bits &= ~UAC_CONTROL_BIT(UAC_FU_VOLUME);
1269 break; 1269 break;
1270 case USB_ID(0x1130, 0xf211):
1271 snd_printk(KERN_INFO
1272 "usbmixer: volume control quirk for Tenx TP6911 Audio Headset\n");
1273 /* disable non-functional volume control */
1274 channels = 0;
1275 break;
1276
1270 } 1277 }
1271 if (channels > 0) 1278 if (channels > 0)
1272 first_ch_bits = snd_usb_combine_bytes(bmaControls + csize, csize); 1279 first_ch_bits = snd_usb_combine_bytes(bmaControls + csize, csize);