Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikechau/ffb3277dedbf48895878b9f3d86e1bac to your computer and use it in GitHub Desktop.
Save mikechau/ffb3277dedbf48895878b9f3d86e1bac to your computer and use it in GitHub Desktop.
Audinst HUD-mx2 workaround for pulseaudio

Intro

The first alternate setting reported by Audinst HUD-mx2 is an AC-3 setting (see lsusb -v output). It seems that pulseaudio always picks the first alternate setting by default, so we need to manually point it to the right PCM device.

pulseaudio profile

/etc/pulse/profile-HUDmx2.conf contents:

# http://mailman.alsa-project.org/pipermail/alsa-devel/2013-July/063676.html

[General]
auto-profiles = yes

[Mapping analog-stereo]
device-strings = front:%f,1 hw:%f,1
channel-map = left,right
paths-output = analog-output
priority = 10

[Mapping iec958-stereo]
device-strings = iec958:%f,1 hw:%f,1
channel-map = left,right
paths-output = iec958-stereo-output
priority = 5

udev rule

/etc/udev/rules.d/95-sound-HUDmx2.rules contents:

# http://mailman.alsa-project.org/pipermail/alsa-devel/2013-July/063676.html
SUBSYSTEM=="sound", KERNEL=="card*", ENV{ID_MODEL}=="Audinst_HUD-mx2", ENV{PULSE_PROFILE_SET}="/etc/pulse/profile-HUDmx2.conf"

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