diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2006-05-02 16:22:12 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-06-22 21:33:20 +0200 |
commit | a7b928ac5fcd8e1b5c7c69926d8845b1d0500af3 (patch) | |
tree | 8157f37993802f1defa42f2126aca29fda4dd44c /include/sound/rawmidi.h | |
parent | 450047a78f3c35a905576e121abfbee2ccd45993 (diff) | |
download | kernel_samsung_crespo-a7b928ac5fcd8e1b5c7c69926d8845b1d0500af3.zip kernel_samsung_crespo-a7b928ac5fcd8e1b5c7c69926d8845b1d0500af3.tar.gz kernel_samsung_crespo-a7b928ac5fcd8e1b5c7c69926d8845b1d0500af3.tar.bz2 |
[ALSA] rawmidi: add get_port_info callback for sequencer information flags
Add a get_port_info callback to the snd_rawmidi_global_ops structure to
allow the USB MIDI driver to supply information flags for the sequencer
ports created by seq_midi.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'include/sound/rawmidi.h')
-rw-r--r-- | include/sound/rawmidi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/rawmidi.h b/include/sound/rawmidi.h index 584e73d..7dbcd10 100644 --- a/include/sound/rawmidi.h +++ b/include/sound/rawmidi.h @@ -46,6 +46,7 @@ struct snd_rawmidi; struct snd_rawmidi_substream; +struct snd_seq_port_info; struct snd_rawmidi_ops { int (*open) (struct snd_rawmidi_substream * substream); @@ -57,6 +58,8 @@ struct snd_rawmidi_ops { struct snd_rawmidi_global_ops { int (*dev_register) (struct snd_rawmidi * rmidi); int (*dev_unregister) (struct snd_rawmidi * rmidi); + void (*get_port_info)(struct snd_rawmidi *rmidi, int number, + struct snd_seq_port_info *info); }; struct snd_rawmidi_runtime { |