[PATCH] [UBUNTU:sound/pci/hda/] Fix master mute switch on Vaio laptops using STAC7661 HDA codec

crimsun at fungus.sh.nu crimsun at fungus.sh.nu
Sun May 14 23:13:51 UTC 2006


Subject: [PATCH] [UBUNTU:sound/pci/hda/] Fix master mute switch on Vaio laptops using STAC7661 HDA codec

UpstreamStatus: Added in upstream hg changeset 0f367ec087bb [0]

This commit by Takashi Iwai fixes the master mute switch on Sony Vaio
laptops using the STAC7661 HDA codec.

[0] http://sourceforge.net/mailarchive/forum.php?thread_id=10295239&forum_id=33141

Signed-off-by: Daniel T Chen <crimsun at ubuntu.com>

---

 sound/pci/hda/patch_sigmatel.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

4568a03e79960c9223b3a8f942b0ebe274bb2b8c
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 6ba5b67..3d4967c 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -1261,13 +1261,13 @@ static int vaio_master_sw_put(snd_kcontr
 	int change;
 
 	change = snd_hda_codec_amp_update(codec, 0x02, 0, HDA_OUTPUT, 0,
-					  0x80, valp[0] & 0x80);
+					  0x80, (valp[0] ? 0 : 0x80));
 	change |= snd_hda_codec_amp_update(codec, 0x02, 1, HDA_OUTPUT, 0,
-					   0x80, valp[1] & 0x80);
+					   0x80, (valp[1] ? 0 : 0x80));
 	snd_hda_codec_amp_update(codec, 0x05, 0, HDA_OUTPUT, 0,
-				 0x80, valp[0] & 0x80);
+				 0x80, (valp[0] ? 0 : 0x80));
 	snd_hda_codec_amp_update(codec, 0x05, 1, HDA_OUTPUT, 0,
-				 0x80, valp[1] & 0x80);
+				 0x80, (valp[1] ? 0 : 0x80));
 	return change;
 }
 
-- 
1.1.3


-- 
Daniel T. Chen            crimsun at ubuntu.com
GPG key:   www.sh.nu/~crimsun/pubkey.gpg.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20060514/59c97f9d/attachment.sig>


More information about the kernel-team mailing list