18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Driver for Tascam US-X2Y USB soundcards 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2003 by Karsten Wiese <annabellesgarden@yahoo.de> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __SOUND_USX2Y_COMMON_H 98c2ecf20Sopenharmony_ci#define __SOUND_USX2Y_COMMON_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#define USX2Y_DRIVER_VERSION 0x0100 /* 0.1.0 */ 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci/* hwdep id string */ 168c2ecf20Sopenharmony_ci#define SND_USX2Y_LOADER_ID "USX2Y Loader" 178c2ecf20Sopenharmony_ci#define SND_USX2Y_USBPCM_ID "USX2Y USBPCM" 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci/* hardware type */ 208c2ecf20Sopenharmony_cienum { 218c2ecf20Sopenharmony_ci USX2Y_TYPE_122, 228c2ecf20Sopenharmony_ci USX2Y_TYPE_224, 238c2ecf20Sopenharmony_ci USX2Y_TYPE_428, 248c2ecf20Sopenharmony_ci USX2Y_TYPE_NUMS 258c2ecf20Sopenharmony_ci}; 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#define USB_ID_US122 0x8007 288c2ecf20Sopenharmony_ci#define USB_ID_US224 0x8005 298c2ecf20Sopenharmony_ci#define USB_ID_US428 0x8001 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci/* chip status */ 328c2ecf20Sopenharmony_cienum { 338c2ecf20Sopenharmony_ci USX2Y_STAT_CHIP_INIT = (1 << 0), /* all operational */ 348c2ecf20Sopenharmony_ci USX2Y_STAT_CHIP_MMAP_PCM_URBS = (1 << 1), /* pcm transport over mmaped urbs */ 358c2ecf20Sopenharmony_ci USX2Y_STAT_CHIP_HUP = (1 << 31), /* all operational */ 368c2ecf20Sopenharmony_ci}; 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci#endif /* __SOUND_USX2Y_COMMON_H */ 39