ALSA: hda - Halve too large volume scales for STAC/IDT codecs
authorTakashi Iwai <tiwai@suse.de>
Tue, 20 Jan 2009 14:28:38 +0000 (15:28 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Jan 2009 14:31:14 +0000 (15:31 +0100)
commit7c7767ebe2fa847c91a0dd5551ca422aba359473
tree8356cff935ff184fadfadc1881fdb81b74ac2a12
parent29fdbec2dcb1ce364812778271056aa9516ff3ed
ALSA: hda - Halve too large volume scales for STAC/IDT codecs

STAC/IDT codecs have often too large volume scales such as -96dB,
and exposing this as is results in too large scale in percentage
representation.

This patch adds the check of the volume scale and halves the
volume range if it's too large automatically.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_sigmatel.c