[Pkg-alsa-devel] Bug#246570: alsa-base: missing modprobe/modutils lines for OSS MIDI support

Darren Salt Darren Salt <linux@youmustbejoking.demon.co.uk>, 246570@bugs.debian.org
Fri, 30 Apr 2004 02:15:13 +0100


For some reason, I was thinking that snd_emu10k1_synth was being
automatically loaded...

Tests show that it's enough to add
  alias snd-emu10k1 snd-emu10k1-synth
to alsa-base.modprobe.d. However, that won't work properly if
snd_emu10k1_synth.ko is missing: the following two lines work here.

  install snd-emu10k1 modprobe -i snd-emu10k1 && modprobe -q snd-emu10k1-synth
  remove snd-emu10k1 if lsmod | grep -q snd_emu10k1_synth; then modprobe -r snd-emu10k1-synth; fi; modprobe -i -r snd-emu10k1

(snd_seq will be loaded since snd_emu10k1_synth is dependent upon it via
snd_emux_synth; the previous patch will cause this to trigger the loading of
snd_seq_oss. Which is exactly what I want here.)

I'd also supply lines for alsa-base.modutils, but I'd have to configure,
compile and install a 2.4.x kernel first. However, I don't think that it'll
be that different; you might even be able to get away with something like
'above snd-emu10k1 snd-emu10k1-synth' :-)

Similar rules may be useful for some other cards, e.g. those with OPL3 or
OPL4 synths.

-- 
| Darren Salt   | linux (or ds) at | nr. Ashington,
| woody, sarge, | youmustbejoking  | Northumberland
| RISC OS       | demon co uk      | Toon Army
|   <URL:http://www.youmustbejoking.demon.co.uk/> (PGP 2.6, GPG keys)

Never do today what you can put off until tomorrow.