Path: blob/master/sound/usb/usx2y/usbus428ctldefs.h
10817 views
/*1*2* Copyright (c) 2003 by Karsten Wiese <[email protected]>3*4* This program is free software; you can redistribute it and/or modify5* it under the terms of the GNU General Public License as published by6* the Free Software Foundation; either version 2 of the License, or7* (at your option) any later version.8*9* This program is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12* GNU General Public License for more details.13*14* You should have received a copy of the GNU General Public License15* along with this program; if not, write to the Free Software16* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA17*/1819enum E_In84{20eFader0 = 0,21eFader1,22eFader2,23eFader3,24eFader4,25eFader5,26eFader6,27eFader7,28eFaderM,29eTransport,30eModifier = 10,31eFilterSelect,32eSelect,33eMute,3435eSwitch = 15,36eWheelGain,37eWheelFreq,38eWheelQ,39eWheelPan,40eWheel = 2041};4243#define T_RECORD 144#define T_PLAY 245#define T_STOP 446#define T_F_FWD 847#define T_REW 0x1048#define T_SOLO 0x2049#define T_REC 0x4050#define T_NULL 0x80515253struct us428_ctls {54unsigned char Fader[9];55unsigned char Transport;56unsigned char Modifier;57unsigned char FilterSelect;58unsigned char Select;59unsigned char Mute;60unsigned char UNKNOWN;61unsigned char Switch;62unsigned char Wheel[5];63};6465struct us428_setByte {66unsigned char Offset,67Value;68};6970enum {71eLT_Volume = 0,72eLT_Light73};7475struct usX2Y_volume {76unsigned char Channel,77LH,78LL,79RH,80RL;81};8283struct us428_lights {84struct us428_setByte Light[7];85};8687struct us428_p4out {88char type;89union {90struct usX2Y_volume vol;91struct us428_lights lights;92} val;93};9495#define N_us428_ctl_BUFS 1696#define N_us428_p4out_BUFS 1697struct us428ctls_sharedmem{98struct us428_ctls CtlSnapShot[N_us428_ctl_BUFS];99int CtlSnapShotDiffersAt[N_us428_ctl_BUFS];100int CtlSnapShotLast, CtlSnapShotRed;101struct us428_p4out p4out[N_us428_p4out_BUFS];102int p4outLast, p4outSent;103};104105106