[PlanetCCRMA] 2 questions - Alsa OSS MIDI Emulation

Mark Knecht mknecht@controlnet.com
Mon Oct 28 09:18:02 2002


Hi,
   Please excuse me going back to basics here, but there are a few alsa
related questions I wanted to see if I could get answered here. If not, then
I'll post over on the alsa list. thanks. Also, this would just serve to make
sure the Planet instructions are working and I'm following them. This email
is about Alsa MIDI stuff. I'll ask my audio questions in a separate email.
Thanks!

1) OSS MIDI Emulation - I am confused about when Alsa OSS MIDI Emulation
should be working. I'm also unsure how to tell if it even is working. (!!!)

My RH7.3 system is set up using the Planet instructions. I have, to the best
of my knowledge, eliminated all of the basic OSS stuff by following the
instructions on
http://www-ccrma.stanford.edu/planetccrma/software/kernelandsound.html .
Here's my current modules.conf. Does this look correct for Alsa only? No
OSS?

alias parport_lowlevel parport_pc
alias eth0 3c59x
alias usb-controller usb-uhci
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 0.9.0 ---
alias char-major-116 snd
alias snd-card-0 snd-emu10k1
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
options snd snd_major=116 snd_cards_limit=1 snd_device_mode=0666
options snd-emu10k1 snd_index=0
# --- END: Generated by ALSACONF, do not edit. ---

# --- Keep modules from being autocleaned
add options -k snd-card-0

lsmod is less clear to me whether I'm using OSS or not. The Planet
instructions tell me to look at the output of lsmod, and tell me to removing
OSS stuff, but the instructions don't tell me how to recognize an OSS line
from an Alsa line. The first line is 'snd-seq-oss'. Does this look like Alsa
only or is that real OSS stuff still running?

[root@RH73WO root]# lsmod
Module                  Size  Used by    Not tainted
snd-seq-oss            29088   0  (autoclean) (unused)
snd-seq-midi            5408   0  (autoclean)
snd-emu10k1-synth       6528   0
snd-emux-synth         35548   0  [snd-emu10k1-synth]
snd-seq-midi-emul       6860   0  [snd-emux-synth]
snd-seq-virmidi         5204   0  [snd-emux-synth]
snd-seq-midi-event      5696   0  [snd-seq-oss snd-seq-midi snd-seq-virmidi]
snd-seq                52492   2  [snd-seq-oss snd-seq-midi snd-emux-synth
snd-seq-midi-emul snd-seq-virmidi snd-seq-midi-event]
snd-emu10k1            76036   0  [snd-emu10k1-synth]
snd-pcm                89600   0  [snd-emu10k1]
snd-timer              16576   0  [snd-seq snd-pcm]
snd-rawmidi            19520   0  [snd-seq-midi snd-seq-virmidi snd-emu10k1]
snd-hwdep               5824   0  [snd-emu10k1]
snd-util-mem            3360   0  [snd-emux-synth snd-emu10k1]
snd-seq-device          5852   0  [snd-seq-oss snd-seq-midi
snd-emu10k1-synth snd-emux-synth snd-seq snd-emu10k1 snd-rawmidi]
snd-ac97-codec         31472   0  [snd-emu10k1]
snd                    47624   0  [snd-seq-oss snd-seq-midi
snd-emu10k1-synth snd-emux-synth snd-seq-midi-emul snd-seq-virmidi
snd-seq-midi-event snd-seq snd-emu10k1 snd-pcm snd-timer snd-rawmidi
snd-hwdep snd-util-mem snd-seq-device snd-ac97-codec]
soundcore               6372   6  [snd]
autofs                 11364   0  (autoclean) (unused)
3c59x                  28264   1
ide-cd                 30112   0  (autoclean)
cdrom                  31936   0  (autoclean) [ide-cd]
reiserfs              183936   1  (autoclean)
ext3                   66144   1  (autoclean)
jbd                    48240   1  (autoclean) [ext3]
nls_iso8859-1           3488   1  (autoclean)
nls_cp437               5120   1  (autoclean)
vfat                   11868   1  (autoclean)
fat                    36856   0  (autoclean) [vfat]
usb-uhci               25412   0  (unused)
usbcore                73120   1  [usb-uhci]
[root@RH73WO root]#


2) I am able to use SpiralSynthModular live from a MIDI keyboard which seems
to say that Alsa will accept MIDI Data and convert it to OSS for SSM to see.
This works fine. However I am not able to send MIDI from Rosegarden, which
appears to talk to alsa MIDI devices and have SSM respond. Can someone
explain why? Does the OSS emulation stuff in Alsa not work from Alsa back to
OSS when the MIDI data is generated in the PC?

Thanks,
Mark