This script will fix the order that sound card modules are loaded at boot-up. When executed it set the order to that of the current boot-up - as prescribed by the file-
/proc/asound/modules
for example,

Code:

0 snd_intel8x0
1 snd_ca0106

It takes this data and adds appropriate 'options' commands to-
/etc/modprobe.d/alsa-base.conf
for example

Excellent work! I feel this is an important issue and looks like you have made a major breakthrough. I will do some testing on my various machines over the next day or two and report back.

My oldest machine is the most interesting case. That one has a USB soundcard as the second one. Looking at /proc/asound/modules in that I see that 4 modules are loaded:-

0 snd_intel8x0
1 snd_mpu401
2 snd_intel8x0m
3 snd_usb_audio

In this case index 2 is the dial-up modem, but I am not sure what snd_mpu401 is. Looks like something to do with MIDI, but if something like that were to grab index 0 at boot then even with no extra soundcards I'm sure my sound would be gone. This module does not show up at all as a card in the list in Multiple Sound Card Wizard so I get one random number missing and the others randomly juggled around. The script will hopefully lock these numbers down.

I am not sure what the best final implementation of something like this should be. Maybe a separate tool, built into Multiple Sound Card Wizard or built into Woof since it may be advantageous to run it on all Puppies regardless of additional soundcards?

If you are taking the order from the list in /proc/asound/modules then I suppose you need to be sure that they are arranged in a satisfactory order before writing the lines to /etc/modprobe.d/alsa-base.conf

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum