You are not logged in.

#1 2014-02-13 17:45:34

Jugdish
Member
Registered: 2014-02-13
Posts: 4

HDMI audio fails speaker-test, Radeon Richland

I've just put together a new machine and installed Ubuntu 13.10 on it. The system has an integrated AMD Radeon Richland APU. The Onboard audio is working fine (tested with headphones). The HDMI audio is enabled in BIOS, and it's listed in aplay -l and in the Sound Settings dialog. But it's not making a sound, and after many tests and possible fixes, I'm at a loss what to try at this point.

Perhaps the most telling indicator about the problem is the error message I get when I run speaker-test:

speaker-test -l 4 -c 2 -r 48000 -D hw:0,3

speaker-test 1.0.27.1

Playback device is hw:0,3
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Home directory not accessible: Permission denied
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
Write error: -5,Input/output error
xrun_recovery failed: -5,Input/output error
Transfer failed: Input/output error

Things I've tried already:

  • Ensure HDMI is unmuted in alsamixer

  • Update alsa to latest daily build. I'm now running oem-audio-hda-daily-dkms - 0.201402110705~ubuntu13.10.1 downloaded from launchpad

  • Update video driver from radeon to fglrx (catalyst 13.12). Had to write a custom xorg.conf file for this (see below)

  • Checked volume and settings in PulseAudio Volume Control - set HDMI audio to be the fallback output.

  • Updated grub as per this thread: https://bugs.launchpad.net/ubuntu/+sour … bug/864735

Here are some further details about the system:

aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

dmesg | grep HDMI

[   11.201380] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.1/sound/card0/input5

cat /proc/asound/cards

 0 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xff744000 irq 52
 1 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xff740000 irq 16

cat /proc/asound/version

Advanced Linux Sound Architecture Driver Version k3.11.0-15-generic

lsmod | grep snd

snd_hda_codec_realtek    57495  1
snd_hda_codec_generic    68274  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     46433  1
snd_seq_midi           13324  0
snd_hda_intel          52306  5
snd_hda_codec         137465  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
snd_hwdep              13602  1 snd_hda_codec
snd_seq_midi_event     14899  1 snd_seq_midi
snd_rawmidi            30095  1 snd_seq_midi
snd_pcm               102033  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_seq                61560  2 snd_seq_midi_event,snd_seq_midi
snd_page_alloc         18710  2 snd_pcm,snd_hda_intel
snd_seq_device         14497  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              29433  2 snd_pcm,snd_seq
snd                    69141  22 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
soundcore              12680  1 snd

lspci -nn | grep VGA

00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Richland [1002:999c]

lshw -c video

  *-display
       description: VGA compatible controller
       product: Richland
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 1
       bus info: pci@0000:00:01.0
       version: 00
       width: 32 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
       configuration: driver=fglrx_pci latency=0
       resources: irq:53 memory:c0000000-cfffffff ioport:f000(size=256) memory:ff700000-ff73ffff

cat /etc/X11/xorg.conf

Section "Device"
 Identifier "ATI radeon 8650"
 Driver "fglrx"
EndSection

Would be very grateful for any insight you guys can provide!

Many thanks

Last edited by Jugdish (2014-02-13 17:46:02)

Offline

#2 2014-02-14 20:18:51

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: HDMI audio fails speaker-test, Radeon Richland

What does

xrandr --props

say? Have you tested the cable with some other units?

Offline

#3 2014-02-15 09:52:11

Jugdish
Member
Registered: 2014-02-13
Posts: 4

Re: HDMI audio fails speaker-test, Radeon Richland

emeres wrote:

Have you tested the cable with some other units?

Yes I plugged in my Windows 7 laptop using the same HDMI cable and TV port, and audio worked fine (after switching from analogue to digital audio in the TV settings). So I don't think the problem is the cable.

Here is the output from

