ALSA: hda - Fix wrong TLV mute bit for STAC/IDT codecs
[deliverable/linux.git] / sound / pci / hda / patch_sigmatel.c
index 7d70f8ca37427956c715e555b795084f219b5a49..7f487ab4dad4ab89ddc035eef0e992a1fd1d59e2 100644 (file)
@@ -32,6 +32,7 @@
 #include <sound/core.h>
 #include <sound/asoundef.h>
 #include <sound/jack.h>
+#include <sound/tlv.h>
 #include "hda_codec.h"
 #include "hda_local.h"
 #include "hda_beep.h"
@@ -1145,7 +1146,7 @@ static int stac92xx_build_controls(struct hda_codec *codec)
                /* correct volume offset */
                vmaster_tlv[2] += vmaster_tlv[3] * spec->volume_offset;
                /* minimum value is actually mute */
-               vmaster_tlv[3] |= 0x1000;
+               vmaster_tlv[3] |= TLV_DB_SCALE_MUTE;
                err = snd_hda_add_vmaster(codec, "Master Playback Volume",
                                          vmaster_tlv, slave_vols);
                if (err < 0)
This page took 0.028715 seconds and 5 git commands to generate.