Centos 7 and HDMI Audio?

Issues related to hardware problems
Post Reply
Raveolution
Posts: 15
Joined: 2016/04/10 08:39:26

Centos 7 and HDMI Audio?

Post by Raveolution » 2018/11/12 02:31:52

I am having trouble getting HDMI audio to work with mplayer, smplayer and vlc.

In Phonon I can get sound by testing the Right and Left speakers (see here: https://i.imgur.com/nSurr4d.jpg) so it does connect on one level, but when I pick the HDMI audio in the video players it won't give any sound (see here: https://i.imgur.com/h6Z8r4j.jpg).

I tried "mplayer -ao alsa:device=hw1.7" and "mplayer -ao alsa:device=hw0.7" and either way I get
[AO_ALSA] alsa-lib: pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM 1,7
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa:device=1.7'
Could not open/initialize audio device -> no sound.
My aplay output is here:
https://pastebin.com/CpDXDpGJ

What am I doing wrong here? Thanks!

bonedome
Posts: 51
Joined: 2017/04/22 08:11:04

Re: Centos 7 and HDMI Audio?

Post by bonedome » 2018/11/16 15:21:19

Hello
I don't think you're doing anything wrong, HDMI audio stopped working (for me) about 2 kernels ago and it would appear absolutely no one uses HDMI audio or is that bothered.
I sometimes plug my laptop into my tv to watch a video and I've tried everything I can think of to get it to work like it used to, to no avail.
I just use the tinny laptop speakers.
I used to use pavu control to choose audio output or from the command line

Code: Select all

pactl set-card-profile 0 output:hdmi-stereo+input:analog-stereo
I've tried alsa/aplay commands aswell, makes no difference.
Like you I get the speaker test to work but that's it.
There's probably an easy fix but I can't find it.

Raveolution
Posts: 15
Joined: 2016/04/10 08:39:26

Re: Centos 7 and HDMI Audio?

Post by Raveolution » 2018/11/17 18:45:27

bonedome wrote:
2018/11/16 15:21:19
Hello
I don't think you're doing anything wrong, HDMI audio stopped working (for me) about 2 kernels ago and it would appear absolutely no one uses HDMI audio or is that bothered.
I sometimes plug my laptop into my tv to watch a video and I've tried everything I can think of to get it to work like it used to, to no avail.
I just use the tinny laptop speakers.
I used to use pavu control to choose audio output or from the command line

Code: Select all

pactl set-card-profile 0 output:hdmi-stereo+input:analog-stereo
I've tried alsa/aplay commands aswell, makes no difference.
Like you I get the speaker test to work but that's it.
There's probably an easy fix but I can't find it.
Hello thanks for your reply! I didn't get a response using that pactl command ("Failure: No such entity") but I will fiddle with it more to get results.

The audio signal is coming to the speakers during the test, so I assume that whatever device it's using then, will play sound through mplayer/mpv/vlc if I can get the program to speak to the right device.

I believe I just need to know that device.

eqbalhossain64
Posts: 2
Joined: 2018/11/18 10:10:24

Re: Centos 7 and HDMI Audio?

Post by eqbalhossain64 » 2018/11/18 11:00:54

Raveolution wrote:
2018/11/12 02:31:52
I am having trouble getting HDMI audio to work with mplayer, smplayer and vlc.

In Phonon I can get sound by testing the Right and Left speakers (see here: https://i.imgur.com/nSurr4d.jpg) so it does connect on one level, but when I pick the HDMI audio in the video players it won't give any sound (see here: https://i.imgur.com/h6Z8r4j.jpg).

I tried "mplayer -ao alsa:device=hw1.7" and "mplayer -ao alsa:device=hw0.7" and either way I get
[AO_ALSA] alsa-lib: pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM 1,7
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa:device=1.7'
Could not open/initialize audio device -> no sound.
My aplay output is here:
https://pastebin.com/CpDXDpGJ

What am I doing wrong here? Thanks!
No....
Contact me. My skype address: eqbal.hossain4
feel free knock me

bonedome
Posts: 51
Joined: 2017/04/22 08:11:04

Re: Centos 7 and HDMI Audio?

Post by bonedome » 2018/11/18 11:27:35

Hello
after a bit, well a lot really, of experimenting I wondered if hdmi was simply muted, the command

Code: Select all

pactl set-sink-mute 0 0
(unmute card 0) did nothing, but tried the pulseaudio gui pavucontrol and under Output Devices it was indeed muted, I guess mute is default as I haven't changed anything.
There are 2 pavucontrol packages available pavucontrol-qt from epel and pavucontrol from nux repo, I'm guessing they just look different.
I don't know what actual command pavucontrol is using but I'm good to go.
Hope this is the solution for you too.

Post Reply