diff options
author | Andrej Krutak <dev@andree.sk> | 2016-09-18 20:59:27 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-09-19 23:01:19 +0200 |
commit | 7811a3ad18ac1477976224cc2e8607654870edfc (patch) | |
tree | f9aa9e064876ffd99fc2be863da2c22dc0eaeb07 /sound/usb/line6/driver.h | |
parent | ALSA: line6: Distinguish device init (ctrl EP) and MIDI data transfer (int EP) (diff) | |
download | linux-7811a3ad18ac1477976224cc2e8607654870edfc.tar.xz linux-7811a3ad18ac1477976224cc2e8607654870edfc.zip |
ALSA: line6: Allow processing of raw incoming messages
Not all PODs use MIDI via USB data interface, thus allow avoiding
that code and instead using direct processing.
Signed-off-by: Andrej Krutak <dev@andree.sk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6/driver.h')
-rw-r--r-- | sound/usb/line6/driver.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sound/usb/line6/driver.h b/sound/usb/line6/driver.h index d48c7d2f1575..88cf1e750060 100644 --- a/sound/usb/line6/driver.h +++ b/sound/usb/line6/driver.h @@ -147,15 +147,18 @@ struct usb_line6 { /* URB for listening to POD data endpoint */ struct urb *urb_listen; - /* Buffer for listening to POD data endpoint */ + /* Buffer for incoming data from POD data endpoint */ unsigned char *buffer_listen; - /* Buffer for message to be processed */ + /* Buffer for message to be processed, generated from MIDI layer */ unsigned char *buffer_message; - /* Length of message to be processed */ + /* Length of message to be processed, generated from MIDI layer */ int message_length; + /* If MIDI is supported, buffer_message contains the pre-processed data; + * otherwise the data is only in urb_listen (buffer_incoming). + */ void (*process_message)(struct usb_line6 *); void (*disconnect)(struct usb_line6 *line6); }; |