forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/usb/usx2y/usbus428ctldefs.h
....@@ -1,44 +1,31 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 *
34 * Copyright (c) 2003 by Karsten Wiese <annabellesgarden@yahoo.de>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
185 */
196
20
-enum E_In84{
21
- eFader0 = 0,
22
- eFader1,
23
- eFader2,
24
- eFader3,
25
- eFader4,
26
- eFader5,
27
- eFader6,
28
- eFader7,
29
- eFaderM,
30
- eTransport,
31
- eModifier = 10,
32
- eFilterSelect,
33
- eSelect,
34
- eMute,
7
+enum E_IN84 {
8
+ E_FADER_0 = 0,
9
+ E_FADER_1,
10
+ E_FADER_2,
11
+ E_FADER_3,
12
+ E_FADER_4,
13
+ E_FADER_5,
14
+ E_FADER_6,
15
+ E_FADER_7,
16
+ E_FADER_M,
17
+ E_TRANSPORT,
18
+ E_MODIFIER = 10,
19
+ E_FILTER_SELECT,
20
+ E_SELECT,
21
+ E_MUTE,
3522
36
- eSwitch = 15,
37
- eWheelGain,
38
- eWheelFreq,
39
- eWheelQ,
40
- eWheelPan,
41
- eWheel = 20
23
+ E_SWITCH = 15,
24
+ E_WHEEL_GAIN,
25
+ E_WHEEL_FREQ,
26
+ E_WHEEL_Q,
27
+ E_WHEEL_PAN,
28
+ E_WHEEL = 20
4229 };
4330
4431 #define T_RECORD 1
....@@ -52,53 +39,53 @@
5239
5340
5441 struct us428_ctls {
55
- unsigned char Fader[9];
56
- unsigned char Transport;
57
- unsigned char Modifier;
58
- unsigned char FilterSelect;
59
- unsigned char Select;
60
- unsigned char Mute;
61
- unsigned char UNKNOWN;
62
- unsigned char Switch;
63
- unsigned char Wheel[5];
42
+ unsigned char fader[9];
43
+ unsigned char transport;
44
+ unsigned char modifier;
45
+ unsigned char filters_elect;
46
+ unsigned char select;
47
+ unsigned char mute;
48
+ unsigned char unknown;
49
+ unsigned char wswitch;
50
+ unsigned char wheel[5];
6451 };
6552
66
-struct us428_setByte {
67
- unsigned char Offset,
68
- Value;
53
+struct us428_set_byte {
54
+ unsigned char offset,
55
+ value;
6956 };
7057
7158 enum {
72
- eLT_Volume = 0,
73
- eLT_Light
59
+ ELT_VOLUME = 0,
60
+ ELT_LIGHT
7461 };
7562
76
-struct usX2Y_volume {
77
- unsigned char Channel,
78
- LH,
79
- LL,
80
- RH,
81
- RL;
63
+struct usx2y_volume {
64
+ unsigned char channel,
65
+ lh,
66
+ ll,
67
+ rh,
68
+ rl;
8269 };
8370
8471 struct us428_lights {
85
- struct us428_setByte Light[7];
72
+ struct us428_set_byte light[7];
8673 };
8774
8875 struct us428_p4out {
8976 char type;
9077 union {
91
- struct usX2Y_volume vol;
78
+ struct usx2y_volume vol;
9279 struct us428_lights lights;
9380 } val;
9481 };
9582
96
-#define N_us428_ctl_BUFS 16
97
-#define N_us428_p4out_BUFS 16
98
-struct us428ctls_sharedmem{
99
- struct us428_ctls CtlSnapShot[N_us428_ctl_BUFS];
100
- int CtlSnapShotDiffersAt[N_us428_ctl_BUFS];
101
- int CtlSnapShotLast, CtlSnapShotRed;
102
- struct us428_p4out p4out[N_us428_p4out_BUFS];
103
- int p4outLast, p4outSent;
83
+#define N_US428_CTL_BUFS 16
84
+#define N_US428_P4OUT_BUFS 16
85
+struct us428ctls_sharedmem {
86
+ struct us428_ctls ctl_snapshot[N_US428_CTL_BUFS];
87
+ int ctl_snapshot_differs_at[N_US428_CTL_BUFS];
88
+ int ctl_snapshot_last, ctl_snapshot_red;
89
+ struct us428_p4out p4out[N_US428_P4OUT_BUFS];
90
+ int p4out_last, p4out_sent;
10491 };