1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun #ifndef AU88X0_EQ_H 3*4882a593Smuzhiyun #define AU88X0_EQ_H 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun /*************************************************************************** 6*4882a593Smuzhiyun * au88x0_eq.h 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * Definitions and constant data for the Aureal Hardware EQ. 9*4882a593Smuzhiyun * 10*4882a593Smuzhiyun * Sun Jun 8 18:23:38 2003 11*4882a593Smuzhiyun * Author: Manuel Jander (mjander@users.sourceforge.net) 12*4882a593Smuzhiyun ****************************************************************************/ 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun typedef struct { 15*4882a593Smuzhiyun u16 LeftCoefs[50]; //0x4 16*4882a593Smuzhiyun u16 RightCoefs[50]; // 0x68 17*4882a593Smuzhiyun u16 LeftGains[10]; //0xd0 18*4882a593Smuzhiyun u16 RightGains[10]; //0xe4 19*4882a593Smuzhiyun } auxxEqCoeffSet_t; 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun typedef struct { 22*4882a593Smuzhiyun s32 this04; /* How many filters for each side (default = 10) */ 23*4882a593Smuzhiyun s32 this08; /* inited to cero. Stereo flag? */ 24*4882a593Smuzhiyun } eqhw_t; 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun typedef struct { 27*4882a593Smuzhiyun eqhw_t this04; /* CHwEq */ 28*4882a593Smuzhiyun u16 this08; /* Bad codec flag ? SetBypassGain: bypass gain */ 29*4882a593Smuzhiyun u16 this0a; 30*4882a593Smuzhiyun u16 this0c; /* SetBypassGain: bypass gain when this28 is not set. */ 31*4882a593Smuzhiyun u16 this0e; 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun s32 this10; /* How many gains are used for each side (right or left). */ 34*4882a593Smuzhiyun u16 this14_array[10]; /* SetLeftGainsTarget: Left (and right?) EQ gains */ 35*4882a593Smuzhiyun s32 this28; /* flag related to EQ enabled or not. Gang flag ? */ 36*4882a593Smuzhiyun s32 this54; /* SetBypass */ 37*4882a593Smuzhiyun s32 this58; 38*4882a593Smuzhiyun s32 this5c; 39*4882a593Smuzhiyun /*0x60 */ auxxEqCoeffSet_t coefset; 40*4882a593Smuzhiyun /* 50 u16 word each channel. */ 41*4882a593Smuzhiyun u16 this130[20]; /* Left and Right gains */ 42*4882a593Smuzhiyun } eqlzr_t; 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun #endif 45