OSDN Git Service

ALSA: usb-audio - Fix missing mixer dB information
authorTakashi Iwai <tiwai@suse.de>
Fri, 19 Aug 2011 05:55:10 +0000 (07:55 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 29 Aug 2011 20:29:09 +0000 (13:29 -0700)
commit5e5c860400ef1307e3d87aebd5ec8a35b078ca51
tree346e159f3e9d9f2f248c6ca37da918b38377eeba
parent966ef7daecee021ffded11d584e57160ee0395c2
ALSA: usb-audio - Fix missing mixer dB information

commit 38b65190c6ab0be8ce7cff69e734ca5b5e7fa309 upstream.

The recent fix for testing dB range at the mixer creation time seems
to cause regressions in some devices.  In such devices, reading the dB
info at probing time gives an error, thus both dBmin and dBmax are still
zero, and TLV flag isn't set although the later read of dB info succeeds.

This patch adds a workaround for such a case by assuming that the later
read will succeed.  In future, a similar test should be performed in a
case where a wrong dB range is seen even in the later read.

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