I know its an old thread but its spot on for my problem...
Asus HD2600pro graphics, AMD 64 4600+, 2GiB, Asus M3A32-mvp deluxe mainboard and ESI Juli@ soundcard. I plan to use the digital optial SPDIF output of the Juli@ card connected to my EAD DSP-1000 DAC.
The cards are listed by default as quoted:
Code:
htpc@htpc-xbmc:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Juli [ESI Juli@], device 0: ICE1724 [ICE1724]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Juli [ESI Juli@], device 1: IEC1724 IEC958 [IEC1724 IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
I went down the "less /proc/asound/modules" road and got:
Code:
0 snd_hda_intel
1 snd_ice1724
/proc/asound/modules (END)
I edited the alsa base entering "sudo gedit /etc/modprobe.d/alsa-base", filling in "options snd_hda_intel index=-2" under "# Prevent abnormal drivers from grabbing index 0"
Rebooted. Ran aplay -l again which produced:
Code:
htpc@htpc-xbmc:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Juli [ESI Juli@], device 0: ICE1724 [ICE1724]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Juli [ESI Juli@], device 1: IEC1724 IEC958 [IEC1724 IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
This means, at least, that my Juli@ now is device0. But no sound yet. I know for a fact that it is the "card 0, device
1" that gives sound. But now, when my soundcard is set as default, how can I make the digital optical output on that card default? (IEC1724 IEC958).
I guess I found the sollution! Finally! After three re-installs and countless hours of testing/googling/terrorizing forums/asking the white out of the eye of #xbmc-linux members...
I found it
here.
Just edited the code a bit to fit my hardware-problem.
I had to edit the .asoundrc and change default soundcard from what seems to be the usual (0,0) to 0,1 by inserting this into .asoundrc:
Code:
pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "hw:0,1"
}
}
and edit the output from XBMC from default/iec958 to default/default.
When testing after this I was almost in heaven hearing
terrible noise in my speakers, because then I knew that my DAC was fed with AC3 which it does not support :wink: (sollution was to remove support for AC3 and DD in XBMC output settings)
Last night I gave up. When I came home this night and the only thing I did was editing the output of XBMC I finally understand how frustrated one can be over something one does not understand (in this case, Linux)
Sweeet!