xref: /openbmc/linux/sound/usb/usx2y/usx2y.h (revision 55fd7e02)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Driver for Tascam US-X2Y USB soundcards
4  *
5  * Copyright (c) 2003 by Karsten Wiese <annabellesgarden@yahoo.de>
6  */
7 
8 #ifndef __SOUND_USX2Y_COMMON_H
9 #define __SOUND_USX2Y_COMMON_H
10 
11 
12 #define USX2Y_DRIVER_VERSION	0x0100	/* 0.1.0 */
13 
14 
15 /* hwdep id string */
16 #define SND_USX2Y_LOADER_ID		"USX2Y Loader"
17 #define SND_USX2Y_USBPCM_ID		"USX2Y USBPCM"
18 
19 /* hardware type */
20 enum {
21 	USX2Y_TYPE_122,
22 	USX2Y_TYPE_224,
23 	USX2Y_TYPE_428,
24 	USX2Y_TYPE_NUMS
25 };
26 
27 #define USB_ID_US122 0x8007
28 #define USB_ID_US224 0x8005
29 #define USB_ID_US428 0x8001
30 
31 /* chip status */
32 enum {
33 	USX2Y_STAT_CHIP_INIT	=	(1 << 0),	/* all operational */
34 	USX2Y_STAT_CHIP_MMAP_PCM_URBS = (1 << 1),	/* pcm transport over mmaped urbs */
35 	USX2Y_STAT_CHIP_HUP	=	(1 << 31),	/* all operational */
36 };
37 
38 #endif /* __SOUND_USX2Y_COMMON_H */
39