aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@suse.cz>2005-01-12 13:19:00 +0100
committerJaroslav Kysela <perex@suse.cz>2005-01-12 13:19:00 +0100
commit924382dd3248b71194ee7cb3529a270d07189614 (patch)
tree01a7b901a2ea0ca2fe8f5e7c63cd36ca41967623 /sound
parentcaf5ea0b9c4f3c5ea96f2471385e1a420d1ad90a (diff)
downloadhistory-924382dd3248b71194ee7cb3529a270d07189614.tar.gz
[ALSA] Adapt SPDIF Input selection for Realtek ALC658
AC97 Codec Core This fixes the SPDIF Input selection for ALC658 as Realtek has changed the meaning betweenALC655 and ALC658. Signed-off-by: Stefan Macher <Stefan.Macher@web.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/ac97/ac97_patch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/ac97/ac97_patch.c b/sound/pci/ac97/ac97_patch.c
index 102977a0aeda0f..cb7d9e1319060d 100644
--- a/sound/pci/ac97/ac97_patch.c
+++ b/sound/pci/ac97/ac97_patch.c
@@ -1605,7 +1605,10 @@ int patch_alc655(ac97_t * ac97)
/* adjust default values */
val = snd_ac97_read(ac97, 0x7a); /* misc control */
- val |= (1 << 1); /* spdif input pin */
+ if (ac97->id == 0x414c4780) /* ALC658 */
+ val &= ~(1 << 1); /* Pin 47 is spdif input pin */
+ else /* ALC655 */
+ val |= (1 << 1); /* Pin 47 is spdif input pin */
val &= ~(1 << 12); /* vref enable */
snd_ac97_write_cache(ac97, 0x7a, val);
/* set default: spdif-in enabled,