Mailinglist Archive: radeonhd (288 mails)

< Previous Next >
[radeonhd] HDMI audio on the Radeon HD 4350
  • From: Samir Unni <srunni@xxxxxxxxx>
  • Date: Sat, 11 Jul 2009 21:01:29 -0500
  • Message-id: <200907112101.29852.srunni@xxxxxxxxx>
Hi,

I'm trying to get audio working on my Radeon HD 4350 via HDMI. My audio was
working previously with the fglrx driver, but due to unrelated stability
issues with that driver, I'm giving radeonhd a shot.

I'm running the latest Git revision of the driver on Arch Linux x86 with the
2.6.30 kernel & KDEmod 4.2, if that's relevant. I saw that support for HDMI
audio on R700 chipsets (the 4350 is one of them) was added fairly recently,
but didn't see anyone having mentioned getting it to work on the 4350 in
particular. Can anyone confirm that it is indeed supported?

Anyway, this is what I know so far:
1. My xorg.conf includes the ``Option "Audio" "on"'' and
``Option "HDMI "all"'' settings.

2. ``aplay -l'' includes this output:
card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0

3. KDE recognizes the ATI HDMI sound device, and has it set as the preferred
audio device for all output.

4. alsamixer has both columns unmuted. The ``PCM'' column is set to
``100<>100'', while the ``IEC958'' column is set to ``OO''. KMix doesn't show
a volume slider for the HDMI audio output, but it is unmuted.

5. My ~/.asoundrc contains:
defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 3

6. I also ran alsaconf (as root) after changing the driver from fglrx to
radeonhd.

7. This is what happens when I try to play an audio file with aplay:
$ aplay -D hw:1,3 /usr/share/alsa/speaker-test/sample_map.csv
Playing raw data '/usr/share/alsa/speaker-test/sample_map.csv' : Unsigned 8
bit, Rate 8000 Hz, Mono
aplay: set_params:979: Sample format non available

8. This is what happens when I try to play an audio file with MPlayer:
$ mplayer -ao alsa:device=hw=1.3 /usr/share/alsa/speaker-test/sample_map.csv
MPlayer UNKNOWN-4.4.0 (C) 2000-2009 MPlayer Team
137 audio & 296 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /usr/share/alsa/speaker-test/sample_map.csv.
Exiting... (End of file)

9. /proc/asound/HDMI/pcm3p/sub0/info contains:
card: 1
device: 3
subdevice: 0
stream: PLAYBACK
id: ATI HDMI
name: ATI HDMI
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1
While I play an audio file with MPlayer, /proc/asound/HDMI/pcm3p/sub0/status
contains:
state: RUNNING
trigger_time: 32317.502694751
tstamp : 32318.546675126
delay : 15722
avail : 662
avail_max : 662
-----
hw_ptr : 46040
appl_ptr : 61762
When the playback ends, it just says ``closed'', so clearly something is being
played back.

Thanks,

Samir Unni
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups