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) - deadite66 - 2013-11-09

(2013-11-08, 23:37)fritsch Wrote: @deadite66: I forwarded it to the dev of the amd hda audio driver.

Edit: Please try to reproduce with a normal kernel, that does not have this patch, e.g. Ubuntu default one or 3.12 mainline.

it's very infrequent though, only the 2nd time since i started using radeon vdpau.


RE: Radeon OSS with vdpau (howto) - Iamroot - 2013-11-09

(2013-11-08, 06:00)fritsch Wrote: @Iamroot: Please read the first post, there is a link to the needed packages on my kernel here: https://github.com/fritsch/linux/commits/howto (Implement HD Audio)

Is there a plan to make those fix in a kernel I can install directly instead of build one myself? Wondering if I should just wait or go back to old version to make it work first. Thanks.


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-11-09

Err?? Did you read the howto at all? No you didn't - I provide ready to use kernel image, download && install.


RE: Radeon OSS with vdpau (howto) - tomtomme - 2013-11-09

@ iamroot
the patched kernel is already there for ubuntu - only other distros have to patch and compile IF you need HD-audio - thats what my suse-howto is about.
Sadly I had no success with that so far - compilation of kernel exits on building some w-lan driver after about 3 hours of compilation.... I´ll try again with updated packages right now and report back asap.
Did someone else already try? is something obviously wrong in my howto?

@fritsch
where did you link the howto - which second thread do you mean?

cheers, tomme


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-11-09

Second post, sorry.


RE: Radeon OSS with vdpau (howto) - dirtydesaster - 2013-11-09

can i use frodo too? Or just the xbmc-fernetmenta-master?


RE: Radeon OSS with vdpau (howto) - Iamroot - 2013-11-09

@tomtomme
Thanks for the clarification. The source code on the side scares me, but good to know it is in the kernel.

@fritsch
I have been digging on this sound problem for a couple of days and still not have a clue. Let me try to clarify the environment a little bit.
I have a realtek (ALC662) on the monther board which I'll use for Audio output. Also, I have ATI HD6450, with the driver, it sounds like HDMI can support audio output too, but I'm not using it (I use DVI for video output). So I'm not sure if any conflict between those 2 devices.

In the xbmc.log, I can see "ERROR: Unable to load libcrystalhd.so.3, reason: libcrystalhd.so.3: cannot open shared object file: No such file or directory"
But I assume it is expected as I didn't explicitly install the Crystal driver, but following this How-to.

What I can see from dmesg related with sound are following, not sure if it is strange

[ 10.255998] [drm] Detected VRAM RAM=2048M, BAR=256M
[ 10.256000] [drm] RAM width 64bits DDR
[ 10.256061] [TTM] Zone kernel: Available graphics memory: 977352 kiB
[ 10.256064] [TTM] Initializing pool allocator
[ 10.256069] [TTM] Initializing DMA pool allocator
[ 10.256090] [drm] radeon: 2048M of VRAM memory ready
[ 10.256092] [drm] radeon: 1024M of GTT memory ready.
[ 10.397840] snd_hda_intel 0000:00:1b.0: irq 44 for MSI/MSI-X
[ 10.562498] SKU: Nid=0x1d sku_cfg=0x4004c601
[ 10.562502] SKU: port_connectivity=0x1
[ 10.562504] SKU: enable_pcbeep=0x0
[ 10.562506] SKU: check_sum=0x00000004
[ 10.562507] SKU: customization=0x000000c6
[ 10.562508] SKU: external_amp=0x0
[ 10.562510] SKU: platform_type=0x0
[ 10.562511] SKU: swap=0x0
[ 10.562512] SKU: override=0x1
[ 10.562764] autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[ 10.562766] speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 10.562768] hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 10.562769] mono: mono_out=0x0
[ 10.562770] inputs:
[ 10.562773] Front Mic=0x19
[ 10.562775] Rear Mic=0x18
[ 10.562776] Line=0x1a
[ 10.562778] realtek: No valid SSID, checking pincfg 0x4004c601 for NID 0x1d
[ 10.562780] realtek: Enabling init ASM_ID=0xc601 CODEC_ID=10ec0662
[ 10.571016] input: HDA Intel PCH Line Out as /devices/pci0000:00/0000:00:1b.0/sound/card0/input7
[ 10.571095] input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input6
[ 10.571150] input: HDA Intel PCH Rear Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input5



A little more from later part of dmesg
[ 11.470839] [drm] Initialized radeon 2.34.0 20080528 for 0000:01:00.0 on minor 0
[ 11.470989] hda-intel 0000:01:00.1: Handle VGA-switcheroo audio client
[ 11.470991] hda-intel 0000:01:00.1: Using LPIB position fix
[ 11.471055] snd_hda_intel 0000:01:00.1: irq 46 for MSI/MSI-X
[ 11.477206] hda-intel 0000:01:00.1: Enable sync_write for stable communication
[ 11.584519] HDMI ATI/AMD: no speaker allocation for ELD
[ 11.584601] input: HD-Audio Generic HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input8


I'm kind of run out of options. Appreciate any suggestion.


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-11-09

(2013-11-09, 12:30)dirtydesaster Wrote: can i use frodo too? Or just the xbmc-fernetmenta-master?

No mainline Frodo. You need vdpau with glinterop or performance will suck balls. This was merged into xbmc-mainline and will be part of v13. You also cannot use Fernetmenta Frodo branch, as this does not have the Radeon adjustments we had to do in order to get it running smoother.


RE: Radeon OSS with vdpau (howto) - tomtomme - 2013-11-09

@iamroot:
- please post full logs in code-tags or better at pastebin as how fritsch suggests below - then only post the links here
- how do you connect your realtek to your receiver and can your receiver definitly handle HD sound? Did you set your Realtek as PRIMARY sound card in the system to use it over HDMI?
- I think you have to connect at least digitaly (optical or coaxial) and that analog connection cannot transport HD sound. It would be easier to use HDMI for sound + video I think


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-11-09

@Iamroot:
I told before: visit the IRC channel. Thanks for your log - there is absolutely nothing in, that might help - or do you see something?

Code:
amixer -c0 | pastebinit
amixer -c1 | pastebinit
cat /etc/group | pastebinit
aplay -L | pastebinit
aplay -l | pastebinit



RE: Radeon OSS with vdpau (howto) - deadite66 - 2013-11-09

yay switched over to saucy, i hate mysql so much >.<


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-11-09

@Iamroot:
Unmute your Analog device (as seen via your IRC logs, before your macbook went to sleep :p)


RE: Radeon OSS with vdpau (howto) - deadite66 - 2013-11-09

fritsch the weird audio glitch i was getting in 24Hz mode is fixed in 3.12.0+


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-11-09

(2013-11-09, 15:33)deadite66 Wrote: fritsch the weird audio glitch i was getting in 24Hz mode is fixed in 3.12.0+
I know. - read the changelog :-) (second post)


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-11-09

For completion:

@Iamroot: Your soundcard, the ALC662 rev3 Analog has a bug, it only works with 48 khz but also announces 44.1
Therefore go to Audio Settings and choose "Fixed" Output, set samplerate to 2.0 and if you have 5.1 analog speakers to 5.1 - if not choose 2.0