forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/usb/usx2y/usbusx2y.h
....@@ -8,32 +8,32 @@
88 #define NRURBS 2
99
1010
11
-#define URBS_AsyncSeq 10
12
-#define URB_DataLen_AsyncSeq 32
13
-struct snd_usX2Y_AsyncSeq {
14
- struct urb *urb[URBS_AsyncSeq];
11
+#define URBS_ASYNC_SEQ 10
12
+#define URB_DATA_LEN_ASYNC_SEQ 32
13
+struct snd_usx2y_async_seq {
14
+ struct urb *urb[URBS_ASYNC_SEQ];
1515 char *buffer;
1616 };
1717
18
-struct snd_usX2Y_urbSeq {
18
+struct snd_usx2y_urb_seq {
1919 int submitted;
2020 int len;
21
- struct urb *urb[0];
21
+ struct urb *urb[];
2222 };
2323
2424 #include "usx2yhwdeppcm.h"
2525
26
-struct usX2Ydev {
26
+struct usx2ydev {
2727 struct usb_device *dev;
2828 int card_index;
2929 int stride;
30
- struct urb *In04urb;
31
- void *In04Buf;
32
- char In04Last[24];
33
- unsigned In04IntCalls;
34
- struct snd_usX2Y_urbSeq *US04;
35
- wait_queue_head_t In04WaitQueue;
36
- struct snd_usX2Y_AsyncSeq AS04;
30
+ struct urb *in04_urb;
31
+ void *in04_buf;
32
+ char in04_last[24];
33
+ unsigned in04_int_calls;
34
+ struct snd_usx2y_urb_seq *us04;
35
+ wait_queue_head_t in04_wait_queue;
36
+ struct snd_usx2y_async_seq as04;
3737 unsigned int rate,
3838 format;
3939 int chip_status;
....@@ -41,9 +41,9 @@
4141 struct us428ctls_sharedmem *us428ctls_sharedmem;
4242 int wait_iso_frame;
4343 wait_queue_head_t us428ctls_wait_queue_head;
44
- struct snd_usX2Y_hwdep_pcm_shm *hwdep_pcm_shm;
45
- struct snd_usX2Y_substream *subs[4];
46
- struct snd_usX2Y_substream * volatile prepare_subs;
44
+ struct snd_usx2y_hwdep_pcm_shm *hwdep_pcm_shm;
45
+ struct snd_usx2y_substream *subs[4];
46
+ struct snd_usx2y_substream * volatile prepare_subs;
4747 wait_queue_head_t prepare_wait_queue;
4848 struct list_head midi_list;
4949 struct list_head pcm_list;
....@@ -51,21 +51,21 @@
5151 };
5252
5353
54
-struct snd_usX2Y_substream {
55
- struct usX2Ydev *usX2Y;
54
+struct snd_usx2y_substream {
55
+ struct usx2ydev *usx2y;
5656 struct snd_pcm_substream *pcm_substream;
5757
5858 int endpoint;
5959 unsigned int maxpacksize; /* max packet size in bytes */
6060
6161 atomic_t state;
62
-#define state_STOPPED 0
63
-#define state_STARTING1 1
64
-#define state_STARTING2 2
65
-#define state_STARTING3 3
66
-#define state_PREPARED 4
67
-#define state_PRERUNNING 6
68
-#define state_RUNNING 8
62
+#define STATE_STOPPED 0
63
+#define STATE_STARTING1 1
64
+#define STATE_STARTING2 2
65
+#define STATE_STARTING3 3
66
+#define STATE_PREPARED 4
67
+#define STATE_PRERUNNING 6
68
+#define STATE_RUNNING 8
6969
7070 int hwptr; /* free frame position in the buffer (only for playback) */
7171 int hwptr_done; /* processed frame position in the buffer */
....@@ -77,12 +77,12 @@
7777 };
7878
7979
80
-#define usX2Y(c) ((struct usX2Ydev *)(c)->private_data)
80
+#define usx2y(c) ((struct usx2ydev *)(c)->private_data)
8181
82
-int usX2Y_audio_create(struct snd_card *card);
82
+int usx2y_audio_create(struct snd_card *card);
8383
84
-int usX2Y_AsyncSeq04_init(struct usX2Ydev *usX2Y);
85
-int usX2Y_In04_init(struct usX2Ydev *usX2Y);
84
+int usx2y_async_seq04_init(struct usx2ydev *usx2y);
85
+int usx2y_in04_init(struct usx2ydev *usx2y);
8686
8787 #define NAME_ALLCAPS "US-X2Y"
8888