提交 ee71508e 编写于 作者: T Takashi Iwai 提交者: Jaroslav Kysela

[ALSA] Fix EAPD for MSI S270

AC97 Codec
Fix pin47 setting for EAPD control on MSI S270 laptop.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 9f566cfd
...@@ -2145,8 +2145,13 @@ int patch_alc655(ac97_t * ac97) ...@@ -2145,8 +2145,13 @@ int patch_alc655(ac97_t * ac97)
val = snd_ac97_read(ac97, 0x7a); /* misc control */ val = snd_ac97_read(ac97, 0x7a); /* misc control */
if (ac97->id == 0x414c4780) /* ALC658 */ if (ac97->id == 0x414c4780) /* ALC658 */
val &= ~(1 << 1); /* Pin 47 is spdif input pin */ val &= ~(1 << 1); /* Pin 47 is spdif input pin */
else /* ALC655 */ else { /* ALC655 */
val |= (1 << 1); /* Pin 47 is spdif input pin */ if (ac97->subsystem_vendor == 0x1462 &&
ac97->subsystem_device == 0x0131) /* MSI S270 laptop */
val &= ~(1 << 1); /* Pin 47 is EAPD (for internal speaker) */
else
val |= (1 << 1); /* Pin 47 is spdif input pin */
}
val &= ~(1 << 12); /* vref enable */ val &= ~(1 << 12); /* vref enable */
snd_ac97_write_cache(ac97, 0x7a, val); snd_ac97_write_cache(ac97, 0x7a, val);
/* set default: spdif-in enabled, /* set default: spdif-in enabled,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册