[LAU] midi sub-devices in OSS emulation

Clemens Ladisch clemens at ladisch.de
Mon Apr 9 18:49:08 CEST 2018

Brent Busby wrote:
> Is there a way to access individual subdevices through the OSS emulation?

Short answer: no.
Long answer: opening a device will open the first available subdevice.

> What is the difference between midi, dmmidi, amidi, and admmidi?

/dev/midiX and /dev/dmmidiX are the same.
/dev/amidiX and /dev/admmidiX are the same.

/dev/midiX is MIDI device 0 of card X.
/dev/amidiX is MIDI device 1 of card X.

You can change the OSS device numbers with the midi_map and amidi_map options
of the snd-rawmidi module, with one number per card.  E.g., to let /dev/amidi4
point to device 2, use "options snd-rawmidi amidi_map=1,1,1,1,2".


More information about the Linux-audio-user mailing list