/*1* Driver for Tascam US-X2Y USB soundcards2*3* Copyright (c) 2003 by Karsten Wiese <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA18*/1920#ifndef __SOUND_USX2Y_COMMON_H21#define __SOUND_USX2Y_COMMON_H222324#define USX2Y_DRIVER_VERSION 0x0100 /* 0.1.0 */252627/* hwdep id string */28#define SND_USX2Y_LOADER_ID "USX2Y Loader"29#define SND_USX2Y_USBPCM_ID "USX2Y USBPCM"3031/* hardware type */32enum {33USX2Y_TYPE_122,34USX2Y_TYPE_224,35USX2Y_TYPE_428,36USX2Y_TYPE_NUMS37};3839#define USB_ID_US122 0x800740#define USB_ID_US224 0x800541#define USB_ID_US428 0x80014243/* chip status */44enum {45USX2Y_STAT_CHIP_INIT = (1 << 0), /* all operational */46USX2Y_STAT_CHIP_MMAP_PCM_URBS = (1 << 1), /* pcm transport over mmaped urbs */47USX2Y_STAT_CHIP_HUP = (1 << 31), /* all operational */48};4950#endif /* __SOUND_USX2Y_COMMON_H */515253