Kodi Community Forum
How to Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: How to Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs (/showthread.php?tid=116996)



RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - wsnipex - 2012-12-27

@illiac4: try get-edid


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - illiac4 - 2012-12-29

Ok i have got the hdmi handshake working but one problem excist.
If the tv is on during htps bootup the sound works. If the tv is off during bootup there is no sound. Also if i turn off and on the tv, the sound is also lost.
Just like in this thread:
http://askubuntu.com/questions/133575/hdmi-audio-stops-after-tv-turned-off

Is there a workround for this because it is hardly usable and very annoying. And waf factor iz zero Sad

Ps
I have rad that this bug is present in some drivers. Is there. Possibility to rollback or. Do anything else?


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - fritsch - 2012-12-29

@illiac4:
Yes - there is. just look one page back: http://forum.xbmc.org/showthread.php?tid=116996&pid=1276283#pid1276283


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - illiac4 - 2012-12-29

Thank you. Will try and report back. Tnx for help.


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - illiac4 - 2012-12-29

Hmm it does not work.


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - fritsch - 2012-12-29

Execute the commands manually, check which output you are acutally using - it works - i am sure.

And btw. "it does not work" - does not help anybody :-)

You can visit #xbmc-xvba and get additional help


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - illiac4 - 2012-12-29

Sorry for stupid answer i was in hurry and had to test it really fast.

So to manually run the command:
xrandr -display :0 --output DFP1 --off; xrandr -display :0 --output DFP1 --auto

after the sound has been lost it returns the sound back so the command is working..

The output of command (dmesg | grep -i hdmi | tail -n 10) returns:
If the sound is working:
[ 17.578400] input: HD-Audio Generic HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1c.3/0000:04:00.1/sound/card1/input7

If the sound is not working:
[ 17.578400] input: HD-Audio Generic HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1c.3/0000:04:00.1/sound/card1/input7

So the same and i think this coud be the cause not to detect the fail of audio.







RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - fritsch - 2012-12-30

@illiac4:
You should get something like this:
[51650.412059] HDMI status: Codec=0 Pin=3 Presence_Detect=1 ELD_Valid=1
[51650.712086] HDMI status: Codec=0 Pin=3 Presence_Detect=1 ELD_Valid=1
[51664.094871] HDMI hot plug event: Codec=0 Pin=3 Presence_Detect=1 ELD_Valid=1
[51664.094924] HDMI status: Codec=0 Pin=3 Presence_Detect=0 ELD_Valid=0
[51664.094939] HDMI hot plug event: Codec=0 Pin=3 Presence_Detect=0 ELD_Valid=0
[51664.094963] HDMI status: Codec=0 Pin=3 Presence_Detect=0 ELD_Valid=0
[51664.125068] HDMI hot plug event: Codec=0 Pin=3 Presence_Detect=1 ELD_Valid=0
[51664.125096] HDMI status: Codec=0 Pin=3 Presence_Detect=1 ELD_Valid=1
[51664.126489] HDMI hot plug event: Codec=0 Pin=3 Presence_Detect=0 ELD_Valid=1

You are using hdmi, right? I don't know about DisplayPort.


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - ElPolo - 2012-12-30

Hello, i have exactly same problem, and I can confirm the output of this command...but on openelec Wink

Quote:root ~ # dmesg | grep -i hdmi | tail -n 10
[ 15.192685] input: HD-Audio Generic HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:0c.0/0000:02:00.1/sound/card0/input4



RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - illiac4 - 2012-12-30

I have been investigating a little this problem and it looks like the problem is caused by using static dfp1.edid (edid dump) under etc/ati. If there is a normal handshake the sound is never lost and also the line (xrandr -display :0 --output DFP1 --off; xrandr -display :0 --output DFP1 --auto) is not needed.
But i would prefer the static line to edid dump if it would work. On nvidia i did not see those problems. I have also experiment with many edid dumps and on all the behaviour with loosing the sound was the same.
And command (dmesg | grep -i hdmi | tail -n 10) has always report the same info no matter if the tv was on or off and the sound was lost.



RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - fritsch - 2012-12-30

