Hello,
I can't get native alsa midi clients to work with my setup (SB Live! +
external keyboard + ALSA 0.9.0beta10 + 2.4.16pre1).
OSS emulation works fine though, for both internal and external MIDI, as
verified with "playmidi -D 0 -e" and "playmidi -a"
Here's what goes wrong:
$ pmidi -l
Port Client name Port name
$ aconnect -l -i -o
client 0: 'System' [type=kernel]
0 'Timer '
1 'Announce '
Connecting To: 63:0
client 64: 'External MIDI 0' [type=kernel]
0 'MIDI 0-0 '
client 65: 'Emu10k1 WaveTable' [type=kernel]
0 'Emu10k1 Port 0 '
1 'Emu10k1 Port 1 '
2 'Emu10k1 Port 2 '
3 'Emu10k1 Port 3 '
$ pmidi -p 64:0
Error creating port Inappropriate ioctl for device
Could not connect to port 64:0
$ strace pmidi -p 64:0
[...]
open("/dev/snd/seq", O_RDWR) = 3
ioctl(3, 0x80045300, 0xbffffbc8) = 0
ioctl(3, 0x80045301, 0xbffffbc4) = 0
brk(0x8052000) = 0x8052000
ioctl(3, 0xc08c5332, 0xbffffb40) = 0
ioctl(3, 0xc0cc5320, 0xbffffaf0) = -1 ENOTTY (Inappropriate ioctl for
device)
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 6), ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x40016000
write(1, "Error creating port Inappropriat"..., 51Error creating port
Inappropriate ioctl for device
) = 51
ioctl(3, 0x40345330, 0xbffffba8) = -1 ENOTTY (Inappropriate ioctl for
device)
write(2, "Could not connect to port 64:0\n", 31Could not connect to port 64:0
) = 31
ioctl(3, 0x408c5333, 0xbffffb60) = 0
close(3) = 0
munmap(0x40016000, 4096) = 0
_exit(1) = ?
I tried "dd if=/dev/snd/midiC0D0 bs=1" , it works, I can see different input
when sending midi events from the external midi keyboard.
My modules.conf is fairly standard, I think:
alias char-major-116 snd
alias char-major-14 soundcore
options snd snd_major=116 snd_cards_limit=2 snd_device_mode=0666
snd_device_gid=29 snd_device_uid=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
alias snd-card-0 snd-card-emu10k1
alias sound-slot-0 snd-card-0
alias sound snd-card-emu10k1
options snd-card-emu10k1 snd_extin=0x0003 snd_extout=0x1f03 snd_seq_ports=4
$ lsmod | grep snd
snd-seq-oss 23392 0 (autoclean) (unused)
snd-synth-emu10k1 3776 0 (unused)
snd-synth-emux 23424 0 [snd-synth-emu10k1]
snd-seq-midi-emul 4416 0 [snd-synth-emux]
snd-seq-virmidi 2584 0 [snd-synth-emux]
snd-seq-midi 3136 0 (autoclean)
snd-seq-midi-event 2984 0 (autoclean) [snd-seq-oss snd-seq-virmidi
snd-seq-midi]
snd-seq 38156 2 (autoclean) [snd-seq-oss snd-synth-emux
snd-seq-midi-emul snd-seq-virmidi snd-seq-midi snd-seq-midi-event]
snd-card-emu10k1 1952 0 (autoclean)
snd-emu10k1 49984 0 (autoclean) [snd-synth-emu10k1
snd-card-emu10k1]
snd-ac97-codec 23168 0 (autoclean) [snd-emu10k1]
snd-pcm 49760 0 (autoclean) [snd-emu10k1]
snd-timer 10816 0 (autoclean) [snd-seq snd-pcm]
snd-rawmidi 12928 0 (autoclean) [snd-seq-virmidi snd-seq-midi
snd-emu10k1]
snd-util-mem 1232 0 (autoclean) [snd-synth-emux snd-emu10k1]
snd-hwdep 3584 0 (autoclean) [snd-emu10k1]
snd-seq-device 3808 0 (autoclean) [snd-seq-oss snd-synth-emu10k1
snd-synth-emux snd-seq-midi snd-seq snd-card-emu10k1 snd-rawmidi]
snd 25768 3 [snd-seq-oss snd-synth-emux snd-seq-virmidi
snd-seq-midi snd-seq-midi-event snd-seq snd-card-emu10k1 snd-emu10k1
snd-ac97-codec snd-pcm snd-timer snd-rawmidi snd-util-mem snd-hwdep
snd-seq-device]
soundcore 3684 6 [snd]
I'd be very grateful if someone could give me a hint about that !
I have another problem: after removing all snd-* modules, I can't seem to
unload snd (and therefore soundcore), it says it's busy even though I'm
pretty sure no process is using sound. Strange but annoying.
thanks for any help
--
-----------------------------------------------
Renaud Guerin
[EMAIL PROTECTED] - [EMAIL PROTECTED]
G�nie des Syst�mes d'Information et de D�cision
Universit� de Technologie de Troyes (France)
-----------------------------------------------
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user