All of lore.kernel.org
 help / color / mirror / Atom feed
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: Tue, 03 Jun 2003 14:16:13 +0200	[thread overview]
Message-ID: <s5hisrnnype.wl@alsa2.suse.de> (raw)
In-Reply-To: <3EDC8553.8080902@superbug.demon.co.uk>

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

At Tue, 03 Jun 2003 12:24:03 +0100,
James Courtier-Dutton wrote:
> 
> Takashi Iwai wrote:
> > At Mon, 02 Jun 2003 17:01:42 +0100,
> > James Courtier-Dutton wrote:
> > 
> >>Is the SPDIF output of the SIS7012 (i810 with ac97)  supported in alsa.
> >>If so, how does one enable the SPDIF out.
> >>The current kernel OSS module supports it.
> > 
> > 
> > which OSS (kernel) version supports spdif out on this chip?
> > i'd like to take a look.
> > 
> > 
> > ciao,
> > 
> > Takashi
> > 
> > 
> The user I was talking to on irc had kernel 2.4.21-ac-rc1  or something 
> like that.
> I have root access to his box if you need any more info.
> linux-2.4.21-rc1.tar.bz2
> 
> I attach the source files that I think you need.

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

[-- Attachment #2: sis-spdif.dif --]
[-- Type: application/octet-stream, Size: 735 bytes --]

Index: alsa-kernel/pci/intel8x0.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/intel8x0.c,v
retrieving revision 1.82
diff -u -r1.82 intel8x0.c
--- alsa-kernel/pci/intel8x0.c	20 May 2003 12:51:07 -0000	1.82
+++ alsa-kernel/pci/intel8x0.c	3 Jun 2003 12:01:59 -0000
@@ -869,6 +869,9 @@
 		for (i = 0; i < 3; i++)
 			if (ichdev->ac97_rate_regs[i])
 				snd_ac97_set_rate(ichdev->ac97, ichdev->ac97_rate_regs[i], runtime->rate);
+		/* FIXME: hack to enable spdif support */
+		if (ichdev->ichd == ICHD_PCMOUT && chip->device_type == DEVICE_SIS)
+			snd_ac97_set_rate(ichdev->ac97, AC97_SPDIF, runtime->rate);
 	}
 	snd_intel8x0_setup_periods(chip, ichdev);
 	return 0;

  reply	other threads:[~2003-06-03 12:16 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 [this message]
2003-06-06  1:20       ` James Courtier-Dutton
2003-06-06  9:03         ` Takashi Iwai
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=s5hisrnnype.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.