HDMI audio working in unity, not in XMBC
#1
Music 
Relevant hardware: AMD A4-5300 (so the videochip is Radeon HD7480D)
Installed: ubuntu 13.10, XBMC (12.3 Git:9ed3e58)

I switched from sp/dif to HDMI sound (or at least tried), but I don't get it to work.
I set the output to HDMI, and clicked around the passtru (?) settings, but never any sound Sad

When I boot into unity I can get it working, by choosing the output in the normal settings and setting it to HDMI.

This is what I did in unity:
I checked out
Code:
aplay -l

and tested the sound with
Code:
speaker-test -c 2 -r 48000 -D hdmi:0
then looked at the sinks witth
Code:
aplay -L
to finally set the default with
Code:
pacmd set-default-sink 1
This all worked, and produced sound at the right moments. jeeej.

But going into XBMC (i'm starting it as a session, not running it in unity) I can't get it to work at all.
First, there's this:
Code:
$ aplay -l
aplay: device_list:268: no soundcards found...

I think that the forums say that this comes from xmbc not playing nice with pulseaudio, and I shouldn't want that. Well, I'm not really attached to pusleaudio anyway, but I have no clue what to do now to actually get it to work. Tips?
Reply
#2
Debug Log
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#3
Sorry should've known better Wink

http://paste.ubuntu.com/6793557/
Reply
#4
Your hdmi device is not existent. It looks like your "session" starts xbmc prior to your hdmi device is up.

Delay lightdm, so that it waits for the hdmi device, the forum has something for it.

1: Btw. we don't fix any bugs anymore for frodo - if you want to help us, jump on the xbmc nightly track. This one has a pulseaudio sink.
2: You use oss radeon drivers in version 9.2.1 - there is absolutely no hw decoding support with those.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#5
@1: sounds like a plan, have to look in to how stable it is, but why not Smile
If I see this correctly, this means I will have pulse-audio, and therefore can do all the tricks I did in unity? that sounds like the best option Smile

(hmm, if I switch my current ppa for this one, will that sorta do it? (I like PPA's Smile )
https://launchpad.net/~team-xbmc/+archive/xbmc-nightly

@2: I did briefly switch to the propriety drivers, but it made the interface lag real bad, like 4 or 5 seconds after input the action started. Not sure if I can fix that, but I was planning to delay fixing that until I got the sound going Smile
Reply
#6
Try that:

Code:
sudo apt-add-repository ppa:wsnipex/mesa
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install libg3dvl-mesa vdpauinfo linux-firmware

and this:

Code:
mkdir ~/kernel
cd ~/kernel
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13-trusty/linux-headers-3.13.0-031300-generic_3.13.0-031300.201401192235_amd64.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13-trusty/linux-headers-3.13.0-031300_3.13.0-031300.201401192235_all.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13-trusty/linux-image-3.13.0-031300-generic_3.13.0-031300.201401192235_amd64.deb
sudo dpkg -i *3.13.0*deb

That should bring you kernel 3.13 in combination with vdpau OSS support. You can verify if it works with:

Code:
DISPLAY=:0 vdpauinfo
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#7
I'll check that out, not sure how happy I would be with getting one specific kernel, as I'll be the only one around able to update the machine then instead of just letting it all get by through apt and all. Hmmz. on the other hand, got to keep with the times anyway Smile

I'm trying to find the forum topic that talks about delaying lightdm, but not having any luck. If you have a quick link for me that'd be great, but I'll keep on looking obviously.

Thanks for the replys by the way, really kind.
Reply
#8
https://bugs.launchpad.net/ubuntu/+sourc...omments/23 <- add the stop udev trigger line

Concerning Kernel: you do not really have a choice. Amd drivers and oss vdpau acceleration are pretty new. No chance with Kernel 3.11 that Ubuntu is shipping, so mainline kernels is the way to go here, easy installable via dpkg.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#9
thanks for that link. I'll have a quick system check tomorrow, but I think I did it all as supposed to, but it didn't do much for me where I could see at least. But, as you have demonstrated, the new kernel might be the way to go anyway, so I'll probably put some effort in there, hoping to be all happy after that Wink

thanks again!
Reply
#10
New kernel alone is not enough.

Mesa + kernel + xbmc v13 nightly and in your case (the lightdm hack)
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply

Logout Mark Read Team Forum Stats Members Help
HDMI audio working in unity, not in XMBC0