]> git.hungrycats.org Git - linux/commitdiff
ALSA: usb-audio: Skip volume controls triggers hangup on Dell USB Dock
authorKailang Yang <kailang@realtek.com>
Tue, 12 Apr 2016 02:55:03 +0000 (10:55 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 20 Apr 2016 13:41:01 +0000 (09:41 -0400)
[ Upstream commit adcdd0d5a1cb779f6d455ae70882c19c527627a8 ]

This is Dell usb dock audio workaround.
It was fixed the master volume keep lower.

[Some background: the patch essentially skips the controls of a couple
 of FU volumes.  Although the firmware exposes the dB and the value
 information via the usb descriptor, changing the values (we set the
 min volume as default) screws up the device.  Although this has been
 fixed in the newer firmware, the devices are shipped with the old
 firmware, thus we need the workaround in the driver side.  -- tiwai]

Signed-off-by: Kailang Yang <kailang@realtek.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/usb/mixer_maps.c

index 9a3e1076a5b14206d66c197075016ff4a576e007..c758638df9f75fcb06f4313b37552bf90e61deda 100644 (file)
@@ -350,6 +350,16 @@ static struct usbmix_name_map dragonfly_1_2_map[] = {
        { 0 }   /* terminator */
 };
 
+/*
+ * Dell usb dock with ALC4020 codec had a firmware problem where it got
+ * screwed up when zero volume is passed; just skip it as a workaround
+ */
+static const struct usbmix_name_map dell_alc4020_map[] = {
+       { 16, NULL },
+       { 19, NULL },
+       { 0 }
+};
+
 /*
  * Control map entries
  */
@@ -432,6 +442,10 @@ static struct usbmix_ctl_map usbmix_ctl_maps[] = {
                .id = USB_ID(0x0ccd, 0x0028),
                .map = aureon_51_2_map,
        },
+       {
+               .id = USB_ID(0x0bda, 0x4014),
+               .map = dell_alc4020_map,
+       },
        {
                .id = USB_ID(0x13e5, 0x0001),
                .map = scratch_live_map,