]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix possible zero-division
authorTakashi Iwai <tiwai@suse.de>
Mon, 4 Nov 2013 14:44:09 +0000 (15:44 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2013 06:47:52 +0000 (07:47 +0100)
commit1314d665ecbecfee60b1ea803a807f131a794b79
treeaedaf3304fa5a8c16bd48c712d373e4dcd5cde8a
parent9fae5b5de83ea5a18c005303174f35cbfde6b95e
ALSA: hda - Fix possible zero-division

Check the TLV db scale result before actually dividing in vmaster
slave init code.  Also mask TLV_DB_SCALE_MUTE bit so that the right
value is obtained even if this bit is set by the codec driver.

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