You are not logged in.

#1 2017-11-05 20:49:04

vls-xy2
Member
Registered: 2016-10-16
Posts: 11

[SOLVED] Trouble with HDMI sound ATI Radeon on fresh installation

Hello Everyone

Unfortunately I am having some trouble getting sound to work over my HDMI monitor. The system is a dual-boot and on windows the sound works fine.
The graphics card is a Radeon RX 560. I'm using openbox and have completed very few package installations so far.

I have tried a few things now and may have messed up my settings somewhere, but am at my whit's end as to how to proceed:

$ pacman -Q | grep alsa
alsa-lib 1.1.4.1-2
alsa-oss 1.0.28-1
alsa-plugins 1.1.4-1
alsa-utils 1.1.4-1
zita-alsa-pcmi 0.2.0-3
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I have manually created the following file:

$ cat ~/.asoundrc 
pcm.!default {
	type hw
	card 1
}

ctl.!default {
	type hw           
	card 1
}

I have also edited the following lines in the file /usr/shar/alsa/alsa.conf

defaults.pcm.card 1
defaults.pcm.device 3

aplay gives the following error:

$ aplay -D hw:1,3 /usr/share/sounds/alsa/Front_Center.wav 
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1324: Channels count non available

I read in the wiki that I need to enable radeon.audio=0 in my kernel parameters. I do not know how to do this. Can anyone help me out?

Last edited by vls-xy2 (2018-02-10 20:45:13)

Offline

#2 2017-11-05 20:51:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Trouble with HDMI sound ATI Radeon on fresh installation


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-11-05 21:06:12

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Trouble with HDMI sound ATI Radeon on fresh installation

What graphics driver are you using?

I don't think the radeon driver in the mainline kernel supports HDMI audio yet.

Last edited by Slithery (2017-11-05 21:08:49)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2017-11-05 21:07:07

vls-xy2
Member
Registered: 2016-10-16
Posts: 11

Re: [SOLVED] Trouble with HDMI sound ATI Radeon on fresh installation

Hi jasonwryan,
thanks for the quick reply! the wiki for the kernel_parameters doesn't help me I am afraid, because I am booting to the HD over the usb grub does not work yet.

I've since noticed that

alsamixer -D hw:0

looks much more different than:

alsamixer -D hw:1

in the hw:1 view, which i am assuming is the one for the graphics card, I see no volume bars. Only the option to mute "s/pdif 1" to 4. Maybe herein lies the problem?

Offline

#5 2017-11-05 21:09:33

vls-xy2
Member
Registered: 2016-10-16
Posts: 11

Re: [SOLVED] Trouble with HDMI sound ATI Radeon on fresh installation

Hi slithery,

I installed: xf86-video-ati 1:7.10.0-1

Is there a way to check which driver I'm really using?

Offline

#6 2017-11-05 21:14:28

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Trouble with HDMI sound ATI Radeon on fresh installation

You'll be using the radeon(AMDGPU) driver.

Your options are to either run the Catalyst or AMDGPU-PRO drivers (not recommended at all as you need to downgrade major system components), wait until kernel 4.15 when support lands, or try using one of the linux-amd-staging* packages in the AUR.

Last edited by Slithery (2017-11-05 21:14:58)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2017-11-05 21:21:00

vls-xy2
Member
Registered: 2016-10-16
Posts: 11

Re: [SOLVED] Trouble with HDMI sound ATI Radeon on fresh installation

This seems strange. On windows I had a similar issue which was solved by dissabling the catalyst driver.
This stuff really is a minefield. I probably will have to admit defeat for today as I've been battling with this issues for hours now.

How do you know that support for this graphics card comes with kernel 4.15?
I would not have expected much difference in the difference in drivers for hdmi-audio.

Offline

#8 2017-11-05 21:28:29

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Trouble with HDMI sound ATI Radeon on fresh installation

