From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: SIS7012 SPDIF support Date: Tue, 03 Jun 2003 14:16:13 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <3EDB74E6.3020600@superbug.demon.co.uk> <3EDC8553.8080902@superbug.demon.co.uk> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: multipart/mixed; boundary="Multipart_Tue_Jun__3_14:16:12_2003-1" Return-path: In-Reply-To: <3EDC8553.8080902@superbug.demon.co.uk> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: James Courtier-Dutton Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --Multipart_Tue_Jun__3_14:16:12_2003-1 Content-Type: text/plain; charset=US-ASCII 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 --Multipart_Tue_Jun__3_14:16:12_2003-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="sis-spdif.dif" Content-Transfer-Encoding: 7bit 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; --Multipart_Tue_Jun__3_14:16:12_2003-1-- ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5