PulseAudio: Is it possible to have two sinks for one card multiple ports? [Solved]

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
Post Reply
lmuserx4849

PulseAudio: Is it possible to have two sinks for one card multiple ports? [Solved]

Post by lmuserx4849 » Fri Feb 23, 2018 10:12 pm

Just want to confirm that this cannot be done in PulseAudio.

I have multiple monitors connected to a single video card's Display Ports (radeon rx480).

When I view sinks, via pacmd list-sinks, it only lists one sink. In pavucontrol > configuration, I can see Profiles for HDMI 5 and 6. I can select one and hear the sound from one monitor, select the other and hear the sound from the other monitor. I'd like to hear the sound from both monitors at the same time.

At the end of the file, /usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf, there is an example of combining multiple-sink profiles.

But it looks like I only have one sink. Is it possible to have two sinks for one card with multiple ports?
Last edited by lmuserx4849 on Tue Feb 27, 2018 2:18 am, edited 1 time in total.

Hoser Rob
Level 12
Level 12
Posts: 4114
Joined: Sat Dec 15, 2012 8:57 am

Re: PulseAudio: Is it possible to have two sinks for one card multiple ports?

Post by Hoser Rob » Sun Feb 25, 2018 11:40 am

There's a GUI program whose package name is paprefs which apparently does this but I haven't tried it.

I'm on my Mint 17.3 netbook at the moment and I just checked the repos with apt-cache policy paprefs. It's there but I don't know if it's in the 18.x repos. It's an old app and I don't know how well it's still maintained. And for something like this I'd definitely want tested repo software.

lmuserx4849

Re: PulseAudio: Is it possible to have two sinks for one card multiple ports?

Post by lmuserx4849 » Sun Feb 25, 2018 7:35 pm

I saw paprefs, but it didn't work for me. I think because I have 1 card (radeon rx480) with multiple ports, and the monitors, with integrated speakers, are plugged into Display Ports on that card.

In paprefs, I checked the "Add virtual output device for simultaneous output on all local sound cards" checkbox, but when I open Sound Preferences > Output, I see:

Sound Preferences > Output:
_ HDA ATI HDI Digital Stero (HDMI 5) Stero

_ Simulataneous output to HDA ATI HDI Digital Stero (HDMI 5) Stero
If I go to pavucontrol > Configuration, there are 2 profiles, "HDA ATI HDMI" and "Built-In Audio". The "Built-In Audio" is off. In the "HDA ATI HDMI" dropdown, I can select "Digital Stero (HDMI 5) Output" or "Digital Stero (HDMI 6) Output". If I change the dropdown from HDMI 5 to HDMI 6, the Sound Preference > Output changes from 5 to 6.

How do I get HDMI 5 and 6 at the same time....hhhhhhmmmmm, I'm not sure how this should be phrased, but I think I need an HDMI 5 and HDMI 6 profile, and then those combined for simultaneous output (????)

I think the answer might be here, How to output unique audio to multiple ports/profiles of a PulseAudio card?. According to this, "You are creating different audio sinks on the same card.". It looks really messy. And udev too !!!

lmuserx4849

Re: PulseAudio: Is it possible to have two sinks for one card multiple ports?

Post by lmuserx4849 » Mon Feb 26, 2018 6:14 pm

It works. Sound is coming out of both monitor speakers at the same time, which are connected to the rx480 card.

And paprefs was needed :-)

The lines below were added to "/etc/pulse/default.pa" aplay -l shows the hardware device names.

Code: Select all

load-module module-alsa-sink device="hw:1,10" sink_name=radeonrx480_hdmi_4
load-module module-alsa-sink device="hw:1,11" sink_name=radeonrx480_hdmi_5
load-module module-combine-sink sink_name=hdmi_all_radeonrx480_digital slaves=radeonrx480_hdmi_4,radeonrx480_hdmi_5
set-default-sink hdmi_all_radeonrx480_digital
paprefs updates the file "$HOME/.gconf/system/pulseaudio/modules/combine/%gconf.xml", but how it is used by PA is unknown. :?
If interested see: https://cgit.freedesktop.org/pulseaudio ... paprefs.cc and look for writeToGConfCombine.

This link helped: https://bbs.archlinux.org/viewtopic.php?id=118026

Post Reply

Return to “Sound, Multimedia, & Codecs”