No audio over HDMI with Nvidia GT220 and XBMC (but alsa seems ok)
#1
Hi all,

first post here and I really hope that solving this will help others as well.

I'm running Ubuntu server 10.04 64bit, I followed these guides in order to set up the system and to have my Nvidia GT220 working:
http://wiki.xbmc.org/?title=XBMCbuntu (minimal ubuntu with no gui)
http://wiki.xbmc.org/index.php?title=HOW...,_or_GT240 (HDMI and my video card)

Ubuntu version 10.04 64bit
Alsa version: 1.0.23
Nvidia drivers version: 256.35
XBMC: 1:9.11-lucid2

After many many tests, a reinstall, and endless searches here and elsewhere I finally managed to get to the following point:

aplay -l gives this:
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

aplay -D plughw:0,3 anywavfile.wav
plays just fine (from ssh or via normal shell once I exit XBMC)

System starts and loads automatically XBMC, I get the audio settings set to
Audio output: Digital
- Dolby digital capable receiver : no
- DTS capable receiver: no
Audio output device: default
Passthrough output device: iec958

BUT NO AUDIO at all.

Weirder thing is: sometimes, but just sometimes, it worked - not only I changed so many options, alsa-base.conf, sound.conf, asound.conf etc. that I got lost, but I'm just sure that at least once I just had it all working, I rebooted and then it didn't work anymore, even with NOTHING changed.

My asound.conf:
Code:
pcm.nvidia_hdmi {
  type plug
  slave {
    pcm "hw:0,3"
  }
}
pcm.!default hdmi:NVidia
pcm:iec958 hdmi:NVidia
(tried also with only the last two lines, doesn't work)

My sound.conf
Code:
options snd-hda-intel enable_msi=0 probe_mask=0xfff2

My alsa-base.conf
Code:
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7

# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioc$
#
# Workaround at bug #499695 (reverted in Ubuntu see LP #319505)
install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist$
install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-black$
install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist$
#
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-b$
# Cause optional modules to be loaded above sound card driver modules
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-b$
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-b$

# Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist$
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
options snd-usb-caiaq index=-2
# Ubuntu #62691, enable MPU for snd-cmipci
options snd-cmipci mpu_port=0x330 fm_port=0x388
# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2

It looks like that for some reason I really am not skilled enough to understand the hardware works alright but NOT in XBMC.

That's it, I really hope someone has some wisdom to share!
Reply
#2
In XBMC Settings, instead of using:
- Audio output: Digital
- Dolby digital capable receiver : no
- DTS capable receiver: no
- Audio output device: default
- Passthrough output device: iec958

Try:
- Audio output: Digital
- Dolby digital capable receiver : no
- DTS capable receiver: no
- Audio output device: plughw:0,3
- Passthrough output device: plughw:0,3
Reply
#3
Well... long story short, I think you just solved my problem and I don't know how to thank you enough!

I have no skin sounds anymore, though... but it's something I can live without.

Specifying the card and device did the trick.

Thanks again!
Reply

Logout Mark Read Team Forum Stats Members Help
No audio over HDMI with Nvidia GT220 and XBMC (but alsa seems ok)0