I'm a regular Phoronix reader, it's been one of their hottest topics for a year or so now...
https://www.phoronix.com/scan.php?page= … LL-REQUEST


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2017-11-05 21:44:00

vls-xy2
Member
Registered: 2016-10-16
Posts: 11

Re: [SOLVED] Trouble with HDMI sound ATI Radeon on fresh installation

Thanks for the info. I did not understand most of this, but i will try to read up on this a bit more.
cheers

Offline

#10 2017-11-05 21:48:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Trouble with HDMI sound ATI Radeon on fresh installation

vls-xy2 wrote:

Hi jasonwryan,
thanks for the quick reply! the wiki for the kernel_parameters doesn't help me I am afraid, because I am booting to the HD over the usb grub does not work yet.

That doesn't make sense: you can append parameters to whatever you are booting from.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2017-11-06 20:49:46

vls-xy2
Member
Registered: 2016-10-16
Posts: 11

Re: [SOLVED] Trouble with HDMI sound ATI Radeon on fresh installation

After reading up on how to set kernel parameters I added the following to my /etc/default/grub file:

GRUB_CMDLINE_LINUX_DEFAULT="quiet radeon.audio=1"
GRUB_DISABLE_RECOVERY=false

and did the ol'

sudo grub-mkconfig -o /boot/grub/grub.cfg

However, this did not immediately solve my problems. I will keep debugging.

To answer you jasonwryan, I wasn't clear enough why i didn't do this before: my system is kinda buggy in the sense that i can boot to the usb iso and then chain into my grub install on the harddisk, but for some reason the bios only boots directly into my previously installed windows regardless which drive i pick. It should be said, if I remember correctly two (or three?) instances of windows were previously installed on this machine. This is a separate issue I may tackle after i have given up on the hdmi.

Last edited by vls-xy2 (2017-11-06 20:50:03)

Offline

#12 2017-11-06 21:51:38

vls-xy2
Member
Registered: 2016-10-16
Posts: 11

Re: [SOLVED] Trouble with HDMI sound ATI Radeon on fresh installation

I clearly am missing something here. I have now attached some headphones to my motherboard and tested

aplay -D plughw:0,0 /usr/share/sounds/alsa/Front_Center.wav 

this gives me a long desired sound. However playing a youtube video in firefox does not give me any sound. What am I missing? PulseAudio?

Offline

#13 2017-11-06 22:31:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,736

Re: [SOLVED] Trouble with HDMI sound ATI Radeon on fresh installation

For firefox? Definitely.

Firefox opt depends wrote:

pulseaudio: Audio support

Last edited by V1del (2017-11-06 22:35:20)

Offline

#14 2017-11-08 21:50:24

vls-xy2
Member
Registered: 2016-10-16
Posts: 11

Re: [SOLVED] Trouble with HDMI sound ATI Radeon on fresh installation

Thanks V1del,

due to your suggestion i installed pulseaudio:

sudo pacman -S pulseaudio pulseaudio-equalizer pulseaudi-alsa pavucontrol

then with

pactl load-module module-alsa-sink device=hw:0,0

I can see my normal onboard soundcard in pavucontrol and assign it to different running programs. That way i get sound over my headphones and possibly a speaker or two. Doesn't solve my HDMI problem but this seems to be due to the driver.
I've noticed some artefacts when watching 4k videos, I wonder if an update in the driver will change things here. Does it have to do with h.264 anybody in the know?

Anxiously awaiting the rolling release...

(Oh to get the above to work i also deleted the alsa config files "~/.asoundrc").

Offline

#15 2018-02-10 20:42:38

vls-xy2
Member
Registered: 2016-10-16
Posts: 11

Re: [SOLVED] Trouble with HDMI sound ATI Radeon on fresh installation

For those of you wondering. Slithery was right, as of kernel 4.15 HDMI Audio is working for my graphics card / setup etc. Shout out to anybody involved... stay awesome.

Offline

Board footer

Powered by FluxBB