No HDMI audio in XBMC
#1
Ok, to start off I do have working audio going through HDMI when I am not in xbmc.

speaker-test -c2 -D hw:0,7 and speaker-test -c2 -D plughw:0,7 both work and play noise through hdmi. Youtube, and VLC have audio also.

in xbmc I changed both the audio options to custom and tried hw:0,7 and plughw:0,7 in both of them and it just crashes xbmc.

Quote:02:42:35 T:140006848972544 ERROR: PulseAudio: Waited for the stream but it failed

I do not have ~/.asoundrc, or /etc/asound.conf

/etc/modprobe.d/sound.conf
Quote:[s3cur17y@htpc modprobe.d]$ cat sound.conf
#options snd-hda-intel enable_msi=0


aplay -l
Quote:[s3cur17y@htpc modprobe.d]$ 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
card 1: Device [PnP Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

aplay -L
Quote:[s3cur17y@htpc modprobe.d]$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
hdmi:CARD=NVidia,DEV=0
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
HDMI Audio Output
sysdefault:CARD=Device
PnP Audio Device, USB Audio
Default Audio Device
front:CARD=Device,DEV=0
PnP Audio Device, USB Audio
Front speakers
surround40:CARD=Device,DEV=0
PnP Audio Device, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Device,DEV=0
PnP Audio Device, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Device,DEV=0
PnP Audio Device, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Device,DEV=0
PnP Audio Device, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Device,DEV=0
PnP Audio Device, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Device,DEV=0
PnP Audio Device, USB Audio
IEC958 (S/PDIF) Digital Audio Output


[/code]
Reply
#2
set audio in xbmc to pulse or uninstall pulse if you don't need it
Reply
#3
Ok, I got audio now, but I have another issue. When I press stop xbmc crashes.


03:55:28 T:139796376201408 NOTICE: Using GL_TEXTURE_2D
03:55:28 T:139796376201408 NOTICE: GL: Using VDPAU render method
03:55:28 T:139796376201408 NOTICE: GL: NPOT texture support detected
03:55:28 T:139796376201408 NOTICE: GL: Using GL_ARB_pixel_buffer_object
03:55:33 T:139796376201408 NOTICE: CDVDPlayer::CloseFile()
03:55:33 T:139796376201408 NOTICE: DVDPlayer: waiting for threads to exit
03:55:33 T:139796192724736 NOTICE: CDVDPlayer::OnExit()
03:55:33 T:139796192724736 NOTICE: DVDPlayer: closing audio stream
03:55:33 T:139796192724736 NOTICE: Closing audio stream
03:55:33 T:139796192724736 NOTICE: Waiting for audio thread to exit
03:55:33 T:139795472836352 ERROR: AddPackets - failed to add leftover bytes to render
03:55:33 T:139795472836352 NOTICE: thread end: CDVDPlayerAudio::OnExit()
03:55:33 T:139796192724736 NOTICE: Closing audio device



The red line is the only thing that I can think of that is crashing xmbc. Any ideas?
Reply
#4
this doesn't tell much, a full debug log would be a good idea
Reply
#5
http://fpaste.org/CasY/
Reply
#6
still no debugging
Reply
#7
Here is what I get from xbmc.log with the hidden debugging enabled.

http://fpaste.org/taOT/
Reply

Logout Mark Read Team Forum Stats Members Help
No HDMI audio in XBMC0