Skip to content

Instantly share code, notes, and snippets.

View shakasan's full-sized avatar
:octocat:

Francois B. (Makoto) shakasan

:octocat:
View GitHub Profile
@Aishou
Aishou / 95-static-soundcard-name.rules
Created August 31, 2018 12:47 — forked from mpaolino/95-static-soundcard-name.rules
udev rules file to statically name sound cards in alsa and pulseaudio with the same vendor, product and serial id.
# This is a sample ude rules file to staticaly assign names to sound cards (in this case USB) that have the exact
# same product, vendor and serial number. This normally creates card names in pulseaudio that are a combination of this
# attributes plus an auto incrementing numbering, the problem is that the cards will get their names depending on the
# order the cards are plugged in.
# This udev rules fixes that issues by assigning a name to any card that is plugged in the same USB port, I don't know
# any other way.
#
# Name this file something like /etc/udev/rules.d/95-identical-cards-names.rules
# The list of cards should be changed to match your system, the only lines you are supposed to change/remove/add
# are DEVPATHs, look a the comments comments to see where to get the soundcard path.