LinHES Forums
http://forum.linhes.org/

nforce SPDIF audio out on LinHES
http://forum.linhes.org/viewtopic.php?f=25&t=21232
Page 1 of 1

Author:  brianwc [ Sat Jul 17, 2010 5:16 pm ]
Post subject:  nforce SPDIF audio out on LinHES

Hi,

I've been on Knoppmyth R5.5 for a while and the OS hard drive started acting up so I took the opportunity to begin anew with a fresh install of LinHES 6.0 on a new HD. (I vaguely understand that the database structure is the same and so maybe I can transfer over all my stuff. Then I'll upgrade to 6.03.)

On KM I had digital audio out via SPDIF passthrough working fine with ALSA. I wouldn't say it was easy to get it set up right, but once it was, it worked. This is an ASUS A8N-SLI mobo w/ nforce4.

Now on LinHES 6.0 it feels like I've tried everything to get SPDIF passthrough to work. I get red light coming out of the wire, but no sound. I've now tried both ALSA and OSS, though I'm very unfamiliar with OSS. Back when I was trying to get ALSA to work again I made sure the iec958 was unmuted in alsamixer and tried every asound.conf under the sun as well as every combination of /dev/adsp, ALSA:default, ALSA:spdif, ALSA:digital, you-name-it in the Myth service menu with no luck.

I got so tired of trying to make ALSA work that I switched to OSS and it recognizes /dev/dsp0 analog and /dev/dsp1 digital but only the analog produces any sound. The digital option again gives me red light out of the wire but no sound.

I haven't changed anything else about my setup that I can think of that could make what used to work not work now. Are there known SPDIF passthrough problems on 6.0 or did others have this working when they used 6.0? Anyone got an nforce4 set of configs they can provide? Thanks for any help or advice.

Edited to add ossinfo:
Code:
# ossinfo -v3
Version info: OSS 4.1 (b 1051/200902180218) (0x00040100) GPL
Platform: Linux/i686 2.6.28-LinHES #1 SMP PREEMPT Mon Aug 17 05:38:57 UTC 2009 (phoenix)

Number of audio devices:   2
Number of audio engines:   7
Number of mixer devices:   1


Device objects
 0: osscore0 OSS core services
 1: oss_ich0 Nvidia nForce4 interrupts=740867 (740871)
 2: oss_usb0 USB audio core services


Mixer devices
 0: ICH AC97 Mixer (ALC850) (Mixer 0 of device object 1)
    Device file /dev/oss/oss_ich0/mix0, Legacy device /dev/mixer0
    Priority: 10
    Caps:
    Device handle: PCI812a1043-0000:00:04.0-mx01
    Device priority: 10


Audio devices
Nvidia nForce4                    /dev/oss/oss_ich0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 0/Nvidia nForce4
                     Busy (IN/OUT) label 'VMIX'
      Engine      2: 1/Nvidia nForce4 (vmix)
                     Busy (OUT) by PID 5191 / mythfrontend label 'mythfrontend'
      Engine      3: 2/Nvidia nForce4 (vmix)
                     Available for use
      Engine      4: 3/Nvidia nForce4 (vmix)
                     Available for use
      Engine      5: 4/Nvidia nForce4 (vmix)
                     Available for use
      Engine      6: 5/Nvidia nForce4
                     Available for use
    Input formats (0x00000410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Output formats (0x00000410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI812a1043-0000:00:04.0-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated

Nvidia nForce4 S/PDIF out         /dev/oss/oss_ich0/spdout  (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 6/Nvidia nForce4 S/PDIF out
                     Available for use
    Input formats (0x00000410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Output formats (0x00000410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI812a1043-0000:00:04.0-au02
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated

Author:  joelsplace [ Mon Dec 27, 2010 11:50 am ]
Post subject:  Did you fix it?

Any luck? I'm having the same symptoms with an nForce2 MB and 6.03.

Author:  christ [ Thu Dec 30, 2010 12:45 pm ]
Post subject: 

Have you looked at: http://www.mythtv.org/wiki/Digital_Audio_Tutorial

I have no issues using nforce chipset. But I did have to do a custom asound.conf

Author:  joelsplace [ Thu Dec 30, 2010 1:02 pm ]
Post subject:  Resolved (mostly)

Thanks for the link I hadn't seen that.
I'm runing LINHES 6.03 and found a reference to this script: twk_audio.pl
I ran it, rebooted and my optical out is mostly working. I say mostly because sometimes when I start watching a recording the audio cuts in and out until I stop and restart the show I'm watching.

Author:  brianwc [ Fri Dec 31, 2010 7:41 pm ]
Post subject:  Resolved (for me)

Hi,

I ended up upgrading the motherboard, cpu, and RAM and went for an installation from a 6.3 disc.

It defaults to ALSA, so I went into the LinHES settings and switched to OSS. However, "loading the OSS driver" hangs forever and if you go to another console (CTRL-ALT-F2) and investigate the logs, I found that it was constantly repeating something about OSS already being installed, like so:

Code:
installing oss
oss 4.1_1051-7
oss is already present
ok: run: oss: (pid 7173) 6s
No /dev/mixer device available in your system.
Perhaps Open Sound System is not installed or running.
1
fail: alsa-utils: unable to change to service directory: file does not exist
FATAL: Module snd_hda_intel not found.
rm: cannot remove `/tmp/.alsatest': No such file or directory
installing oss
oss 4.1_1051-7
oss is already present
ok: run: oss: (pid 8913) 0s


So, I just killed the frontend and rebooted.

Then I think I just had to change the Audio setting within MythTV setttings to something other than ALSA and I was in business (again) with audio out via SPDIF!

The way that OSS driver load hangs has been reported by others, so perhaps a bug should be filed.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/