Skip to content

Commit

Permalink
ALSA: hda - Fix wrong TLV mute bit for STAC/IDT codecs
Browse files Browse the repository at this point in the history
The bit value set for TLV mute was wrong in commit
de8c85f, which resulted in bogus
dB ranges that screw up PulseAudio.  Corrected with the right constant.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Clemens Ladisch authored and Takashi Iwai committed Oct 22, 2010
1 parent 00cd0bb commit a74ccea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a74ccea

Please sign in to comment.