xrandr --props

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 1920 x 1920
DFP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 698mm x 392mm
	EDID: 
		00ffffffffffff0034a935c101010101
		00130103800000780adaffa3584aa229
		17494b00000001010101010101010101
		010101010101023a80d072382d40102c
		4580ba882100001e023a801871382d40
		582c4500ba882100001e000000fc0050
		616e61736f6e69632d54560a000000fd
		00173d0f440f000a2020202020200122
	SignalFormat: TMDS 
	ConnectorType: HDMI 
   1920x1080      50.0*+   60.0     59.9     60.1     50.0     24.0     60.0     24.0  
   1776x1000      50.0     59.9     50.0     24.0     60.0  
   1680x1050      60.0     50.0     59.9     24.0     24.0  
   1400x1050      60.0     50.0     59.9     24.0     24.0  
   1600x900       50.0     59.9     24.0  
   1280x1024      60.0     50.0     59.9     24.0     24.0  
   1440x900       50.0     59.9     24.0  
   1280x960       50.0     59.9     24.0  
   1280x768       50.0     59.9     24.0  
   1280x720       60.0     50.0     59.9     24.0  
   1024x768       50.0     59.9     24.0  
   1152x648       50.0     59.9  
   800x600        50.0     59.9  
   720x576        59.9     24.0     50.1     50.0  
   720x480        50.0     24.0     60.1     60.0     60.1     59.9  
   640x480        50.0     24.0     60.0     59.9  
DFP2 disconnected (normal left inverted right x axis y axis)
	SignalFormat: TMDS 
	ConnectorType: DVI-D 
CRT1 disconnected (normal left inverted right x axis y axis)
	SignalFormat: VGA 
	ConnectorType: VGA 

Last edited by Jugdish (2014-02-15 09:53:12)

Offline

#4 2014-02-15 16:34:31

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: HDMI audio fails speaker-test, Radeon Richland

Well, if

xrandr --output DFP1 --auto

does not work, I would normally try to force the hdmi audio option on, but you do not seem to have one. Try disabling ACPI on your ATI:

aticonfig --acpi-services=off

Then restart or even better cold boot with your TV switched on (some people report problems with hdmi audio when TV is off - probably handshake issues).
  Normally you should have a "hdmi" device listed with aplay -L that corresponds to your actual HDMI device. If plug[hw]:hdmi does not work with speaker-test, I would double check loaded and blacklisted modules, especially their versions (options snd-hda-intel model=xxx), since you have two hda compliant sound cards.
  Which driver are you using right now? You wrote fglrx but radeon.audio=1 boot option is for xf86-video-ati driver. Also maybe a

aticonfig --initial

would be worth a try.
  It may be much faster to just try some a live distribution like Mint or openSUSE to get correct settings.

Last edited by emeres (2014-02-15 16:35:24)

Offline

#5 2014-02-16 20:47:03

Jugdish
Member
Registered: 2014-02-13
Posts: 4

Re: HDMI audio fails speaker-test, Radeon Richland

emeres wrote:

Which driver are you using right now? You wrote fglrx but radeon.audio=1 boot option is for xf86-video-ati driver.

Yeah I realised the grub update only applied to the open source radeon driver - I had switched back to that driver when I was attempting the grub fix, but no luck.

I'm now back with the fglrx driver.

emeres wrote:

Try disabling ACPI on your ATI:

aticonfig --acpi-services=off

Also maybe a

aticonfig --initial

would be worth a try..

Anytime I run aticonfig (or amdconfig) I get this error: "No supported adapters detected". I don't understand why. My processor is an A10-6700T which has integrated Radeon HD 8000 series graphics. This is listed in supported adapters for the Catalyst 13.12 driver. I installed the driver following the instructions here: http://wiki.cchtml.com/index.php/Ubuntu … tion_Guide

Offline

#6 2014-02-17 16:14:02

Andreaskem
Member
Registered: 2013-10-13
Posts: 67

Re: HDMI audio fails speaker-test, Radeon Richland

Jugdish wrote:

I've just put together a new machine and installed Ubuntu 13.10 on it.

(emphasis mine)

Arch Linux Distribution Support ONLY

Offline

#7 2014-02-18 13:43:49

Jugdish
Member
Registered: 2014-02-13
Posts: 4

Re: HDMI audio fails speaker-test, Radeon Richland

Ok sorry, I'm new here. Anyway, the issue was not distro-related, it had to do with kernel 3.11.

For anyone who's interested, I fixed the problem by upgrading the kernel to 3.13. After a reboot, HDMI audio was working. I also wanted to continue using the fglrx driver instead of radeon, so I went with the Catalyst 14.1 beta driver, which has support for kernel 3.13.

Last edited by Jugdish (2014-02-18 13:44:09)

Offline

Board footer

Powered by FluxBB