forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/usb/line6/midibuf.h
....@@ -1,16 +1,15 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Line 6 Linux USB driver
34 *
45 * Copyright (C) 2004-2010 Markus Grabner (grabner@icg.tugraz.at)
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License as
8
- * published by the Free Software Foundation, version 2.
9
- *
106 */
117
128 #ifndef MIDIBUF_H
139 #define MIDIBUF_H
10
+
11
+#define LINE6_MIDIBUF_READ_TX 0
12
+#define LINE6_MIDIBUF_READ_RX 1
1413
1514 struct midi_buffer {
1615 unsigned char *buf;
....@@ -27,7 +26,7 @@
2726 extern int line6_midibuf_ignore(struct midi_buffer *mb, int length);
2827 extern int line6_midibuf_init(struct midi_buffer *mb, int size, int split);
2928 extern int line6_midibuf_read(struct midi_buffer *mb, unsigned char *data,
30
- int length);
29
+ int length, int read_type);
3130 extern void line6_midibuf_reset(struct midi_buffer *mb);
3231 extern int line6_midibuf_write(struct midi_buffer *mb, unsigned char *data,
3332 int length);