I figured it out myself. I was wrong to assume the "device" option would need a device name. Instead, a source (or sink, depending what you are trying to achive) name is needed. This for example gives me ALSA access to an individual microphone handled by pulseaudio:
pcm.pulse_mic1 {
type pulse
device alsa_input.usb-0d8c_C-Media_USB_Audio_Device-00-Device.analog-mono
}
ctl.pulse_mic1 {
type pulse
device alsa_input.usb-0d8c_C-Media_USB_Audio_Device-00-Device.analog-mono
}
I just managed to configure exactly this thanks to the instructions in the ArchLinux wiki :
Set the one sink - HDMI - in pavucontrol/Configuration, and the other - analog output - you specify in default.pa
:
load-module module-alsa-sink device=hw:0,0
load-module module-combine-sink sink_name=combined
set-default-sink combined
Maybe you were missing the last two lines?
Addendum: This is OK to add the analog output to HDMI, but what if you want it the other way around? (I want to keep analog input, Pulse calls that "duplex"...) Unfortunately, load-module module-alsa-sink device=hw:0,3
did not work to add HDMI output to Pulse's "Analog Stereo Duplex" configuration. Pulse would start, but no HDMI output.
I compared the output of pacmd list-sinks
in the two situations. When I added device=hw:0,3
, that one would show up without ports. When HDMI output was chosen in pavucontrol, there would be ports. Looking at the output details, I came up with device=hdmi:0.
Choose "Analog Stereo Duplex" as your pavucontrol configuration, and add to default.pa
:
load-module module-alsa-sink device=hdmi:0
load-module module-combine-sink sink_name=combined
set-default-sink combined
Works like a charm. I keep my microphone input, and on pavucontrol/Output Devices I have all options for analog output and for HDMI.
Best Answer
The solution I found was to install the
libflashsupport-pulse
package from AUR and restart my computer.