HDMI sound device is not detected

Hi.
I’ve met some trouble when I tried to use hdmi sound on my tumbleweed.
HDMI sound device is listed in aplay:


strider@strider-home:~> aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC295 Analog [ALC295 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
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

And I can make it play by typing


strider@strider-home:~> aplay -D plughw:0,3 /usr/share/sounds/alsa/test.wav

Bu it does not appear in multimedia settings, nor in pavucontrol, so I can’t just switch to use it.

Here is my alsa info: http://www.alsa-project.org/db/?f=f152c6f26e5fa68e42d048f86fa70698f119a58d

Are you sure that you have the correct profile configured?
pavucontrol > Configuration

Check the available profiles and currently configured profile with

pacmd list|grep output:

Thak you, man! I’ve checked profiles and you’re right, I haven’t chosen right profile for hdmi.
The problem is that I got used to see all available profiles enabled when configuring sound, so with pavucontrol I could always just choose preferable source for my application(say chrome).
Choosing single profile manually is not that comfortable. How could I fix this behabiour?

As I suspected :slight_smile:

The problem is that I got used to see all available profiles enabled when configuring sound, so with pavucontrol I could always just choose preferable source for my application(say chrome).
Choosing single profile manually is not that comfortable. How could I fix this behabiour?

I know PulseAudio is very configurable, but my sound requirements are simple (laptop with internal speakers), so I don’t have a lot of experience with configuring it. Some reading may be needed…

https://wiki.archlinux.org/index.php/PulseAudio#Configuration_files
https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#Simultaneous_output_to_multiple_sinks_on_the_same_sound_card_not_working

So from that we can see that “HDMI 0” is the HDMI sound device.

Just what does appear in pavucontrol ? Can you give us a screen print of the options ?

Its been some time (few years ? ) since I provided edits to someone to ensure HDMI could be seen in pulse, and I don’t recall how now and before spending time to figure out again how to do that, it would be good to ensure first there is not an easier way.

Also, looking at your mixer settings from the diagnostic script, I note:


Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]

where I think IEC958 may represent your HDMI < unsure > so you may wish to switch that master playback from OFF to ON.

Could you explain what you mean by this ? Are you saying it works now, but that each time you restart you need to change the profile ?

This was about the profile the OP had selected, and therefore the output sinks available to them AFAIU. The easiest way to get a list of PA profiles and what is currently selected is to run

pacmd list|grep output:

but like you I’m not sure what the OP meant with their comment about ‘Choosing single profile manually is not that comfortable.’

Thanks again or your attention, I really appreciate your help.
Guys, sorry for the twist of the tongue, I’ll try to explain it in example.
Here is how my sound control(pavucontrol) looks like on my office desktop:
https://www.dropbox.com/s/gtpbncheapd93td/Spectacle.fo3820.png?dl=0https://photos-6.dropbox.com/t/2/AACBgnnhQ6GMOqjP57QG-LtM8eXloS9EKXQvu45QC1kyQw/12/44978497/png/32x32/3/1510934400/0/2/Spectacle.fo3820.png/EKebuCIYgSYgBygH/6h0sy83UaLPx-yVFFftQQNmnFxzSI0R13Jz-miPjFTk?dl=0&size=2048x1536&size_mode=3
Here I can see all available devices at the same time. And on the “Playback” tab I can switch active channel for single active applications.
And this is how profiles look like:
https://photos-5.dropbox.com/t/2/AABY3ehkZIvFQJworst1o2UQ9UwgCrQNfKryDKzyyy_oZA/12/44978497/png/32x32/3/1510934400/0/2/Spectacle.fB5129.png/EKebuCIYhSYgBygH/aCf9k2N9L_fVvfQFpwlGLWrdF7HEwaIYsT0U4vHl5FI?dl=0&size=2048x1536&size_mode=3
I am able to configure HDMI and “built-in audio” separately.
For my laptop it’s just one entry, which I can switch from one profile(built-in) to another (HDMI).
I just cant figure out for myself how this works. Is it because of laptop soundcard, which always works for single output channel at a time? Or is it somehow possible to have separate control on separate output channels?

Pics lost somewhere. Here, this is how desktop sound config looks like:
http://imageshack.com/a/img923/1411/SeApVP.png
http://imageshack.com/a/img923/7837/fAXsoX.png
And this is laptop:
http://imageshack.com/a/img922/5866/jUW90w.png
http://imageshack.com/a/img923/227/b9YOid.png

That first image illustrates HDMI 2 being selected. Yet the konsole test you performed, which you claimed gave you sound, had hw:0,3 (which is HDMI 0 ) selected. Are you certain you have the correct HDMI device selected in pulse audio ?

Sorry for confusing you, but the first pic with hdmi selected is example of how things work fine at my desktop(there is no issues with it). Last two pics show my laptop, which I really have trouble with -) and there is no “choose whatever channel you want”, it is just or/or - like “here, man, you got this one possibility to output your sound, but you should chose where it goes - hdmi or built-in analogue stereo”. This is the thing I am trying to solve at the moment -)

This wiki page might be helpful to you here…
https://wiki.archlinux.org/index.php/PulseAudio/Examples#Simultaneous_HDMI_and_analog_output

The key to a configuration like this is to understand that whatever is selected in pavucontrol under Configuration > Internal Audio is the default device. Load pavucontrol > Configuration and select HDMI as the profile.
To setup the analog device as a secondary source, add the following to the /etc/pulse/default.pa configuration at the beginning, before any other modules are loaded:

Some further experimentation may be necessary for your particular hardware.

Other threads on the same topic…

https://forums.opensuse.org/showthread.php/461219-Sound-to-multiple-output-devices-with-pulse?p=2352155#post2352155

Further to deano_ferrari’s post, and based on what you provided earlier, you should specifically add to the /etc/pulse/default.pa :

### Load analog device
load-module module-alsa-sink device=hw:0,3
load-module module-combine-sink sink_name=combined
set-default-sink combined

then reboot and test (using pavucontrol to configure). That HDMI should then appear in pavaucontrol.