Enable HDMI audio output

You have a problem with Salix? Post here and we'll do what we can to help.
wackpanther
Posts: 33
Joined: 16. Feb 2011, 02:09

Enable HDMI audio output

Post by wackpanther »

Hi everyone
Has anybody tried to set up Salix for HDMI use?
I'm working on it, but struggling.
Video worked right out of the box.
But audio won't cooperate, it continues to default to my laptop speakers.
ALSA only gives me two options:

Default
PCH (HDA-Intel)

aplay -l can find my sound card:

card 0: PCH [HDA Intel PCH], device 0: ALC233 Analog [ALC233 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

Clearly HDMI audio can be set using card 0, device 3.
But it doesn't work...?
The ALSA archwiki suggests this command to test:

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

This plays the .wav file, but it goes to the laptops speakers every time.
I can put in 0,0 for the analog sound card, or 0,3 for the HDMI card and it makes no difference.

Does anyone have any clues?
Thanks!
wackpanther
Posts: 33
Joined: 16. Feb 2011, 02:09

Re: Enable HDMI audio output

Post by wackpanther »

I studied this post
http://forum.salixos.org/viewtopic.php? ... dio#p32694
but the command

clementine -ao alsa:device=hw=0.3

gives me

error loading alsa:device=hw=0.3

hmmm
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Enable HDMI audio output

Post by mimosa »

Try with a different player, such as mplayer (from the repositories).
wackpanther
Posts: 33
Joined: 16. Feb 2011, 02:09

Re: Enable HDMI audio output

Post by wackpanther »

Ok I'll try that.
I've noticed tho that there's no hdmi audio with my web browser or any other app either
User avatar
gapan
Salix Wizard
Posts: 6349
Joined: 6. Jun 2009, 17:40

Re: Enable HDMI audio output

Post by gapan »

Menu -> System -> ALSA Sound Card

and select the card you want to use.
Image
Image
wackpanther
Posts: 33
Joined: 16. Feb 2011, 02:09

Re: Enable HDMI audio output

Post by wackpanther »

Thanks for replying.
Menu -> System -> ALSA Sound Card
Gives me two options:
Default
PCH (HDA-Intel)
Neither one provides HDMI audio.
aplay-l makes it look like both analog and HDMI audio are coming off of the same card, as different devices (terminal output in my first post)
Is there a driver file or configuration that must be changed?
User avatar
gapan
Salix Wizard
Posts: 6349
Joined: 6. Jun 2009, 17:40

Re: Enable HDMI audio output

Post by gapan »

Can you provide the output of

Code: Select all

sudo lspci
Image
Image
wackpanther
Posts: 33
Joined: 16. Feb 2011, 02:09

Re: Enable HDMI audio output

Post by wackpanther »

00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 7 Series Chipset Family LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
07:00.0 Network controller: Broadcom Corporation BCM43142 802.11b/g/n (rev 01)
08:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
0e:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 0c)
User avatar
gapan
Salix Wizard
Posts: 6349
Joined: 6. Jun 2009, 17:40

Re: Enable HDMI audio output

Post by gapan »

wackpanther wrote:aplay -d plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav
Is this exactly what you typed? Because it's wrong. The -D switch should be capital.
Image
Image
wackpanther
Posts: 33
Joined: 16. Feb 2011, 02:09

Re: Enable HDMI audio output

Post by wackpanther »

Whoa you're on to something!
I did enter the command with lower case -d, which played the file through laptop speakers.
Entering the same with capital -D works! Output through HDMI.
Now how do I use that?
Post Reply