xref: /openbmc/linux/sound/usb/usx2y/usx2y.h (revision 1a59d1b8)
11a59d1b8SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
21da177e4SLinus Torvalds /*
31da177e4SLinus Torvalds  * Driver for Tascam US-X2Y USB soundcards
41da177e4SLinus Torvalds  *
51da177e4SLinus Torvalds  * Copyright (c) 2003 by Karsten Wiese <annabellesgarden@yahoo.de>
61da177e4SLinus Torvalds  */
71da177e4SLinus Torvalds 
81da177e4SLinus Torvalds #ifndef __SOUND_USX2Y_COMMON_H
91da177e4SLinus Torvalds #define __SOUND_USX2Y_COMMON_H
101da177e4SLinus Torvalds 
111da177e4SLinus Torvalds 
121da177e4SLinus Torvalds #define USX2Y_DRIVER_VERSION	0x0100	/* 0.1.0 */
131da177e4SLinus Torvalds 
141da177e4SLinus Torvalds 
151da177e4SLinus Torvalds /* hwdep id string */
161da177e4SLinus Torvalds #define SND_USX2Y_LOADER_ID		"USX2Y Loader"
171da177e4SLinus Torvalds #define SND_USX2Y_USBPCM_ID		"USX2Y USBPCM"
181da177e4SLinus Torvalds 
191da177e4SLinus Torvalds /* hardware type */
201da177e4SLinus Torvalds enum {
211da177e4SLinus Torvalds 	USX2Y_TYPE_122,
221da177e4SLinus Torvalds 	USX2Y_TYPE_224,
231da177e4SLinus Torvalds 	USX2Y_TYPE_428,
241da177e4SLinus Torvalds 	USX2Y_TYPE_NUMS
251da177e4SLinus Torvalds };
261da177e4SLinus Torvalds 
271da177e4SLinus Torvalds #define USB_ID_US122 0x8007
281da177e4SLinus Torvalds #define USB_ID_US224 0x8005
291da177e4SLinus Torvalds #define USB_ID_US428 0x8001
301da177e4SLinus Torvalds 
311da177e4SLinus Torvalds /* chip status */
321da177e4SLinus Torvalds enum {
331da177e4SLinus Torvalds 	USX2Y_STAT_CHIP_INIT	=	(1 << 0),	/* all operational */
341da177e4SLinus Torvalds 	USX2Y_STAT_CHIP_MMAP_PCM_URBS = (1 << 1),	/* pcm transport over mmaped urbs */
351da177e4SLinus Torvalds 	USX2Y_STAT_CHIP_HUP	=	(1 << 31),	/* all operational */
361da177e4SLinus Torvalds };
371da177e4SLinus Torvalds 
381da177e4SLinus Torvalds #endif /* __SOUND_USX2Y_COMMON_H */
39