summaryrefslogtreecommitdiffstats
path: root/sound/usb/usx2y/usbusx2y.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/usb/usx2y/usbusx2y.h')
-rw-r--r--sound/usb/usx2y/usbusx2y.h45
1 files changed, 22 insertions, 23 deletions
diff --git a/sound/usb/usx2y/usbusx2y.h b/sound/usb/usx2y/usbusx2y.h
index f65f3a7194ca..435c1feda9df 100644
--- a/sound/usb/usx2y/usbusx2y.h
+++ b/sound/usb/usx2y/usbusx2y.h
@@ -8,47 +8,46 @@
#define URBS_AsyncSeq 10
#define URB_DataLen_AsyncSeq 32
-typedef struct {
- struct urb* urb[URBS_AsyncSeq];
- char* buffer;
-} snd_usX2Y_AsyncSeq_t;
+struct snd_usX2Y_AsyncSeq {
+ struct urb *urb[URBS_AsyncSeq];
+ char *buffer;
+};
-typedef struct {
+struct snd_usX2Y_urbSeq {
int submitted;
int len;
- struct urb* urb[0];
-} snd_usX2Y_urbSeq_t;
+ struct urb *urb[0];
+};
-typedef struct snd_usX2Y_substream snd_usX2Y_substream_t;
#include "usx2yhwdeppcm.h"
-typedef struct {
- snd_usb_audio_t chip;
+struct usX2Ydev {
+ struct snd_usb_audio chip;
int stride;
struct urb *In04urb;
void *In04Buf;
char In04Last[24];
unsigned In04IntCalls;
- snd_usX2Y_urbSeq_t *US04;
+ struct snd_usX2Y_urbSeq *US04;
wait_queue_head_t In04WaitQueue;
- snd_usX2Y_AsyncSeq_t AS04;
+ struct snd_usX2Y_AsyncSeq AS04;
unsigned int rate,
format;
int chip_status;
struct semaphore prepare_mutex;
- us428ctls_sharedmem_t *us428ctls_sharedmem;
+ struct us428ctls_sharedmem *us428ctls_sharedmem;
int wait_iso_frame;
wait_queue_head_t us428ctls_wait_queue_head;
- snd_usX2Y_hwdep_pcm_shm_t *hwdep_pcm_shm;
- snd_usX2Y_substream_t *subs[4];
- snd_usX2Y_substream_t * volatile prepare_subs;
+ struct snd_usX2Y_hwdep_pcm_shm *hwdep_pcm_shm;
+ struct snd_usX2Y_substream *subs[4];
+ struct snd_usX2Y_substream * volatile prepare_subs;
wait_queue_head_t prepare_wait_queue;
-} usX2Ydev_t;
+};
struct snd_usX2Y_substream {
- usX2Ydev_t *usX2Y;
- snd_pcm_substream_t *pcm_substream;
+ struct usX2Ydev *usX2Y;
+ struct snd_pcm_substream *pcm_substream;
int endpoint;
unsigned int maxpacksize; /* max packet size in bytes */
@@ -72,12 +71,12 @@ struct snd_usX2Y_substream {
};
-#define usX2Y(c) ((usX2Ydev_t*)(c)->private_data)
+#define usX2Y(c) ((struct usX2Ydev *)(c)->private_data)
-int usX2Y_audio_create(snd_card_t* card);
+int usX2Y_audio_create(struct snd_card *card);
-int usX2Y_AsyncSeq04_init(usX2Ydev_t* usX2Y);
-int usX2Y_In04_init(usX2Ydev_t* usX2Y);
+int usX2Y_AsyncSeq04_init(struct usX2Ydev *usX2Y);
+int usX2Y_In04_init(struct usX2Ydev *usX2Y);
#define NAME_ALLCAPS "US-X2Y"