Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to get SPDIF working on Nforce4 (A8N-SLI)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
gralves
Guru
Guru


Joined: 20 May 2003
Posts: 389
Location: Sao Paulo, Brazil

PostPosted: Sun Sep 04, 2005 8:51 am    Post subject: How to get SPDIF working on Nforce4 (A8N-SLI) Reply with quote

I lost a lot of time to get this working so...

First - Stop the alsa service
/etc/init.d/alsasound stop

Second - Edit /etc/asound.state
This file is where alsasound store your mixer settings.
Find a line that says : 'IEC958 Playback Switch'
Near it you will find a line saying value:false. Change it to
value:true

Now find this line: 'IEC958 Playback AC97-SPSA'
and change value to 0.

Third - restart alsa
/etc/init.d/alsasound start

Fourth - enjoy spdif out sound


Last edited by gralves on Mon Sep 12, 2005 6:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
hefa
n00b
n00b


Joined: 01 Apr 2003
Posts: 9
Location: Helsinki/Finland

PostPosted: Mon Sep 12, 2005 4:20 pm    Post subject: Reply with quote

Thank You!
_________________
"You can't outrun Death forever. But you can make the bastard work for it..."
Back to top
View user's profile Send private message
Rapt0r
n00b
n00b


Joined: 03 Feb 2004
Posts: 27
Location: Aachen, Germany

PostPosted: Mon Sep 19, 2005 1:49 pm    Post subject: Reply with quote

Thank you, I searched a lot until I found this thread. PCM over SPDIF is finally working!
Back to top
View user's profile Send private message
Wishmaster
Tux's lil' helper
Tux's lil' helper


Joined: 11 May 2003
Posts: 117
Location: Essen/Germany

PostPosted: Mon Oct 10, 2005 4:09 pm    Post subject: Reply with quote

I'm so lucky about your post! It works fine for me too!

Thank you a lot!
_________________
www.bacula.org - The Network Backup Solution
Back to top
View user's profile Send private message
timcp
n00b
n00b


Joined: 25 May 2004
Posts: 8

PostPosted: Tue Oct 11, 2005 7:32 pm    Post subject: Reply with quote

Yay! You saved me from leaving Linux!!!! Thank you sooooooo much!

[edit]
BTW: I just deleted asound.state on step 2. I didn't even have to change anything afterwards, spdif just worked.
Back to top
View user's profile Send private message
Lassizci
n00b
n00b


Joined: 15 Mar 2004
Posts: 22

PostPosted: Sun Oct 16, 2005 7:38 pm    Post subject: Reply with quote

I just can't get any sound out from the plug on Linux. Which kernel are you using? And do you use alsa drivers from kernel (built-in/module) or sepatare ones from portage (or CVS)?
Back to top
View user's profile Send private message
gralves
Guru
Guru


Joined: 20 May 2003
Posts: 389
Location: Sao Paulo, Brazil

PostPosted: Sun Oct 16, 2005 10:23 pm    Post subject: Reply with quote

Lassizci wrote:
I just can't get any sound out from the plug on Linux. Which kernel are you using? And do you use alsa drivers from kernel (built-in/module) or sepatare ones from portage (or CVS)?


I'm using gentoo-sources-2.6.13-r3 w/ alsa drivers built into the kernel, but I've tested most kernels since 2.6.10 and they all worked. Try reading the gentoo alsa guide. Make sure you get sound working on the normal output (not SPDIF), them try this guide to get spdif sound working.
Back to top
View user's profile Send private message
Lassizci
n00b
n00b


Joined: 15 Mar 2004
Posts: 22

PostPosted: Mon Oct 17, 2005 5:57 am    Post subject: Reply with quote

I have tried several kernels too and it doesn't seem to make any difference. I also tried to compile drivers built-in and as a module. Even separate alsa drivers didn't work.

