PDA

View Full Version : SPDIF Not Working


FC4ris
1st October 2006, 05:52 AM
Hello all,

I was wondering if anyone could help me with my SPDIF digital sound. Its an onboard sound card here are some lines that may help:


[root@localhost ~]# cat /proc/asound/devices
2: : timer
3: : sequencer
4: [ 0- 2]: digital audio playback
5: [ 0- 1]: digital audio capture
6: [ 0- 0]: digital audio playback
7: [ 0- 0]: digital audio capture
8: [ 0] : control


[root@localhost ~]# gedit /etc/asound.conf
#Generated by system-config-soundcard, do not edit by hand
#SWCONF
#DEV 0
defaults.pcm.card 0
defaults.pcm.device 2
defaults.ctl.card 0


And I get this error:

aplay -D hw:0,2 /usr/share/sounds/warning.wav
Playing WAVE '/usr/share/sounds/warning.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
aplay: set_params:906: Channels count non available


Plus no sound. The headphone audio jack works just fine. The sound quality is pretty bad though. I'm just trying to see if the Optical SPDIF port is better or if I have to install another sound card.

Please anyone with any ideas help me out. All my hardware and OS info are in my sig.

FC4ris
3rd October 2006, 12:25 AM
bump. Any ideas, need more info? Help a guy out with no sound. :)

simon_bagola
14th March 2007, 07:44 PM

Hi!
the same thing here... my "aplay -l" result:

[root@localhost Desktop]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: CMI8738MC6 [C-Media PCI CMI8738-MC6], device 0: CMI8738-MC6 [C-Media PCI DAC/ADC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CMI8738MC6 [C-Media PCI CMI8738-MC6], device 1: CMI8738-MC6 [C-Media PCI 2nd DAC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CMI8738MC6 [C-Media PCI CMI8738-MC6], device 2: CMI8738-MC6 [C-Media PCI IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0

but if i try to
"mplayer -ao alsa:device=hw=0.2 MatchesBox.mp3"

i get:
MPlayer 1.0pre8-4.1.1 (C) 2000-2006 MPlayer Team
CPU: AMD Sempron(tm) Processor 3000+ (Family: 15, Model: 79, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1


93 audio & 211 video codecs
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not open config files /root/.lircrc and /etc/lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.
You will not be able to use your remote control.

Playing MatchesBox.mp3.
Audio file file format detected.
Clip info:
Title: MatchesBox.mp3
Artist: Holophonic Effects
Album:
Year:
Comment: ������ ���� ����
Genre: Unknown
================================================== ========================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
================================================== ========================
alsa-init: using device hw:0,2
alsa: 44100 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 56.8 (56.7) of 56.0 (56.0) 0.7%
alsa-uninit: pcm closed

Exiting... (End of file)


BUT, no sound comes out... what could be the reason????

FYI my ".asoundrc" file looks like:

pcm.!default {
type hw
card 0
device 2
}

simon_bagola
16th March 2007, 07:26 AM
Hi guys!

I managed to get a REAL 5.1 sound form a CMI8**8 card!

Do not know which act, but, i set it like follows:
- the above mentioned settings are OK
- in alsamixer i set:

master - full
3d control -unmute
pcm - unmute
synt - unmute
line-mute
cd - unmute
mic - mute
mic-boos - unmute
phone - unmute
iec958 5v - unmute
iec958 c - unmute
iec958 in monitor - unmute
iec958 in phase reverse - mute
iec958 in select - mute
iec958 in valid - mute
iec958 - loop - mute
iec958 output - unmute
pcspeaker - mute
aux - mute
four channel mode - unmute

THEN, i started "soundcard detection" from Fedora GUI

and set the digital output as default...

the sound is great!

hope this helps...