Skip to content

Commit adcdd0d

Browse files
KailangYangtiwai
authored andcommitted
ALSA: usb-audio: Skip volume controls triggers hangup on Dell USB Dock
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>
1 parent c636b95 commit adcdd0d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

sound/usb/mixer_maps.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,16 @@ static struct usbmix_name_map bose_companion5_map[] = {
348348
{ 0 } /* terminator */
349349
};
350350

351+
/*
352+
* Dell usb dock with ALC4020 codec had a firmware problem where it got
353+
* screwed up when zero volume is passed; just skip it as a workaround
354+
*/
355+
static const struct usbmix_name_map dell_alc4020_map[] = {
356+
{ 16, NULL },
357+
{ 19, NULL },
358+
{ 0 }
359+
};
360+
351361
/*
352362
* Control map entries
353363
*/
@@ -430,6 +440,10 @@ static struct usbmix_ctl_map usbmix_ctl_maps[] = {
430440
.id = USB_ID(0x0ccd, 0x0028),
431441
.map = aureon_51_2_map,
432442
},
443+
{
444+
.id = USB_ID(0x0bda, 0x4014),
445+
.map = dell_alc4020_map,
446+
},
433447
{
434448
.id = USB_ID(0x0dba, 0x1000),
435449
.map = mbox1_map,

0 commit comments

Comments
 (0)