Skip to contentSkip to conversation

MPU401 and native ALSA sequencer device?

DISCUSSION Chris Rankin 2 participants 2 messages Feb 14, 2002 – Feb 15, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

My ALSA sound driver uses an MPU401 for MIDI support, and the OSS emulation module snd-seq-oss works well with the snd-mpu401-uart module. However, there are no native ALSA sequencer devices:

[root@wittsend src]# cat /proc/asound/seq/clients Client info
cur clients : 3
peak clients : 3
max clients : 192

Client   0 : "System" [Kernel]
  Port   0 : "Timer" (Rwe-)
  Port   1 : "Announce" (R-e-)
    Connecting To: 63:0

Client 63 : "OSS sequencer" [Kernel]
Port 0 : "Receiver" (-we-)
Connected From: 0:1
Output pool :

    Pool size          : 1024
    Cells in use       : 0
    Peak cells in use  : 1024
    Alloc success      : 12370
    Alloc failures     : 0

Client 64 : "External MIDI 0" [Kernel]
Port 0 : "MIDI 0-0" (RWeX)

Since the OSS layer plays music, it seems logical to assume that all the hardware bit-twiddling has been done already. I am therefore assuming that I just need to register some native ALSA sequencer device. Could someone point me towards a simple example somewhere, please? I have tried looking at the opl3_seq.c file but it seems to be doing a LOT more than just registering a device.

Cheers,
Chris

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#1 lore raw
Quoted 7 lines

Hi,

My ALSA sound driver uses an MPU401 for MIDI support, and the OSS emulation module snd-seq-oss works well with the snd-mpu401-uart module. However, there are no native ALSA sequencer devices:

Quoted 5 lines

[root@wittsend src]# cat /proc/asound/seq/clients Client info
cur clients : 3
peak clients : 3
max clients : 192

you've just demonstrated the existence of the ALSA sequencer.

Quoted 8 lines

Client 0 : "System" [Kernel]
Port 0 : "Timer" (Rwe-)
Port 1 : "Announce" (R-e-)
Connecting To: 63:0
Client 63 : "OSS sequencer" [Kernel]
Port 0 : "Receiver" (-we-)
Connected From: 0:1
Output pool :

Quoted 8 lines
   Pool size          : 1024
   Cells in use       : 0
   Peak cells in use  : 1024
   Alloc success      : 12370
   Alloc failures     : 0

Client 64 : "External MIDI 0" [Kernel]
Port 0 : "MIDI 0-0" (RWeX)

there is no "ALSA Sequencer" as a specific client. each client listed is a client of the ALSA sequencer. client 63 is a special client that handles OSS sequencer data.

Quoted 8 lines

Since the OSS layer plays music, it seems logical to assume that all the hardware bit-twiddling has been done already. I am therefore assuming that I just need to register some native ALSA sequencer device. Could someone point me towards a simple example somewhere, please? I have tried looking at the opl3_seq.c file but it seems to be doing a LOT more than just registering a device.

what is it that you want to do? if you want to send midi out of the MPU401 external midi port, just connect up a program like pmidi to client 64, port 0.

--p

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel