You are not logged in.

#1 2012-03-10 05:31:56

skoh-fley
Member
Registered: 2012-03-10
Posts: 10

[SOLVED] HDMI audio not functioning

I'm having trouble getting audio working. My setup is audio through HDMI, but I actually don't have a way to test audio through any other means, so I'm not sure if HDMI has anything to do with the problem.

My onboard video chipset is ATI Radeon HD 4250, and so I have added "radeon.audio=1" to my GRUB's boot entry, however nothing seemed to change. Where I seem to be stuck is that aplay will not pick up any sound devices:

$ aplay -l
aplay: device_list:252: no soundcards found...

From http://lkubuntu.wordpress.com/2011/07/2 … eshooting/ I was able to yield the following:

$ lspci -nn | grep '04[80][13]'
00:14.2 Audio device [0403]: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA) [1002:4383] (rev 40)
01:05.1 Audio device [0403]: Advanced Micro Devices [AMD] nee ATI RS880 HDMI Audio [Radeon HD 4200 Series] [1002:970f]

From some commands in the ALSA page at the wiki:

$ lsmod | grep '^snd' | column -t
$
$ ls -l /dev/snd
ls: cannot access /dev/snd: No such file or directory

No idea why almost all of the commands I'm seeing are returning the opposite of what they should. Any ideas?

Last edited by skoh-fley (2012-03-10 19:05:13)

Offline

#2 2012-03-10 07:08:48

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] HDMI audio not functioning

Did you configure ALSA, first and foremost?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2012-03-10 07:53:14

skoh-fley
Member
Registered: 2012-03-10
Posts: 10

Re: [SOLVED] HDMI audio not functioning

Thanks for your reply.

I have tried, but it just seems too much is going wrong for it to be coincidence:

# alsaconf
bash: alsaconf: command not found
# pacman -Ss alsa-utils
extra/alsa-utils 1.0.25-2 [installed]
    An alternative implementation of Linux sound support

After some googling I found out that alsaconf may have been removed from alsa-utils (?) and that I should instead do 'alsactl init':

# alsactl init
alsactl: init:1743: No soundcards found...

I tried to proceed in the wiki section anyway, but apparently I am missing some vital directories:

# ls /sys/module/snd/
ls: cannot access /sys/module/snd/: No such file or directory
# ls /proc/asound/
ls: cannot access /proc/asound/: No such file or directory

So I really have no idea how to continue configuring. I have also briefly tried OSS with no dice, although OSS can at least detect my ATI audio device.

Offline

#4 2012-03-10 09:14:07

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] HDMI audio not functioning

Guess what...

https://bugs.archlinux.org/task/28631

There is no alsaconf anymore indeed.

Any more luck after you load snd-hda-intel:

# modprobe -v snd-hda-intel

Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2012-03-10 16:36:48

OrionFyre
Member
Registered: 2008-03-16
Posts: 68

Re: [SOLVED] HDMI audio not functioning

*EDIT* woops didn't read thoroughly enough. Once you get the driver issue sorted out this is what I had to do to get audio over HDMI. I have the ATI 4250 as an onboard video chip.

I'm going from memory here as I set this up about a year ago...

Gather some info about what card and device identifier you need to use:

cat /proc/asound/{cards,devices}

You should have a card listed at the top identified somewhere with "HDA ATI HDMI"... Note the number at the beginning of the line, this is the card number.

The devices are listed next in a line of identifiers followed by " [ #- #] -Description"

If your card was identified as "1" then look at the matching cards in the device list indicated by [ 1- #] and find "digital audio playback". You are interested in the numbers in the braces.

Now you know your card and device number for the next step.
Assuming the following:
* HDMI device listed as [ 1- 3],
* audio configured on a per-user basis,
edit the file ~/.asoundrc:

pcm.!default {
    type hw
    card 1
    device 3
}

Logout and back in and it should start working. Prior to doing this I would only get audio out of the speaker jack on the back for my user. As a bennefit of setting it up per-user my daemons still use the audio jack instead of over the TV speakers.

Last edited by OrionFyre (2012-03-10 16:41:14)

Offline

#6 2012-03-10 19:04:37

skoh-fley
Member
Registered: 2012-03-10
Posts: 10

Re: [SOLVED] HDMI audio not functioning

Thanks for your replies guys! Using both of your posts' information I was able to get HDMI audio working. Here's what I did:

# modprobe -v snd-hda-intel
FATAL: Module snd-hda-intel not found.

At this point I found a post that suggested reinstalling kernel26:

# pacman -S kernel26
warning: linux-3.2.9-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): linux-3.2.9-1

Total Installed Size:   57.45 MiB
Net Upgrade Size:       0.00 MiB

...

And after that all the commands starting working:

# modprobe -v snd-hda-intel
insmod /lib/modules/3.2.9-1-ARCH/kernel/sound/soundcore.ko.gz 
insmod /lib/modules/3.2.9-1-ARCH/kernel/sound/core/snd.ko.gz 
insmod /lib/modules/3.2.9-1-ARCH/kernel/sound/core/snd-timer.ko.gz 
insmod /lib/modules/3.2.9-1-ARCH/kernel/sound/core/snd-page-alloc.ko.gz 
insmod /lib/modules/3.2.9-1-ARCH/kernel/sound/core/snd-pcm.ko.gz 
insmod /lib/modules/3.2.9-1-ARCH/kernel/sound/core/snd-hwdep.ko.gz 
insmod /lib/modules/3.2.9-1-ARCH/kernel/sound/pci/hda/snd-hda-codec.ko.gz 
insmod /lib/modules/3.2.9-1-ARCH/kernel/sound/pci/hda/snd-hda-intel.ko.gz 
# cat /proc/asound/{cards,devices}
 0 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xfeb00000 irq 16
 1 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xfe710000 irq 19
  2: [ 0- 2]: digital audio capture
  3: [ 0- 1]: digital audio playback
  4: [ 0- 0]: digital audio playback
  5: [ 0- 0]: digital audio capture
  6: [ 0- 0]: hardware dependent
  7: [ 0]   : control
  8: [ 1- 3]: digital audio playback
  9: [ 1- 0]: hardware dependent
 10: [ 1]   : control
 33:        : timer

Using this information I just followed OrionFyre's instructions and the sound works perfectly! Thanks all!

Offline

Board footer

Powered by FluxBB