From: Takashi Iwai <tiwai@suse.de>
To: James Courtier-Dutton <James@superbug.demon.co.uk>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: SIS7012 SPDIF support
Date: Fri, 06 Jun 2003 11:03:15 +0200 [thread overview]
Message-ID: <s5hvfvjk27g.wl@alsa2.suse.de> (raw)
In-Reply-To: <3EDFEC45.6010908@superbug.demon.co.uk>
[-- Attachment #1: Type: text/plain, Size: 1072 bytes --]
At Fri, 06 Jun 2003 02:20:05 +0100,
James Courtier-Dutton wrote:
>
> Takashi Iwai wrote:
> >
> >
> > thanks. looking at the codes, it seems that no special handling for
> > the chip. it simply sets up the ac97 registers.
> >
> > the patch below is a quick hack to set the spdif rate on the first
> > playback pcm device. in addition, you'll need to set up the following
> > mixer controls:
> >
> > - 'IEC958 AC97-SPSA' to 0 (slots 3/4).
> > - 'IEC958 Playback Switch' to on.
> >
> > you might need to set up 'IEC958 Playback Default', too, but it might
> > not... try once the above two switches at first.
> >
> >
> > Takashi
>
> I have done some further investigation, and have discovered the type of
> ac97 chip used.
> I attach output from the ac97#0regs /proc/asound/card0 file.
> Here is the url to download datasheets of the chip.
> It is an ALC650 Chip.
> http://www.realtek.com.tw/downloads/downloads1-3.aspx?lineid=5&famid=All&series=8&refdesign=True
oops, it seems like my mistake in the last change.
could you try the attached patch?
Takashi
[-- Attachment #2: alc650-fix.dif --]
[-- Type: application/octet-stream, Size: 1108 bytes --]
Index: alsa-kernel/pci/ac97/ac97_patch.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v
retrieving revision 1.14
diff -u -r1.14 ac97_patch.c
--- alsa-kernel/pci/ac97/ac97_patch.c 21 May 2003 09:50:13 -0000 1.14
+++ alsa-kernel/pci/ac97/ac97_patch.c 6 Jun 2003 08:43:09 -0000
@@ -370,18 +370,17 @@
unsigned short val;
int spdif = 0;
- /* FIXME: set the above 1 if we can detect the chip rev.E correctly.
+ /* FIXME: set the below 1 if we can detect the chip rev.E correctly.
* this is used for switching mic and center/lfe, which needs
* resetting GPIO0 level on the older revision.
*/
ac97->spec.dev_flags = 0;
- /* check spdif */
- if (ac97->spec.dev_flags) {
- val = snd_ac97_read(ac97, AC97_EXTENDED_STATUS);
- if (val & AC97_EA_SPCV)
- spdif = 1;
- }
+ /* check spdif (should be only on rev.E) */
+ val = snd_ac97_read(ac97, AC97_EXTENDED_STATUS);
+ if (val & AC97_EA_SPCV)
+ spdif = 1;
+
if (spdif) {
/* enable spdif in */
snd_ac97_write_cache(ac97, AC97_ALC650_CLOCK,
next prev parent reply other threads:[~2003-06-06 9:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-02 16:01 SIS7012 SPDIF support James Courtier-Dutton
2003-06-02 18:42 ` Jaroslav Kysela
2003-06-03 9:55 ` Takashi Iwai
2003-06-03 11:24 ` James Courtier-Dutton
2003-06-03 12:16 ` Takashi Iwai
2003-06-06 1:20 ` James Courtier-Dutton
2003-06-06 9:03 ` Takashi Iwai [this message]
2003-06-06 21:18 ` James Courtier-Dutton
2003-06-04 9:11 ` build changes Giuliano Pochini
2003-06-04 11:40 ` Jaroslav Kysela
2003-06-04 15:57 ` Giuliano Pochini
2003-06-04 17:17 ` Takashi Iwai
2003-06-07 0:38 ` Giuliano Pochini
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=s5hvfvjk27g.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=James@superbug.demon.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.