From: James Courtier-Dutton <James@superbug.co.uk>
To: alsa-devel <alsa-devel@lists.sourceforge.net>
Subject: [PATCH] Special AC97 patch for ASUS W1000/CMI9739 laptop.
Date: Sun, 23 Jan 2005 16:14:04 +0000 [thread overview]
Message-ID: <41F3CD4C.6090506@superbug.co.uk> (raw)
[-- Attachment #1: Type: text/plain, Size: 205 bytes --]
This patch fixes sound output on the ASUS W1000 laptop with the CMI9739
chip. It wrongly reports that it has a SPDIF in, when in fact we wish to
use the EAPD pin.
Signed off: James@superbug.demon.co.uk
[-- Attachment #2: disable-spdif-in2.diff.txt --]
[-- Type: text/plain, Size: 965 bytes --]
Index: alsa-driver/alsa-kernel/pci/ac97/ac97_patch.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v
retrieving revision 1.70
diff -u -r1.70 ac97_patch.c
--- alsa-driver/alsa-kernel/pci/ac97/ac97_patch.c 20 Jan 2005 11:43:19 -0000 1.70
+++ alsa-driver/alsa-kernel/pci/ac97/ac97_patch.c 23 Jan 2005 16:04:31 -0000
@@ -1916,6 +1916,15 @@
/* FIXME: set up GPIO */
snd_ac97_write_cache(ac97, 0x70, 0x0100);
snd_ac97_write_cache(ac97, 0x72, 0x0020);
+ /* Special exception for ASUS W1000/CMI9739. It does not have an SPDIF in. */
+ if (ac97->pci &&
+ ac97->subsystem_vendor == 0x1043 &&
+ ac97->subsystem_device == 0x1843) {
+ snd_ac97_write_cache(ac97, AC97_CM9739_SPDIF_CTRL,
+ snd_ac97_read(ac97, AC97_CM9739_SPDIF_CTRL) & ~0x01);
+ snd_ac97_write_cache(ac97, AC97_CM9739_MULTI_CHAN,
+ snd_ac97_read(ac97, AC97_CM9739_MULTI_CHAN) | (1 << 14));
+ }
return 0;
}
next reply other threads:[~2005-01-23 16:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-23 16:14 James Courtier-Dutton [this message]
2005-01-24 12:11 ` [PATCH] Special AC97 patch for ASUS W1000/CMI9739 laptop 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=41F3CD4C.6090506@superbug.co.uk \
--to=james@superbug.co.uk \
--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