[SOLVED] AMD Radeon - HD Audio support
#1
I've been trying to work out whether AMD graphics card support HD audio on Linux, but there seems to be a lot of old posts on the subject saying it is not possible with the drivers available. In particular, I have a Radeon 6570.

Could someone tell me where I can find this info?

I tried the latest stable Open Elec, and it did not work. Is it worth me trying a kodi build, and if so, which one?

------------------------------------------------------------

Update 12/2/2016

There is a kernel bug causing this issue, which is described here: https://bugs.freedesktop.org/show_bug.cgi?id=90777

The workaround is also shown, which is to add this file

/etc/modprobe.d/alsa.conf

with the following line:

Quote:options snd-hda-codec-hdmi static_hdmi_pcm=1

An explanation on what this achieves is here: https://lkml.org/lkml/2011/2/15/768 -- courtesy of fritsch

This enables up to 8 ch HDMI audio output and bitstreaming HD audio works at 60hz. There is a separate bug which is preventing bitstreaming from working at below 60hz, but Multichannel LPCM works just fine, which effectively gives the same result in terms of audio output.

Hopefully this helps others facing the same issue, as not being able to use Kodi on Linux with my AMD GPU has frustrated me for quite some time.
Reply
#2
Info: https://bugs.freedesktop.org/show_bug.cgi?id=75064
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#3
I read about this, although in my case, I tried switching off passthrough, but was only getting 2 channel LPCM, even though I'd configured 7.1 channels.

Both HD audio and 8 channel LPCM work fine for me in Windows.

I'm assuming then that multichannel LPCM should work in Linux? Including the latest (16.0?) build of openelec? The hardware compatibility list here:

http://kodi.wiki/view/Audio_hardware_compatibility

seems to suggest it does not. Though, this is quite old.

However, this thread (which is much newer) seems to suggest it should:

http://forum.kodi.tv/showthread.php?tid=174854


Hence the confusion.
Reply
#4
Depends ... boot up a latest Milhouse Version from usb stick, gather logfiles and see yourself ...
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#5
Thanks, will try that.
Reply
#6
I'm trying the stable 16 build of OpenElec, and thought I would try and work out what is going on, before I upgrade to the latest nightly.

I can bitstream DD5.1 and DTS. But Multichannel LPCM is limited to stereo only, and DTS-HD and TrueHD output no sound. The debug log shows this:

20:26:41 T:139880097113856 DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2
20:26:41 T:139880097113856 DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL,FR
20:26:41 T:139880097113856 DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL,FR (ALSA: FL FR)
20:26:41 T:139880097113856 DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
20:26:41 T:139880097113856 DEBUG: Output Device : HDA ATI
20:26:41 T:139880097113856 DEBUG: Sample Rate : 44100
20:26:41 T:139880097113856 DEBUG: Sample Format : AE_FMT_S16NE
20:26:41 T:139880097113856 DEBUG: Channel Count : 2
20:26:41 T:139880097113856 DEBUG: Channel Layout: FL,FR
20:26:41 T:139880097113856 DEBUG: Frames : 2208
20:26:41 T:139880097113856 DEBUG: Frame Samples : 4416
20:26:41 T:139880097113856 DEBUG: Frame Size : 4


And if I run speaker-test, I get this:

# speaker-test -D plughw:0,3 -c6

speaker-test 1.0.29

Playback device is plughw:0,3
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 32 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
0 - Front Left
1 - Front Right
2 - Unused
3 - Unused
4 - Unused
5 - Unused


So looks like it is only detecting 2 channels on the hdmi.

Any solution to this?
Reply
#7
Fix the TV / AVR that is attached and don't cut debuglogs - the problem is on your side not on ours.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#8
Apologies, the full log is here:

http://sprunge.us/TGBA

The above is after upgrading to the latest nightly, I thought that I'd give it a go. The same thing is happening.

However, I did notice, that right at the top of the log it shows all 8 channels available. I'm not sure if this was the case before the upgrade, but either way, when playing a file, it reverts back to 2 channels only.

