that's an ALSA configuration issue and can be fixed for good at the kernel module loading time. ie. something that you can make quite deterministically at /etc/modprobe.conf or /etc/modprobe.d or else depending on your distro.
just make sure each one of the ALSA kernel modules get a proper index number when modprobe'd and from that moment after it will get always the same hw:number forever ;)
for example, if you wish that your USB soundcard to always always addressed as hw:2, no matter which boot you're at, you should make for pre-loading the corresponding kernel module like this:
modprobe snd-usb-audio index=2
or, as should be inscribed in modprobe.conf style:
that's an ALSA configuration issue and can be fixed for good at the kernel module loading time. ie. something that you can make quite deterministically at
/etc/modprobe.conf
or/etc/modprobe.d
or else depending on your distro.just make sure each one of the ALSA kernel modules get a proper
index
number when modprobe'd and from that moment after it will get always the samehw:
number forever ;)for example, if you wish that your USB soundcard to always always addressed as
hw:2
, no matter which boot you're at, you should make for pre-loading the corresponding kernel module like this:modprobe snd-usb-audio index=2
or, as should be inscribed in modprobe.conf style:
options snd-usb-audio index=2
cheers