You are not logged in.

#1 2020-04-25 10:18:13

Frankyao0621
Member
Registered: 2020-04-25
Posts: 3

HDMI sounds

Hi,
I am using Arch Linux i3,
I have problems with audios. I want to play audios with my HDMI devices, but it does not have sound. (I tried to play some youtube video with firefox)
I am following https://wiki.archlinux.org/index.php/Ad … s_not_work.

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1220 Analog [ALC1220 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1220 Digital [ALC1220 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
card 1: HDMI [HDA ATI HDMI], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I found the following code word, and I can hear sounds
aplay -D plughw:1,9 ../../usr/share/sounds/alsa/Front_Center.wav

Then I changed my .asoundrc file to the format that wifi specified.
I tried all methods in the wiki, but none of it works.
1. I tried .asoundrc as

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

and

defaults.pcm.card 1
defaults.pcm.device 9
defaults.ctl.card 1

and

pcm.!default {
    type plug
    slave.pcm "hdmi"
}

Can anyone help me?
Thank you so much.

Last edited by Frankyao0621 (2020-04-25 12:11:58)

Offline

#2 2020-04-25 11:14:57

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,230

Re: HDMI sounds

Post your .asoundrc and which program you are using that you have issues with. Do you use pulseaudio? Post the .asoundrc wrapped in and change your existing post to use [ code ] [ /code ] tags without spaces for pasting output

Mod note: Moving to Multimedia and games

Offline

#3 2020-04-25 12:13:03

Frankyao0621
Member
Registered: 2020-04-25
Posts: 3

Re: HDMI sounds

Thank you so much. Pulse Audio solved my problem.

Last edited by Frankyao0621 (2020-04-25 22:42:06)

Offline

#4 2020-04-25 14:29:49

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,642

Re: HDMI sounds

Frankyao0621 wrote:

What does pulseaudio for? I don't think I am using similar software.

https://wiki.archlinux.org/index.php/PulseAudio


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2020-04-25 22:42:29

Frankyao0621
Member
Registered: 2020-04-25
Posts: 3

Re: HDMI sounds

Thank you so much.
Paulse audio solved my problem.

Offline

Board footer

Powered by FluxBB