xref: /linux/sound/usb/usx2y/us122l.h (revision 2fe05e1139a555ae91f00a812cb9520e7d3022ab)
1 #ifndef US122L_H
2 #define US122L_H
3 
4 
5 struct us122l {
6 	struct usb_device	*dev;
7 	int			card_index;
8 	int			stride;
9 	struct usb_stream_kernel sk;
10 
11 	struct mutex		mutex;
12 	struct file		*first;
13 	unsigned		second_periods_polled;
14 	struct file		*master;
15 	struct file		*slave;
16 	struct list_head	midi_list;
17 
18 	atomic_t		mmap_count;
19 
20 	bool			is_us144;
21 };
22 
23 
24 #define US122L(c) ((struct us122l *)(c)->private_data)
25 
26 #define NAME_ALLCAPS "US-122L"
27 
28 #define USB_ID_US122L 0x800E
29 #define USB_ID_US144 0x800F
30 #define USB_ID_US122MKII 0x8021
31 #define USB_ID_US144MKII 0x8020
32 
33 #endif
34