summaryrefslogtreecommitdiffstats
path: root/sound/usb/usx2y/usbus428ctldefs.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-01-05 01:38:36 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-05 01:38:36 +0100
commit4da5cc2cec8caec1d357053e85a7a32f243f93a1 (patch)
tree3f8b603af4af88f86be7ec1d4e3639a7fc9dd1a6 /sound/usb/usx2y/usbus428ctldefs.h
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild (diff)
parent[ALSA] ad1889 - remove CVS ID from the driver identification (diff)
downloadlinux-4da5cc2cec8caec1d357053e85a7a32f243f93a1.tar.xz
linux-4da5cc2cec8caec1d357053e85a7a32f243f93a1.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/perex/alsa
Diffstat (limited to 'sound/usb/usx2y/usbus428ctldefs.h')
-rw-r--r--sound/usb/usx2y/usbus428ctldefs.h36
1 files changed, 16 insertions, 20 deletions
diff --git a/sound/usb/usx2y/usbus428ctldefs.h b/sound/usb/usx2y/usbus428ctldefs.h
index 6af16438d2c7..b864e7e262e5 100644
--- a/sound/usb/usx2y/usbus428ctldefs.h
+++ b/sound/usb/usx2y/usbus428ctldefs.h
@@ -51,7 +51,7 @@ enum E_In84{
#define T_NULL 0x80
-struct us428_ctls{
+struct us428_ctls {
unsigned char Fader[9];
unsigned char Transport;
unsigned char Modifier;
@@ -63,46 +63,42 @@ struct us428_ctls{
unsigned char Wheel[5];
};
-typedef struct us428_ctls us428_ctls_t;
-
-typedef struct us428_setByte{
+struct us428_setByte {
unsigned char Offset,
Value;
-}us428_setByte_t;
+};
enum {
eLT_Volume = 0,
eLT_Light
};
-typedef struct usX2Y_volume {
+struct usX2Y_volume {
unsigned char Channel,
LH,
LL,
RH,
RL;
-} usX2Y_volume_t;
+};
-struct us428_lights{
- us428_setByte_t Light[7];
+struct us428_lights {
+ struct us428_setByte Light[7];
};
-typedef struct us428_lights us428_lights_t;
-typedef struct {
+struct us428_p4out {
char type;
union {
- usX2Y_volume_t vol;
- us428_lights_t lights;
+ struct usX2Y_volume vol;
+ struct us428_lights lights;
} val;
-} us428_p4out_t;
+};
#define N_us428_ctl_BUFS 16
#define N_us428_p4out_BUFS 16
struct us428ctls_sharedmem{
- us428_ctls_t CtlSnapShot[N_us428_ctl_BUFS];
- int CtlSnapShotDiffersAt[N_us428_ctl_BUFS];
- int CtlSnapShotLast, CtlSnapShotRed;
- us428_p4out_t p4out[N_us428_p4out_BUFS];
- int p4outLast, p4outSent;
+ struct us428_ctls CtlSnapShot[N_us428_ctl_BUFS];
+ int CtlSnapShotDiffersAt[N_us428_ctl_BUFS];
+ int CtlSnapShotLast, CtlSnapShotRed;
+ struct us428_p4out p4out[N_us428_p4out_BUFS];
+ int p4outLast, p4outSent;
};
-typedef struct us428ctls_sharedmem us428ctls_sharedmem_t;