Device references for MIDI sub-devices
I'm nearly at the end of the development of my serial port driver for the Opcode 64X and am testing it with various applications. My current problem / question is - How do I refer to the different sub-devices shown below?
linux:/home/billa # aconnect -lo
client 72: 'uart16550 MIDI #0' [type=kernel]
0 'uart16550 MIDI #0-0'
1 'uart16550 MIDI #0-1'
2 'uart16550 MIDI #0-2'
3 'uart16550 MIDI #0-3'linux:/home/billa # amidi -l
Device Name
hw:1,0 uart16550 MIDI #0 (4 subdevices)
Rosegarden can see them and speak to each but JSynthLib will only make contact with /dev/snd/midiC1D0 which is 0 'uart16550 MIDI #0-0' or the first output port on the device. Are there ways of refering to the other ports using /dev/snd/XXXXXX?
Bill
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
Quoted 5 lines · Bill Adair
I'm nearly at the end of the development of my serial port driver for the Opcode 64X and am testing it with various applications. My current problem / question is - How do I refer to the different sub-devices shown below?
Quoted 7 lines
linux:/home/billa # amidi -l
Device Name
hw:1,0 uart16550 MIDI #0 (4 subdevices)JSynthLib will only make contact with
/dev/snd/midiC1D0which is 0 'uart16550 MIDI #0-0' or the first output port on the device. Are there ways of refering to the other ports using/dev/snd/XXXXXX?
The device nodes in /dev/snd/ are internal to ALSA and shouldn't be used directly. The ALSA device names would be "hw:1,0,0", "hw:1,0,1" etc.
If a program doesn't support ALSA, use the OSS device file /dev/midi0x and /dev/amidi0x. However, the OSS emulation doesn't support selecting subdevices. As a workaround, load the snd-virmidi driver and connect its ports to the device's ports.
HTH
Clemens
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click