Kodi Community Forum

Full Version: nvidia HDMI ion2 audo trouble
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Please help. HDMI audo via xbmc works great for movies, and music. I passthru direct to my yamaha amp. Even truehd works. Somehow, and now I forget how, I got netflix audo ( and other firefox audio ) working launched via advanced launcher. This was great, but it suddenly stopped working, and I just cannot figgure it out. I have tried everything I can think of or read, and nothing seems to work.

Here is my setup:

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0


and aplay -L

null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
sysdefault:CARD=Intel
HDA Intel, ALC662 rev1 Analog
Default Audio Device
front:CARD=Intel,DEV=0
HDA Intel, ALC662 rev1 Analog
Front speakers
surround40:CARD=Intel,DEV=0
HDA Intel, ALC662 rev1 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, ALC662 rev1 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, ALC662 rev1 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, ALC662 rev1 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, ALC662 rev1 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
HDA Intel, ALC662 rev1 Digital
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Intel,DEV=0
HDA Intel, ALC662 rev1 Analog
Direct sample mixing device
dmix:CARD=Intel,DEV=1
HDA Intel, ALC662 rev1 Digital
Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
HDA Intel, ALC662 rev1 Analog
Direct sample snooping device
dsnoop:CARD=Intel,DEV=1
HDA Intel, ALC662 rev1 Digital
Direct sample snooping device
hw:CARD=Intel,DEV=0
HDA Intel, ALC662 rev1 Analog
Direct hardware device without any conversions
hw:CARD=Intel,DEV=1
HDA Intel, ALC662 rev1 Digital
Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
HDA Intel, ALC662 rev1 Analog
Hardware device with all software conversions
plughw:CARD=Intel,DEV=1
HDA Intel, ALC662 rev1 Digital
Hardware device with all software conversions
hdmi:CARD=NVidia,DEV=0
HDA NVidia, HDMI 0
HDMI Audio Output
dmix:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct sample snooping device
hw:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Hardware device with all software conversions

Previously I had the following file:

more /etc/asound.conf
pcm.!defaut hdmi:NVidia
pcm:iec958 hdmi:NVidia


For grins I tried replacing it with:

pcm.!default {
type hw
card NVidia
device 3
}
ctl.!default {
type hw
card NVidia
device 3
}


but neither of these work anymore.

I just don't get it, how do I diagnose this. It is really frustrating, I want my netflix back...
amixer | pastebinit
and:
Debug Log
The log is not on an trust-site

take http://xbmclogs.com/ for pasting logfiles
Quote:15:58:30 T:3007674176 NOTICE: Device 5
15:58:30 T:3007674176 NOTICE: m_deviceName : hdmi:CARD=NVidia,DEV=0
15:58:30 T:3007674176 NOTICE: m_displayName : HDA NVidia
15:58:30 T:3007674176 NOTICE: m_displayNameExtra: MEI Panasonic-TV on HDMI
15:58:30 T:3007674176 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
15:58:30 T:3007674176 NOTICE: m_channels : FL,FR,LFE,FC,BL,BR,SL,SR
15:58:30 T:3007674176 NOTICE: m_sampleRates : 32000,44100,48000,88200,96000,176400,192000
15:58:30 T:3007674176 NOTICE: m_dataFormats : AE_FMT_LPCM,AE_FMT_AC3,AE_FMT_DTS,AE_FMT_EAC3,AE_FMT_TRUEHD,AE_FMT_DTSHD,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE

Looks okay, basically as it should. Check that nothing is muted.
Nothing is muted. Also once again xbmc works fine, it is other applications that do not have audio. Also the other funny thing is it worked fine previously, and I did nothing to muck with the audio config. The only thing I did do was apt-get upgrade/update..., but I am not even sure that is related.

Can anyone recommend something further to try? speaker-test runs fine but outputs nothing. Logging into xbmcbuntu yields no sound. I just don't get it. What should my next step be?
I fixed my problem, I thought I would write it up incase it helps anyone else. First off this is a Jetway NC98-525E-LF ion2 with nvidia hdmi chipset.

Code:
uname -a
Linux minitv 3.5.0-40-generic #62-Ubuntu SMP Thu Aug 22 00:57:36 UTC 2013 i686 i686 i686 GNU/Linux

And I upgraded to xbmc 12.3, but it did not fix my problem.

Previously somehow... I had it working with xbmc and firefox audio via advanced launcher with audio over the nvidia hdmi, then it suddenly stopped working. Previously, somehow I was using the nvidia audio and ignoring the intel audo device also present. When I originally posted, XBMC audio was working great, both passthu and gui audio, but no audio whatsoever through firefox, and speaker-test -D plughw 1,3 ( which worked before ) ran fine, but did not output any sound.

So, after getting no help I just started trying stuff. I figgured the problem was somehow related to having two different audio devices ( just a guess ), so I went into the bios trying to diable the intel device that I was not using anyway. There is only one audio setting in the bios I could find, and that was "HD audio" I set it to disabled, and rebooted. After that, I got a different 'aplay -l' list as follows:

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

Previously I was only showing 1 Nvidia HDMI device, now I have 4 ( and no Intel ). So now booting into xbmcbuntu desktop, I ran alsamixer and now there were 3 more spdif devices not previously found ( all muted ). So, unmuting those new devices, and I finally got some noise from speaker-test with:

Code:
speaker-test -D plughw 0,7

speaker-test -D plughw 0,3, 0,8, and 0,9 all work but output no audio...

Progress, I figgure for sure. Now I tried to edit /etc/asound.rc with the new card and device numbers, like so:

Code:
more /etc/asound.conf

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

ctl.!default {
    type hw
    card 0
         device 7
}

And rebooted, but that did nothing. I think I finally made it work by modifying ~/.asoundrc file like so:

Code:
pcm.dmixer {
   type dmix
   ipc_key 1024
   ipc_key_add_uid false
   ipc_perm 0660
   slave {
      pcm "hw:0,7"
      rate 48000
      channels 2
      format S32_LE
      period_time 0
      period_size 1024
      buffer_time 0
      buffer_size 16384
   }
}

pcm.!default {
   type plug
   slave.pcm "dmixer"
}

After the reboot, with XBMC running, speaker-test still fails, but netfix thru firefox works like a charm. I am not sure about the sugnificance of asound.conf or ~/asoundrc, or what in them is important, but something there did the trick. A reboot is necessary. Also I had to change the xbmc audio settings after the bios diable step to get xbmc working again... Hope this helps someone, I am happy ;-)
Thanks for this thread. It got my Nvidia sound over HDMI working so I could watch Netflix.