21:09:50 18.862389 T:139730585917504 NOTICE: Found 2 Lists of Devices
21:09:50 18.862415 T:139730585917504 NOTICE: Enumerated ALSA devices:
21:09:50 18.862429 T:139730585917504 NOTICE: Device 1
21:09:50 18.862524 T:139730585917504 NOTICE: m_deviceName : hdmi:CARD=HDMI,DEV=0
21:09:50 18.862535 T:139730585917504 NOTICE: m_displayName : HDA ATI
21:09:50 18.862547 T:139730585917504 NOTICE: m_displayNameExtra: @@@
21:09:50 18.862558 T:139730585917504 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
21:09:50 18.862570 T:139730585917504 NOTICE: m_channels : FL,FR,LFE,FC,BL,BR,BC,BLOC,BROC
21:09:50 18.862581 T:139730585917504 NOTICE: m_sampleRates : 32000,44100,48000,88200,96000,176400,192000
21:09:50 18.862593 T:139730585917504 NOTICE: m_dataFormats : AE_FMT_RAW,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_RAW
21:09:50 18.862606 T:139730585917504 NOTICE: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3,STREAM_TYPE_TRUEHD


When you say fix the TV/AVR, what do you mean? I've set my amp to output audio through the AMP only, so the TV's edid info is not being picked up. I've also checked the edid data using EDID manager, and it shows the below:

(143-161) Audio Data Block

Audio Format #1 : MLP/Dolby TrueHD, 2-Channel
Sampling Frequency : 192 kHz, 176.4 kHz, 96 kHz, 88.2 kHz, 48 kHz, 44.1 kHz

Audio Format #2 : MLP/Dolby TrueHD, 6-Channel
Sampling Frequency : 192 kHz, 176.4 kHz, 96 kHz, 88.2 kHz, 48 kHz, 44.1 kHz

Audio Format #3 : MLP/Dolby TrueHD, 8-Channel
Sampling Frequency : 96 kHz, 88.2 kHz, 48 kHz, 44.1 kHz

Audio Format #4 : DTS-HD, 2-Channel
Sampling Frequency : 192 kHz, 176.4 kHz, 96 kHz, 88.2 kHz, 48 kHz, 44.1 kHz

Audio Format #5 : DTS-HD, 6-Channel
Sampling Frequency : 192 kHz, 176.4 kHz, 96 kHz, 88.2 kHz, 48 kHz, 44.1 kHz

Audio Format #6 : DTS-HD, 8-Channel
Sampling Frequency : 96 kHz, 88.2 kHz, 48 kHz, 44.1 kHz

(162-180) Audio Data Block

Audio Format #1 : LPCM, 2-Channel, 24-Bit, 20-Bit, 16-Bit
Sampling Frequency : 192 kHz, 176.4 kHz, 96 kHz, 88.2 kHz, 48 kHz, 44.1 kHz, 32 kHz

Audio Format #2 : LPCM, 6-Channel, 24-Bit, 20-Bit, 16-Bit
Sampling Frequency : 192 kHz, 176.4 kHz, 96 kHz, 88.2 kHz, 48 kHz, 44.1 kHz, 32 kHz

Audio Format #3 : LPCM, 8-Channel, 24-Bit, 20-Bit, 16-Bit
Sampling Frequency : 192 kHz, 176.4 kHz, 96 kHz, 88.2 kHz, 48 kHz, 44.1 kHz, 32 kHz

Audio Format #4 : AC-3, 6-Channel, 680 k Max bit rate
Sampling Frequency : 48 kHz, 44.1 kHz, 32 kHz

Audio Format #5 : DTS, 6-Channel, 1536 k Max bit rate
Sampling Frequency : 96 kHz, 88.2 kHz, 48 kHz, 44.1 kHz, 32 kHz

Audio Format #6 : E-AC-3, 8-Channel
Sampling Frequency : 48 kHz, 44.1 kHz

(181-184) Speaker Allocation Data Block (SADB)

