Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kailang Yang and committed by
Takashi Iwai
adcdd0d5 c636b95e

+14
+14
sound/usb/mixer_maps.c
··· 349 349 }; 350 350 351 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 + 361 + /* 352 362 * Control map entries 353 363 */ 354 364 ··· 439 429 { 440 430 .id = USB_ID(0x0ccd, 0x0028), 441 431 .map = aureon_51_2_map, 432 + }, 433 + { 434 + .id = USB_ID(0x0bda, 0x4014), 435 + .map = dell_alc4020_map, 442 436 }, 443 437 { 444 438 .id = USB_ID(0x0dba, 0x1000),