Back to the projects page
Site index page

Digital (S/PDIF) output on the NVIDIA CK804 / Realtek ALC658D device

This MOO chat log text shows my attempts at getting the S/PDIF / TOSLink optical digital output working, so that it outputs digital audio to the other sound device - which is a Creative Audigy2 ZS USB device. I have an ABit AN8 board with an Athlon64 3200+.

The MPlayer example was from the following page:
ALSA Intel8x0 page

The following text is from my MOO chat log, and has been edited to remove untidy bits. Stuff typed into the computer is shown in bold text.


"Got it! Whew!"
"Perfect-quality digital output, finally!"
"The sound quality is so good."
"I've got the CK804 optical output connected to the digital input of the Audigy 2 ZS."
mplayer -ao pcm "03_-_Sunday.mp3"
sox audiodump.wav -r 48000 audiodump48.wav
mplayer -ao alsa:device=hw=0.0.0 -ac hwdts,hwac3, audiodump48.wav

"You don't need any module parameters."
".. with snd-intel8x0, I mean - or anything. It's the mixer settings."
"Mixer settings for card 0,0: Card: Nvidia CK804 Chip: Realtek ALC658D"
"S/PDIF: On"
"S/PDIF Playback AC97-SPSA: 0"
"S/PDIF Playback Source: PCM"
"The MPlayer output has to be 48 kHz PCM, or nothing is output."
"plughw: doesn't work, either - it has to be -ao alsa:device=hw=0.0"
"You don't need the '-ac hwdts,hwac3,' parameter because the S/PDIF will just work, by default - but the file format has to be 48K PCM."
"You do need the '-ao alsa:device=hw=0.0'"
"Don't need the final 0."
"This is a total kludge."

mplayer -really-quiet -ao pcm:fast:file=/dev/stdout 03_-_Sunday.mp3 | \
sox -t raw -e signed -b 16 -c 2 -r 44100 - -t alsa hw:0,0 rate 48000
"I think I may be able to improve it a little."
sox "|mplayer -really-quiet -ao pcm:fast:file=/dev/stdout \
03_-_Sunday.mp3" -t raw -e signed -b 16 -c 2 -r 44100 - -t alsa hw:0,0 \
rate 48000
"Nuff."
"The main difference is that when used with Sox's 'pipe' facility, console input is ignored.. so you may as well add '-noconsolecontrols'."
sox "|mplayer -really-quiet -noconsolecontrols -ao pcm:fast:file=/dev/stdout \
03_-_Sunday.mp3" -t raw -e signed -b 16 -c 2 -r 44100 - -t alsa hw:0,0 \
rate 48000
"If I got another digital optical cable ('TOSLink' cable), I could connect the radio to the digital input of the CK804, and route the radio through the card - for perfect digital input... but still analogue output, because I do not have a digital input."
"(only ears)"
"I have switched off the central heating. It's 21:52 and I am going to have some lunch."
Back to the projects page
Site index page