Rear Left Center/Rear Right Center Audio Channel (RLC/RRC)
Rear Center (RC)
Rear Left/Rear Right Audio Channel (RL/RR)
Front Center Audio Channel (FC)
Low Frequency Effect Audio Channel (LFE)
Front Left/Front Right Audio Channel (FL/FR)
Reply
#9
OpenSink only opens 2 channels for PCM, RAW opens all 8.

Set Audio Output to Fixed and 6 channels Samplerate 48 khz and then play DTS or AC3

Here is a sample for you: https://dl.dropboxusercontent.com/u/5572...20Test.avi

Which ones do you hear?
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#10
I only hear sound from FL and FR, and the amp also shows only these 2 speakers are active.

Log here: http://sprunge.us/XDPa
Reply
#11
Then: kernel bug, please file it with the amd people on bugs.freedesktop.org - we cannot solve kernel issues.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#12
Btw. your log does not match.

You did not (!) Enable Output: Fixed
Channels 5.1

There is nothing in your logfile regarding this.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#13
It's at the bottom of the log:

21:53:09 2617.096924 T:139729370605312 NOTICE: Creating audio stream (codec id: 86019, channels: 6, sample rate: 48000, no pass-through)
21:53:09 2617.096924 T:139729177638656 NOTICE: CDVDMessageQueue::GetLevel() - can't determine level
21:53:09 2617.096924 T:139730566969088 NOTICE: Previous line repeats 2 times.
21:53:09 2617.096924 T:139730566969088 INFO: CActiveAE::ApplySettings - Forcing samplerate to 48000

I definitely enabled output as Fixed and at 48khz as requested.
Reply
#14
Quote:21:51:33 2521.813477 T:139730558576384 DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 8 Output Channel Count: 2
21:51:33 2521.813477 T:139730558576384 DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL,FR,FC,LFE,BL,BR,SL,SR
21:51:33 2521.813477 T:139730558576384 DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL,FR (ALSA: FL FR)
21:51:33 2521.813477 T:139730558576384 DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
21:51:33 2521.813477 T:139730558576384 DEBUG: Output Device : HDA ATI
21:51:33 2521.813477 T:139730558576384 DEBUG: Sample Rate : 48000
21:51:33 2521.813477 T:139730558576384 DEBUG: Sample Format : AE_FMT_S16NE
21:51:33 2521.813477 T:139730558576384 DEBUG: Channel Count : 2
21:51:33 2521.813477 T:139730558576384 DEBUG: Channel Layout: FL,FR
21:51:33 2521.813477 T:139730558576384 DEBUG: Frames : 2400
21:51:33 2521.813477 T:139730558576384 DEBUG: Frame Size : 4

I still count 8 ... but most likely also 6 won't open. Kernel bug -> bugs.freedesktop.org
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#15
Relevant log was here:

Quote:21:51:59 2547.376709 T:139730558576384 DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 6 Output Channel Count: 2
21:51:59 2547.376709 T:139730558576384 DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL,FR,FC,LFE,SL,SR
21:51:59 2547.376709 T:139730558576384 DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL,FR (ALSA: FL FR)
21:51:59 2547.376709 T:139730558576384 DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
21:51:59 2547.376709 T:139730558576384 DEBUG: Output Device : HDA ATI
21:51:59 2547.376709 T:139730558576384 DEBUG: Sample Rate : 48000
21:51:59 2547.376709 T:139730558576384 DEBUG: Sample Format : AE_FMT_S16NE
21:51:59 2547.376709 T:139730558576384 DEBUG: Channel Count : 2
21:51:59 2547.376709 T:139730558576384 DEBUG: Channel Layout: FL,FR
21:51:59 2547.376953 T:139730558576384 DEBUG: Frames : 2400
21:51:59 2547.376953 T:139730558576384 DEBUG: Frame Size : 4

But I understand what you're saying. Thanks for trying anyway.

Just so I understand, is this a bug with the AMD drivers that you are saying to raise at bugs.freedesktop.org?
Reply

Logout Mark Read Team Forum Stats Members Help
[SOLVED] AMD Radeon - HD Audio support0