/etc/pulse/profile-sets/HUDmx2.conf
contents:
# http://mailman.alsa-project.org/pipermail/alsa-devel/2013-July/063676.html
# https://www.freedesktop.org/wiki/Software/PulseAudio/Backends/ALSA/Profiles/
[General]
auto-profiles = yes
[Mapping analog-stereo]
device-strings = hw:%f,1,0
channel-map = left,right
paths-output = analog-output
priority = 10
[Mapping iec958-stereo]
device-strings = hw:%f,1,0
channel-map = left,right
paths-output = iec958-stereo-output
priority = 5
/etc/udev/rules.d/91-pulseaudio-custom-profiles.rules
contents:
# https://www.freedesktop.org/wiki/Software/PulseAudio/Backends/ALSA/Profiles/
SUBSYSTEM!="sound", GOTO="pulseaudio_end"
ACTION!="change", GOTO="pulseaudio_end"
KERNEL!="card*", GOTO="pulseaudio_end"
SUBSYSTEMS=="usb", ENV{ID_MODEL}=="Audinst_HUD-mx2", ENV{PULSE_PROFILE_SET}="/etc/pulse/profile-sets/HUDmx2.conf"
LABEL="pulseaudio_end"
$ sudo udevadm control --reload
$ sudo udevadm trigger --subsystem-match=sound
$ pulseaudio --kill