So without the EDID overwriting you get the kernel messages?




RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - illiac4 - 2012-12-30

Without edid i do not even loose the sound.But i do not like this because when not using static edid the skin is not streched right so i have to use 768p.


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - fritsch - 2012-12-30

Hehe - you seem lucky. So the problem is, that if you turn off the TV, your Receiver delivers wrong modes?
So - if you boot up without the TV connected it causes a Problem?


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - Artax - 2012-12-30

(2012-11-12, 16:47)Artax Wrote: Hi all,

today I discovered that my system had problems with playback of FLAC audio. I experience a sort of "frame drop", but with audio.

May the problem be related to the HD audio issue of AMD drivers?

First of all my configuration:
HTPC with:
Ubuntu 12.04 up to date as 12/11/2012
AMD Catalyst 12.6.
XBMC Frodo via wsnipex's PPA, up to date as 12/11/2012.
XBMC autologin. XBMC remote on my Android phone,
The HTPC is connected via HDMI to a Denon AVR-1611. Denon is connected to the TV via HDMI, and to a simple 2.0 speaker configuration.
The Denon does not decode flac format.

Doing some investigations, I noticed that my Denon detect the sample rate of flac songs as 48 kHz, but they are 96 kHz. Then, I searched in the log file and I found this:
Code:
15:22:20 T:140708098033536  NOTICE: Enumerated ALSA devices:
15:22:20 T:140708098033536  NOTICE:     Device 1
15:22:20 T:140708098033536  NOTICE:         m_deviceName      : hdmi:CARD=Generic,DEV=0
15:22:20 T:140708098033536  NOTICE:         m_displayName     : HD-Audio Generic
15:22:20 T:140708098033536  NOTICE:         m_displayNameExtra: HDMI
15:22:20 T:140708098033536  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
15:22:20 T:140708098033536  NOTICE:         m_channels        : FL,FR
15:22:20 T:140708098033536  NOTICE:         m_sampleRates     : 32000,44100,48000
15:22:20 T:140708098033536  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE
15:22:20 T:140708098033536  NOTICE:     Device 2
15:22:20 T:140708098033536  NOTICE:         m_deviceName      : @:CARD=SB,DEV=0
15:22:20 T:140708098033536  NOTICE:         m_displayName     : HDA ATI SB
15:22:20 T:140708098033536  NOTICE:         m_displayNameExtra: ALC892 Analog
15:22:20 T:140708098033536  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
15:22:20 T:140708098033536  NOTICE:         m_channels        : FL,FR,BL,BR,FC,LFE
15:22:20 T:140708098033536  NOTICE:         m_sampleRates     : 44100,48000,96000,192000
15:22:20 T:140708098033536  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
15:22:20 T:140708098033536  NOTICE:     Device 3
15:22:20 T:140708098033536  NOTICE:         m_deviceName      : iec958:CARD=SB,DEV=0
15:22:20 T:140708098033536  NOTICE:         m_displayName     : HDA ATI SB
15:22:20 T:140708098033536  NOTICE:         m_displayNameExtra: ALC892 Digital S/PDIF
15:22:20 T:140708098033536  NOTICE:         m_deviceType      : AE_DEVTYPE_IEC958
15:22:20 T:140708098033536  NOTICE:         m_channels        : FL,FR
15:22:20 T:140708098033536  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,192000
15:22:20 T:140708098033536  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE

So the HDMI device has a maximum sample rate of 48000.

Is it normal or is it related to the driver issue?

The flac issue is not present anymore. In the meantime the package xbmc was upgraded several time, so I don't know how the problem was solved. Any idea?


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - fritsch - 2012-12-30

Concerning your original question:

Quote:So the HDMI device has a maximum sample rate of 48000.

Is it normal or is it related to the driver issue?

This is a fglrx driver issue and not normal. The best Audio with an ATI card, you get out of the optical spdif:

Quote:m_channels : FL,FR
m_sampleRates : 32000,44100,48000,88200,96000,192000
m_dataFormats : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE

And as there is no bitstream Audio for AMD on linux, you don't loose anything, but win some sampleRates.