]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio - Fix missing mixer dB information
authorTakashi Iwai <tiwai@suse.de>
Fri, 19 Aug 2011 05:55:10 +0000 (07:55 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 19 Aug 2011 05:55:10 +0000 (07:55 +0200)
commit5ef2a931303f8bcf3e8fc0f5903a73f3b590d230
treeeeddb399b62b27ef184e87d0bcb8469b3dff5fdd
parent2c5c2d105b98b1c7f6955ec2bd6949eb6b1419c6
ALSA: usb-audio - Fix missing mixer dB information

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>
Cc: <stable@kernel.org>
sound/usb/mixer.c