From: Stefan Macher <Stefan.Macher@web.de>
To: alsa-devel@lists.sourceforge.net
Subject: ALC658 SPDIF input patch
Date: Sun, 9 Jan 2005 22:49:44 +0100 [thread overview]
Message-ID: <200501092249.44565.Stefan.Macher@web.de> (raw)
Hi,
I have made a patch to get SPDIF input working with the Realtek ALC658.
Realtek has changed the meaning of the Pin47 function selection bit (MX7A bit
1 ) between ALC655 and ALC658.
ALC655: 0 -> external amplifier power down; 1 -> SPDIF IN
ALC658: 0 -> SPDIF IN; 1 -> external amplifier power down
Can please anybody include this into CVS.
Thanks,
Stefan
-------------------------------------------------------------------------------------------------------------
--- alsa-driver-1.0.8rc2/alsa-kernel/pci/ac97/ac97_patch.c 2005-01-04
12:01:01.000000000 +0100
+++ alsa-driver-1.0.8rc2-alc658patch/alsa-kernel/pci/ac97/ac97_patch.c
2005-01-09 22:20:53.933529512 +0100
@@ -1605,7 +1605,10 @@
/* 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,
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
next reply other threads:[~2005-01-09 21:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-09 21:49 Stefan Macher [this message]
2005-01-10 12:02 ` ALC658 SPDIF input patch Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2005-01-10 15:08 Stefan Macher
2005-01-11 13:18 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200501092249.44565.Stefan.Macher@web.de \
--to=stefan.macher@web.de \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox