Skip to contentSkip to conversation

: NVIDIA CK8 ALC655 SPDIF passthrough

ALSA - driver 0001083 [email protected] 1 participant 1 message Jun 19, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1083>
======================================================================
Reported By: vedran
Assigned To:
======================================================================

Project:                    ALSA - driver
Issue ID:                   1083
Category:                   PCI - intel8x0
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Distribution:               Debian sid
Kernel Version:             2.6.10-ac12
======================================================================
Date Submitted:             04-29-2005 15:33 CEST
Last Modified:              06-19-2005 16:07 CEST

======================================================================
Summary: NVIDIA CK8 ALC655 SPDIF passthrough
Description:
We're using a motherboard with nVidia nforce2IGP chipset, and the sound device on this board is NVidia CK8, Realtek ALC655 rev 0. The motherboard is MSI K7N2GM2, and SPDIF passthrough works fine on Windows XP with stock realtek drivers.

On Linux, I'm using the latest ALSA CVS (29.04.2005.) on a 2.6.10-ac12 kernel.

I've been able to make a 2 channel pre-decoded SPDIF output work by using the hw:0,2 device. If I use the default device, there is no sound on SPDIF, regardless of the SPDIF related controls in mixer. The controls in the mixer are:

However, I'm having trouble with AC3 passthrough, I'm using ac3dec -C from alsa-tools CVS, and I get no sound.

I'm attaching the archive with the output of iecset and /proc/asound/card0/codec97#0/* files during the ac3dec run, and when idle.

Maybe the fact that decoded SPDIF output is not working until I pass it through the hw:0,2 has something to do with this, how can I make ac3dec -C use hw:0,2?
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
has duplicate 0001094 nforce4 - optical spdif out not working
======================================================================

----------------------------------------------------------------------
Human - 06-10-05 18:07
----------------------------------------------------------------------
Thanks very much for responding, Tiwai. I accept that S/PDIF with nForce is only partially covered, but if the latest driver worked as well as the one from R5A12, it would benefit a lot of people.

I need to amend the version of ALSA I said was used in R5A12. It looks like the utilities are from 1.0.6, but I took a close look at the intel8x0.c kernel module - it's actually CVS version 1.160 with 7 lines of patches applied. (If you want to see the diffs, please specify the diff parameters you prefer so that I format them correctly.) In order to provide you with the details on where exactly the regression happens, I was going to try building different versions of the intel8x0.c kernel module from 1.160 up and seeing if they made S/PDIF stop working.

Technically, I didn't downgrade anything in R5A12, since R5A12 uses an older version of ALSA. By contrast, R5A16 uses (I think) ALSA 1.0.8.

You ask about the version of alsa-lib. KnoppMyth R5A12 uses Debian, and the distro's maintainer installed the non-driver parts of ALSA as binaries via apt-get. Here's the result of a query:

ii  alsa-base      1.0.6a-11      ALSA driver configuration files
ii  alsa-headers   1.0.6a-11      transitional package that can be safely
remo
rc  alsa-modules-2 1.0.5a-1+10.00 Advanced Linux Sound Architecture
(drivers)
ii  alsa-source    1.0.6a-11      ALSA driver sources
ii  alsa-utils     1.0.6-4        ALSA utilities

I wanted to point out that there are additional steps in my previous list on getting digital audio working. I had automated these steps and forgotten about them:
3.5) Go here http://www.mythtv.info/moin.cgi/DigitalSoundHowTo and copy the text under "The (I hope it's the definitive) .asoundrc for nForce2 and nForce4" into /etc/asound.conf
3.6) Edit /etc/modprobe.d/alsa-base to add this line:
options snd-pcm-oss adsp_map=2

I'll try to gather more data points for you. I'll have to set up a separate installation of R5A16, which uses newer versions of everything, and try more combinations of things as well as getting you that data during AC3 playback.

----------------------------------------------------------------------
gilesjuk - 06-19-05 16:07
----------------------------------------------------------------------
I was playing AVI files with mplayer and suddenly I got sound. Mplayer is set to use SDL on my system. So there must be a certain combination of factors that work.

The audio in the AVI was mp3, Mplayer says this:

-------
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
[AO SDL] Samplerate: 48000Hz Channels: Stereo Format Signed 16-bit (Little-Endian)
-------

So maybe 48Khz works?

Issue History
Date Modified Username Field Change
======================================================================
04-29-05 15:33 vedran New Issue
04-29-05 15:33 vedran File Added: spdif_passthrough.tar.gz

04-29-05 15:33 vedran         Distribution              => Debian sid      
04-29-05 15:33 vedran         Kernel Version            => 2.6.10-ac12     
05-30-05 13:21 vedran         Note Added: 0004809                          
06-01-05 16:53 tiwai          Note Added: 0004862                          
06-01-05 16:54 tiwai          Relationship added       has duplicate 0001094
06-01-05 19:19 eklarson       Issue Monitored: eklarson                    
06-03-05 00:31 Human          Note Added: 0004880                          
06-03-05 00:32 Human          Issue Monitored: Human                       
06-06-05 23:30 Human          Note Added: 0004910                          
06-08-05 15:01 tiwai          Note Added: 0004928                          
06-10-05 18:07 Human          Note Added: 0004984                          
06-19-05 16:07 gilesjuk       Note Added: 0005090                          

======================================================================

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click