Skip to content

Instantly share code, notes, and snippets.

@puleglot
Last active January 8, 2020 00:32
Show Gist options
  • Save puleglot/8a98e784c4b4b103f09a to your computer and use it in GitHub Desktop.
Save puleglot/8a98e784c4b4b103f09a to your computer and use it in GitHub Desktop.
Audinst HUD-mx2 workaround for pulseaudio

Since linux 5.4 this workaround is not needed anymore!!!

https://github.com/torvalds/linux/commit/f7f530181461aaf6afa0b3f0be4d239dea410896#diff-9e99666ef6b83c4e4e4974c6a7755d29

pulseaudio profile

/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

udev rule

/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"

reload configuration

$ sudo udevadm control --reload
$ sudo udevadm trigger --subsystem-match=sound
$ pulseaudio --kill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment