]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio - Fix the missing volume quirks at delayed init
authorTakashi Iwai <tiwai@suse.de>
Tue, 8 Nov 2011 16:50:27 +0000 (17:50 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Nov 2011 16:50:27 +0000 (17:50 +0100)
commitada2b98b6aa03de704f5dff1cef9385710564ae8
treebea2206f37aa1fcd0344f5889d19abe16c3bd4fb
parent9e4a3384296b4e17d33f557a65636982a8ee060a
ALSA: usb-audio - Fix the missing volume quirks at delayed init

In the recent usb-audio driver, the initialization of volume ranges
may be delayed when the device doesn't respond well at the probing time.
But the volume quirks for certain devices are applied only in
mixer_ctl_feature_info() thus only at the very first probe and will be
missing when the volume range is initialized later.

This patch moves the volume quirk code to be always called from the
volume-range extraction (get_min_max()), so that the quirks are properly
applied in the later init time.

Reported-and-tested-by: Alexey Fisher <bug-track@fisher-privat.net>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c