Kodi Community Forum

Full Version: HDMI - Sound ok with some files, silence with others.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

I am running XBMC 11 (stable) on Arch linux. I am trying to get sound to work reliably through HDMI on an NVidia GT 520 by Zotac.

Here is the result of aplay -L:

Code:
[root@bigscreen ~]# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=NVidia
    HDA NVidia, AD198x Analog
    Default Audio Device
sysdefault:CARD=NVidia
    HDA NVidia, AD198x Analog
    Default Audio Device
front:CARD=NVidia,DEV=0
    HDA NVidia, AD198x Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, AD198x Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, AD198x Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, AD198x Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, AD198x Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, AD198x Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
    HDA NVidia, AD198x Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia_1,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia_1,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output

and aplay -l:

Code:
[root@bigscreen ~]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: AD198x Analog [AD198x Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: AD198x Digital [AD198x Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 2: AD198x Headphone [AD198x Headphone]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia_1 [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia_1 [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Currently I have "Audio Playback" and "Audio Passthrough" both set to hdmi:CARD=NVidia_1,DEV=1 (I have also tried plughw:1,7 with the same results... actually plughw intruduces a VERY loud and annoying pop in the audio when starting a file for playback) and this works for certain files. For example a mkv with Dolby Digital 5.1 or an AAC 2.0 will work fine, but an avi with mp3 audio will not. DTS 5.1 has audio but it is incredibly quiet. I need to crank my receiver almost to the maximum to hear it. Also I do not have navigation sounds. My receiver supports Dolby Digital and DTS (both are selected in settings). Currently I only use two speaks (left and right). Like I said this works on some files but not others.

Any ideas on what to try? I have run speaker-test -D hdmi:NVidia_1,DEV=1 -c 2 and that works fine, left and right audio work as expected.

Is there anything else left to try?

Thanks in advance,
Sam
Sorry, I forgot this: But I am running xbmc in standalone mode, and S/PDIF 0 and 1 for Card 1 (the graphics card with hdmi) are not muted.