ALSA: usb-audio - Don't expose broken dB ranges
authorTakashi Iwai <tiwai@suse.de>
Thu, 28 Apr 2011 07:58:43 +0000 (09:58 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 28 Apr 2011 07:58:43 +0000 (09:58 +0200)
commit59bb7f0eebe69aa32a5c7917a23a7da1c5667d73
tree07148368f34290c5127f106909b1fb2422a3f7fb
parent13eb4ab8ca719c852ae5fbd6e803afa333ad569a
ALSA: usb-audio - Don't expose broken dB ranges

Some crappy USB-audio devices give broken dB ranges, e.g. both min and max
are 0dB.  This confuses the volume control that prefers dB expression such
as alsactl or PulseAudio.  In such a case, it's much better not to expose
the broken dB information.

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