Kodi Community Forum
Linux Radeon OSS with vdpau (howto) - 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: Linux Radeon OSS with vdpau (howto) (/showthread.php?tid=174854)



RE: Radeon OSS with vdpau (howto) - jaymax - 2014-01-22

I've been having trouble with audio on 3.13 kernel. Works fine on 3.12.
Just using 2 channel line out from the motherboard straight to TV. Made sure nothing (except front/rear mics) is muted in alsalmixer.

Here's my logs:
dmesg: http://paste.ubuntu.com/6799418/
xbmc.log: http://paste.ubuntu.com/6799419/
Xorg.0.log: http://paste.ubuntu.com/6799420/
vdpauinfo: http://paste.ubuntu.com/6799422/
mesa: http://paste.ubuntu.com/6799428/


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-01-22

there is no hdmi audio device coming up. Are you using the xbmc.conf the howto provides?


RE: Radeon OSS with vdpau (howto) - jaymax - 2014-01-22

(2014-01-22, 23:24)fritsch Wrote: there is no hdmi audio device coming up. Are you using the xbmc.conf the howto provides?

I had the old startxbmc.sh version. Just updated, rebooted, and same issue. Although, I'm not using hdmi audio, I'm using 3.5mm audio jack.


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-01-22

Quote:12:55:49 T:140262939977600 NOTICE: m_deviceName : @
12:55:49 T:140262939977600 NOTICE: m_displayName : Default (HD-Audio Generic ALC887-VD Analog)
12:55:49 T:140262939977600 NOTICE: m_displayNameExtra:
12:55:49 T:140262939977600 NOTICE: m_deviceType : AE_DEVTYPE_PCM
12:55:49 T:140262939977600 NOTICE: m_channels : FL,FR
12:55:49 T:140262939977600 NOTICE: m_sampleRates : 48000
12:55:49 T:140262939977600 NOTICE: m_dataFormats : AE_FMT_S32NE
12:55:49 T:140262939977600 NOTICE: Device 2
12:55:49 T:140262939977600 NOTICE: m_deviceName : @:CARD=Generic,DEV=0
12:55:49 T:140262939977600 NOTICE: m_displayName : HD-Audio Generic
12:55:49 T:140262939977600 NOTICE: m_displayNameExtra: ALC887-VD Analog
12:55:49 T:140262939977600 NOTICE: m_deviceType : AE_DEVTYPE_PCM
12:55:49 T:140262939977600 NOTICE: m_channels : FL,FR
12:55:49 T:140262939977600 NOTICE: m_sampleRates : 48000
12:55:49 T:140262939977600 NOTICE: m_dataFormats : AE_FMT_S32NE

All there. Sadly that device only support exactly one sample rate 48000. In Audio settings try to set it to Fixed 48000. Make sure it's not muted (alsamixer -c0 or amixer)


RE: Radeon OSS with vdpau (howto) - jaymax - 2014-01-22

(2014-01-22, 23:43)fritsch Wrote: All there. Sadly that device only support exactly one sample rate 48000. In Audio settings try to set it to Fixed 48000. Make sure it's not muted (alsamixer -c0 or amixer)

Tried with no luck. I realized I had an old sound card, so I threw that in, but still no sound.

Here's the logs with the new card:
dmesg: http://paste.ubuntu.com/6799681/
xbmc: http://paste.ubuntu.com/6799685/
xorg: http://paste.ubuntu.com/6799687/


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-01-22

Post:

amixer | pastebinit
aplay -l | pastebinit

Take your iphone and make a screenshot of your audio settings.

And remove that other card, it's drivers are highly problematic.

Edit2: Why the hell did you force Deinterlace to On? .... keep that one Auto for all files. It terribly bails out.


RE: Radeon OSS with vdpau (howto) - jaymax - 2014-01-23

(2014-01-22, 23:55)fritsch Wrote: Post:

amixer | pastebinit
aplay -l | pastebinit

Take your iphone and make a screenshot of your audio settings.

And remove that other card, it's drivers are highly problematic.

Edit2: Why the hell did you force Deinterlace to On? .... keep that one Auto for all files. It terribly bails out.

XBMC audio settings?

Other card removed, and was messing with deinterlace and forgot to revert it.

Logs:
amixer: http://paste.ubuntu.com/6799752/
aplay: http://paste.ubuntu.com/6799753/

EDIT: XBMC audio settings: http://i.imgur.com/1SAVctN.png


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-01-23

speaker-test -c2 -D plughw:0,0
speaker-test -c2 -D plughw:0,0 -r 48000

And play some mp3 in xbmc and post the logfile, thx.


RE: Radeon OSS with vdpau (howto) - jaymax - 2014-01-23

(2014-01-23, 00:16)fritsch Wrote: speaker-test -c2 -D plughw:0,0
speaker-test -c2 -D plughw:0,0 -r 48000

And play some mp3 in xbmc and post the logfile, thx.

No audio output with speaker-test

Here's the log after failed mp3 playback
xbmc log: http://paste.ubuntu.com/6799849/


RE: Radeon OSS with vdpau (howto) - beschmid - 2014-01-23

fritsch: when I resume my system from suspend, my screen is black requires a hard reset. Is there something I should edit in the suspend/resume scripts in "/etc/pm/sleep.d/" to get the video drivers to load properly?


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-01-23

@beschmid: No idea - i did not see any logfiles and my crystalball is away for repair.


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-01-23

@jaymax: Besides that it's still full of deinterlacing errors, It seems vdpau does not like your system :-)

Please whipe your .xbmc directory, don't install that "trackt" thing for now and get me a clean logfile when doing playback of

a) https://dl.dropboxusercontent.com/u/55728161/clannad.mkv (has no sound)

and b) https://dl.dropboxusercontent.com/u/55728161/fail.flac

Only redo the settings the howto wants.


RE: Radeon OSS with vdpau (howto) - jaymax - 2014-01-24

(2014-01-23, 09:52)fritsch Wrote: @jaymax: Besides that it's still full of deinterlacing errors, It seems vdpau does not like your system :-)

Please whipe your .xbmc directory, don't install that "trackt" thing for now and get me a clean logfile when doing playback of

a) https://dl.dropboxusercontent.com/u/55728161/clannad.mkv (has no sound)

and b) https://dl.dropboxusercontent.com/u/55728161/fail.flac

Only redo the settings the howto wants.

Alright, I'll do this tonight. I live with roommates, so I have to do it when nobody is watching anything. Just wanted to say thanks for all the help!


RE: Radeon OSS with vdpau (howto) - beschmid - 2014-01-24

(2014-01-23, 09:49)fritsch Wrote: @beschmid: No idea - i did not see any logfiles and my crystalball is away for repair.

I knew better... sorry fritsch, here you go.

dmesg: http://paste.ubuntu.com/6805746/
xbmc.log: http://paste.ubuntu.com/6805747/
Xorg.0.log: http://paste.ubuntu.com/6805748/
vdpauinfo: http://paste.ubuntu.com/6805755/
mesa: http://paste.ubuntu.com/6805758/


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-01-24

@beschmid: The modelines are totally broken on resume, furthermore your imon device goes nuts. Try overwriting the EDID (as shown in the audio workaround, perhaps that helps).