Then I unmasked alsa-driver-1.0.10 from package.mask and I got something. I can now hear the sound but theres perry much backgroundnoise. Everything else works but the spdif (though I haven't tried the coaxial). I had Abit NF7-S earlier and I had no problem with that. I think this one isn't offically supported yet?
Back to top
View user's profile Send private message
gralves
Guru
Guru


Joined: 20 May 2003
Posts: 389
Location: Sao Paulo, Brazil

PostPosted: Mon Oct 17, 2005 7:22 am    Post subject: Reply with quote

Lassizci wrote:
I have tried several kernels too and it doesn't seem to make any difference. I also tried to compile drivers built-in and as a module. Even separate alsa drivers didn't work.

Then I unmasked alsa-driver-1.0.10 from package.mask and I got something. I can now hear the sound but theres perry much backgroundnoise. Everything else works but the spdif (though I haven't tried the coaxial). I had Abit NF7-S earlier and I had no problem with that. I think this one isn't offically supported yet?


As long as I know all Nforce chips uses the same driver (the intel one).

Does your sound works ok on other operating systems? Have you tried booting from an ubunto live cd?

I never tried the optical spdif but I got the coaxial working doing exactly what this guide says.
Back to top
View user's profile Send private message
Lassizci
n00b
n00b


Joined: 15 Mar 2004
Posts: 22

PostPosted: Mon Oct 17, 2005 7:51 am    Post subject: Reply with quote

Spdif works on winXP or at least I think so. Well not all the channels actually, but that might be driver issue. nForces _should_ use the same chip but that doesn't guarantee they really are exactly identical...

I gotta try that ubuntu liveCD too. Of course there's always one possibility that the mobo is broken (wouldn't be the first time) but strange that I get something out.
Back to top
View user's profile Send private message
Lassizci
n00b
n00b


Joined: 15 Mar 2004
Posts: 22

PostPosted: Wed Oct 19, 2005 9:59 am    Post subject: Reply with quote

Oh, well. Ubuntu (amd64) liveCD didn't work ;) It halts when it is supposed to start X or something. Can't even get any debug info.

I'm having same noise on winXP and I can't hear rear channels at all. Also analog sound is scratchy so I think it's broken somehow..
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Sun Dec 04, 2005 9:53 pm    Post subject: Reply with quote

I have since found that in kmix the "IEC Playback AC97" mixer controll needs to be on zero (bottom) setting othewise digital output is turned off.
Back to top
View user's profile Send private message
ComputerAddict
n00b
n00b


Joined: 06 Dec 2005
Posts: 3

PostPosted: Tue Dec 06, 2005 5:35 pm    Post subject: Your not the only person you saved Reply with quote

timcp wrote:
Yay! You saved me from leaving Linux!!!! Thank you sooooooo much!


I was starting to worry about being able to stream stuff to my Home Theater.
One thing i had to do was in the Gnome Volume Control in the Options change the IEC958 to PCM because mine wasn't set that way by default. if you dont have that option you can add it in the Preferences
Back to top
View user's profile Send private message
Jovana
n00b
n00b


Joined: 23 Nov 2005
Posts: 53

PostPosted: Sat Apr 01, 2006 6:52 pm    Post subject: Reply with quote

Yes I have sound trough spdif!!! :D
Back to top
View user's profile Send private message
Ycros
n00b
n00b


Joined: 17 Mar 2003
Posts: 6
Location: Sydney, Australia

PostPosted: Tue Apr 04, 2006 9:43 am    Post subject: Reply with quote

I have a Gigabyte GA-K8N Pro-SLI nForce4 motherboard, and I can only partially get the IEC958 working. Interestingly, it kicks in if I set the IEC958 setting in AlsaMixer to "off" - none of the other settings have any effect at all.

The problem is that whenever the sound stops (ie. song change in XMMS) I have to toggle the setting on, then off again to get it working. This is kind of annoying... I've fiddled with almost everything but nothing seems to make it stay on.

I'm going to see if I can get arts or esd or somesuch to keep the device open, and then just pipe all my sound through those. :)
Back to top
View user's profile Send private message
Ycros
n00b
n00b


Joined: 17 Mar 2003
Posts: 6
Location: Sydney, Australia

PostPosted: Tue Apr 04, 2006 12:34 pm    Post subject: Reply with quote

In the meantime I've come up with a dodgy solution for my music - I emerged xmms-song-change, and I set it up to run
Code:
amixer set IEC958 off
on the start of each song. (:
Back to top
View user's profile Send private message
Ycros
n00b
n00b


Joined: 17 Mar 2003
Posts: 6
Location: Sydney, Australia

PostPosted: Sun May 14, 2006 7:35 am    Post subject: Reply with quote

Okay, so after reading the ALSA documentation, I've fixed the problem with a dodgy solution - configured ALSA to mute that control whenever the default device is opened for playback (and direct the default device to hw:0,2 at the same time).

This is what I put in my ~/.asoundrc file:

Code:
pcm.!default {
    type hooks
    slave.pcm "plughw:0,2"
    hooks.0 {
        type ctl_elems
        hook_args [
            {
                name "IEC958 Playback Switch"
                lock true
                value false
            }
        ]
    }
}
Back to top
View user's profile Send private message
Ycros
n00b
n00b


Joined: 17 Mar 2003
Posts: 6
Location: Sydney, Australia

PostPosted: Sat Aug 19, 2006 1:45 am    Post subject: Reply with quote

And now it's stopped working completly. Must have upgraded something that broke it. :-/
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Aug 26, 2006 1:15 pm    Post subject: Reply with quote

Quote:
The problem is that whenever the sound stops (ie. song change in XMMS) I have to toggle the setting on, then off again to get it working.


So what is changing what and at what stage? Is it when music stops?

sounds like a bug in xmms to me. Can you reproduce it with another player?

8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Ycros
n00b
n00b


Joined: 17 Mar 2003
Posts: 6
Location: Sydney, Australia

PostPosted: Sun Aug 27, 2006 11:50 pm    Post subject: Reply with quote

IEC958 is set to "on" whenever the sound device is opened - application is irrelevant, this doesn't just happen to XMMS, setting it to off makes it work again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum