OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Nov 2011 22:31:17 +0000 (14:31 -0800)
commit6861f2aa5840d7237aa0249a76ae29c939e7c93a
tree5d53faac03fd8c0f29ab54f1911d2483b757b219
parent9338f407e30015cd9d236d8a678cacd2c72d4a31
ALSA: usb-audio - Fix the missing volume quirks at delayed init

commit dcaaf9f2c16b56f8bb316881fcd3f15c18fc71e7 upstream.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/usb/mixer.c