Hello.
Dave Jones wrote:
Unless someone has 10 sound cards :-) (Sounds bizarre, but I never tire of seeing some of the creative situations our users get themselves into).
Yes, the hardcoded values sucks...
Something like this is probably the only real supportable way to do it though. It would be great if alsa took something like -1 to mean 'never make this default'.
-1 seems to be already reserved for "use first free slot", but maybe it would be nice to reserve some value for the "movable" index. For example, the index -2 can mean "use the first free slot, but move to the next one when some other driver is registering with -1 or explicitly to that slot". Of course I have no idea whether this is possible and acceptable, but maybe the alsa guys can tell.
But until that lands in a module-init-tools update, we're kind of stuck.
Well, they won't take 10 or any other value I guess...