Issue with splitting one sink speakers/headphones/hdmi to speakers/headphones and hdmi indepentently
Hello, I'am using Acer Aspire v3-517g which on fresh linux install has joint speakers/headphones/hdmi into one sink. Since i wanted to play firefox on hdmi and the rest on speakers/headphones i used config to split the device into 2
/etc/udev/rules.d/91-pulseaudio-intel.rules
# Custom Profile for onboard Intel 8086:1e20
SUBSYSTEM!="sound", GOTO="xpulseaudio_end"
ACTION!="change", GOTO="xpulseaudio_end"
KERNEL!="card*", GOTO="xpulseaudio_end"
SUBSYSTEMS=="pci", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x1e20", ENV{PULSE_PROFILE_SET}="intel-hdmi+analog.conf"
LABEL="xpulseaudio_end"
/usr/share/pulseaudio/alsa-mixer/profile-sets/intel-hdmi+analog.conf
[General]
; # Instead of defining all profiles manually, autogenerate
; # them by combining every input mapping with every output mapping
auto-profiles = yes
[Mapping analog-stereo]
device-strings = front:%f
channel-map = left,right
paths-output = analog-output-speaker analog-output-headphones
paths-input = analog-input-internal-mic analog-input-headset-mic
priority = 15
[Mapping hdmi-stereo]
description = Digital Stereo (HDMI)
device-strings = hdmi:%f
paths-output = hdmi-output-0
channel-map = left,right
priority = 9
direction = output
[Profile output:analog-stereo+output:hdmi-stereo+input:analog-stereo]
description = Analog Stereo + Digital Stereo (HDMI) + Analog Stereo Input
output-mappings = analog-stereo hdmi-stereo
input-mappings = analog-stereo
[Profile output:analog-stereo+output:hdmi-stereo]
description = Analog Stereo + Digital Stereo (HDMI)
output-mappings = analog-stereo hdmi-stereo
The result is that i can successfully split for example firefox to use hdmi and the rest to ouput on speakers/headphones, but in the moment i touch jack port (connect/disconnect headphones) sound outputting for HDMI crashes and doesnt come back until i restart pulseaudio with pulseaudio -k and reload app that is assing to output sound with HDMI (it is not redirected to speakers/headphones, it completely disappears)
more info from topic i made on linux mint forum: https://forums.linuxmint.com/viewtopic.php?f=48&t=333726&sid=e9f7c04bccb652916f41230f00c62dff