]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Initialize Dell Dock playback volumes
authorTakashi Iwai <tiwai@suse.de>
Fri, 27 Apr 2018 12:23:37 +0000 (14:23 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 2 May 2018 14:02:32 +0000 (16:02 +0200)
commitc727214dc970c9b9f1203e3f1daa6fa848a9c0c5
treeab5b7731f63449b7892bcd476f5174b80c5dd314
parentd606726d0a96e3c7992ce78b95e083d47d46486f
ALSA: usb-audio: Initialize Dell Dock playback volumes

In the early commit 0f318b4b39c0 ("ALSA: usb-audio: Skip volume
controls triggers hangup on Dell USB Dock"), we add the mixer quirks
for Dell dock to skip two mixer FU's for playback.  This supposed that
the device has always the proper initial volume, but it doesn't seem
always correct.

This patch adds the explicit initialization of the volumes to the
fixed 0dB at the device probe time.  Also, such a fixup is needed
after the resume, so a new function is hooked to the resume callback
as well.

Bugzilla: http://bugzilla.suse.com/show_bug.cgi?id=1089467
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c
sound/usb/mixer_quirks.c
sound/usb/mixer_quirks.h