Skip to content

Instantly share code, notes, and snippets.

@coolacid
Created January 24, 2015 01:18
Show Gist options
  • Save coolacid/025e0bd1370d5489d9e4 to your computer and use it in GitHub Desktop.
Save coolacid/025e0bd1370d5489d9e4 to your computer and use it in GitHub Desktop.
Set description of a USB sound card
This expects that you might have multiple USB sound cards that are the same type like I have.
Start out by finding the ATTRS{devpath} value:
udevadm info --attribute-walk /dev/snd/by-id/[DEVICE] | grep devpath | grep ATTRS | head -1
Create a udev rules file in /etc/udev/rules.d (such as 98-audiocards.rules) and add a line matching the devpath from above:
SUBSYSTEMS=="usb", ATTRS{devpath}=="2.1.1", ENV{SOUND_DESCRIPTION}="Mixer"
You may also want to tweak, SOUND_FORM_FACTOR and PULSE_PROFILE_SET - Google is your friend here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment