All of lore.kernel.org
 help / color / mirror / Atom feed
* Device references for MIDI sub-devices
@ 2005-02-24 10:09 Bill Adair
  2005-02-24 12:28 ` Clemens Ladisch
  0 siblings, 1 reply; 2+ messages in thread
From: Bill Adair @ 2005-02-24 10:09 UTC (permalink / raw)
  To: alsa-devel

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_id\x14396&op=click

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Device references for MIDI sub-devices
  2005-02-24 10:09 Device references for MIDI sub-devices Bill Adair
@ 2005-02-24 12:28 ` Clemens Ladisch
  0 siblings, 0 replies; 2+ messages in thread
From: Clemens Ladisch @ 2005-02-24 12:28 UTC (permalink / raw)
  To: Bill Adair; +Cc: alsa-devel

Bill Adair wrote:
> 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 # amidi -l
> Device    Name
> hw:1,0    uart16550 MIDI #0 (4 subdevices)
>
> 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?

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-24 12:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-24 10:09 Device references for MIDI sub-devices Bill Adair
2005-02-24 12:28 ` Clemens Ladisch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.