All of lore.kernel.org
 help / color / mirror / Atom feed
* Adding new (old) SNDRV_SEQ_PORT_TYPE_MIDI_* defines
@ 2015-03-13  0:36 Adam Goode
  2015-03-13  7:53 ` Takashi Iwai
  2015-03-13  8:07 ` Clemens Ladisch
  0 siblings, 2 replies; 4+ messages in thread
From: Adam Goode @ 2015-03-13  0:36 UTC (permalink / raw)
  To: alsa-devel

Hi,

I found the /* TODO: read port flags from descriptors */ in
sound/usb/midi.c and was thinking about what to do to implement this.

The first thing to do would be to ensure that all the flags from the
element descriptors in the USB MIDI standard are available for returning
from snd_seq_port_info_get_type.

USB MIDI (see page 23):
http://www.usb.org/developers/docs/devclass_docs/midi10.pdf

I propose adding these flags to ALSA:

#define SNDRV_SEQ_PORT_TYPE_MIDI_CLOCK  (1<<7)  /* MIDI CLOCK compatible
device */
#define SNDRV_SEQ_PORT_TYPE_MIDI_TIME_CODE (1<<8) /* MTC compatible device
*/
#define SNDRV_SEQ_PORT_TYPE_MIDI_MACHINE_CONTROL (1<<9) /* MMC compatible
device */
#define SNDRV_SEQ_PORT_TYPE_MIDI_EFX    (1<<21) /* Audio effects processor
device */
#define SNDRV_SEQ_PORT_TYPE_MIDI_PATCH_BAY (1<<22) /* MIDI patcher or
router device */
#define SNDRV_SEQ_PORT_TYPE_MIDI_DLS1   (1<<23) /* DownLoadable Sounds
Standard Level 1 compatible device */
#define SNDRV_SEQ_PORT_TYPE_MIDI_DLS2   (1<<24) /* DownLoadable Sounds
Standard Level 2 compatible device */


Thoughts? I can send a couple patches for the kernel and alsa-lib. I don't
think this is a breaking change.


Thanks,

Adam

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

end of thread, other threads:[~2015-03-13 14:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-13  0:36 Adding new (old) SNDRV_SEQ_PORT_TYPE_MIDI_* defines Adam Goode
2015-03-13  7:53 ` Takashi Iwai
2015-03-13  8:07 ` Clemens Ladisch
2015-03-13 14:11   ` Adam Goode

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.