11da177e4SLinus Torvalds /* 21da177e4SLinus Torvalds * Driver for Tascam US-X2Y USB soundcards 31da177e4SLinus Torvalds * 41da177e4SLinus Torvalds * Copyright (c) 2003 by Karsten Wiese <annabellesgarden@yahoo.de> 51da177e4SLinus Torvalds * 61da177e4SLinus Torvalds * This program is free software; you can redistribute it and/or modify 71da177e4SLinus Torvalds * it under the terms of the GNU General Public License as published by 81da177e4SLinus Torvalds * the Free Software Foundation; either version 2 of the License, or 91da177e4SLinus Torvalds * (at your option) any later version. 101da177e4SLinus Torvalds * 111da177e4SLinus Torvalds * This program is distributed in the hope that it will be useful, 121da177e4SLinus Torvalds * but WITHOUT ANY WARRANTY; without even the implied warranty of 131da177e4SLinus Torvalds * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 141da177e4SLinus Torvalds * GNU General Public License for more details. 151da177e4SLinus Torvalds * 161da177e4SLinus Torvalds * You should have received a copy of the GNU General Public License 171da177e4SLinus Torvalds * along with this program; if not, write to the Free Software 181da177e4SLinus Torvalds * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 191da177e4SLinus Torvalds */ 201da177e4SLinus Torvalds 211da177e4SLinus Torvalds #ifndef __SOUND_USX2Y_COMMON_H 221da177e4SLinus Torvalds #define __SOUND_USX2Y_COMMON_H 231da177e4SLinus Torvalds 241da177e4SLinus Torvalds 251da177e4SLinus Torvalds #define USX2Y_DRIVER_VERSION 0x0100 /* 0.1.0 */ 261da177e4SLinus Torvalds 271da177e4SLinus Torvalds 281da177e4SLinus Torvalds /* hwdep id string */ 291da177e4SLinus Torvalds #define SND_USX2Y_LOADER_ID "USX2Y Loader" 301da177e4SLinus Torvalds #define SND_USX2Y_USBPCM_ID "USX2Y USBPCM" 311da177e4SLinus Torvalds 321da177e4SLinus Torvalds /* hardware type */ 331da177e4SLinus Torvalds enum { 341da177e4SLinus Torvalds USX2Y_TYPE_122, 351da177e4SLinus Torvalds USX2Y_TYPE_224, 361da177e4SLinus Torvalds USX2Y_TYPE_428, 371da177e4SLinus Torvalds USX2Y_TYPE_NUMS 381da177e4SLinus Torvalds }; 391da177e4SLinus Torvalds 401da177e4SLinus Torvalds #define USB_ID_US122 0x8007 411da177e4SLinus Torvalds #define USB_ID_US224 0x8005 421da177e4SLinus Torvalds #define USB_ID_US428 0x8001 431da177e4SLinus Torvalds 441da177e4SLinus Torvalds /* chip status */ 451da177e4SLinus Torvalds enum { 461da177e4SLinus Torvalds USX2Y_STAT_CHIP_INIT = (1 << 0), /* all operational */ 471da177e4SLinus Torvalds USX2Y_STAT_CHIP_MMAP_PCM_URBS = (1 << 1), /* pcm transport over mmaped urbs */ 481da177e4SLinus Torvalds USX2Y_STAT_CHIP_HUP = (1 << 31), /* all operational */ 491da177e4SLinus Torvalds }; 501da177e4SLinus Torvalds 511da177e4SLinus Torvalds #endif /* __SOUND_USX2Y_COMMON_H */ 52