www.pudn.com > 6027_HD65.rar > dspshm.h
/*************** MTK CONFIDENTIAL & COPYRIGHTED ****************/ /*************** ****************/ /*************** $Modtime:: 04/04/22 2:14p $ ****************/ /*************** $Revision:: 2 $ ****************/ /*************** ****************/ /*************** Description : Share info definition ****************/ /*************** for audio DSP ****************/ /*************** Company : MediaTek Inc. ****************/ /*************** Programmer : ****************/ /**********************************************************************/ /* PLEASE NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/ /* */ /* Strict rules - NO replacement of share memory for backward compatible */ /* Until new version for architecture is established */ /* */ /* PLEASE NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/ #ifndef _DSP_SHM_H_ #define _DSP_SHM_H_ #define DSP_GRP_MAX DSP_SHARED_INFO_GRP_NS #define DSPINFO_GRP 0 #define W_INTCTRL ((DSPINFO_GRP * 32) + 0) // RISC #define B_BIT ((DSPINFO_GRP * 32) + 0x2) // RISC #define B_BANK384NUM ((DSPINFO_GRP * 32) + 0x3) // RISC #define B_BANK576NUM ((DSPINFO_GRP * 32) + 0x4) // RISC #define B_BANK320NUM ((DSPINFO_GRP * 32) + 0x5) // RISC #define B_BANK256NUM ((DSPINFO_GRP * 32) + 0x6) // RISC #define B_DACBIT ((DSPINFO_GRP * 32) + 0x7) // 8032 #define B_PTSM3IDX ((DSPINFO_GRP * 32) + 0x8) // RISC, MT1379_REV_C not used #define B_IECLATENCY ((DSPINFO_GRP * 32) + 0x9) // RISC #define W_PROCMOD ((DSPINFO_GRP * 32) + 0xA) // 8032 #define VOL_GRP1 1 #define B_VOLUPORDER ((VOL_GRP1 * 32) + 0) // 8032 #define B_VOLDOWNORDER ((VOL_GRP1 * 32) + 0x1) // 8032 #define B_SOFTMUTEORDER ((VOL_GRP1 * 32) + 0x2) // 8032 #define W_ERRORMUTEBANK ((VOL_GRP1 * 32) + 0x4) // 8032* #define D_VOL ((VOL_GRP1 * 32) + 0x8) // 8032 #define D_TRIM_C ((VOL_GRP1 * 32) + 0xC) // 8032 #define D_TRIM_L ((VOL_GRP1 * 32) + 0x10) // 8032 #define D_TRIM_R ((VOL_GRP1 * 32) + 0x14) // 8032 #define D_TRIM_LS ((VOL_GRP1 * 32) + 0x18) // 8032 #define D_TRIM_RS ((VOL_GRP1 * 32) + 0x1C) // 8032 #define VOL_GRP2 2 #define D_TRIM_CB ((VOL_GRP2 * 32) + 0) // 8032 #define D_TRIM_CH7 ((VOL_GRP2 * 32) + 0x4) // 8032- #define D_TRIM_SUB ((VOL_GRP2 * 32) + 0x8) // 8032- #define D_TRIM_LFE ((VOL_GRP2 * 32) + 0xC) // 8032* #define D_DIALOGUE ((VOL_GRP2 * 32) + 0x10) // 8032 #define B_DRC_AVEORDER ((VOL_GRP2 * 32) + 0x14) // RISC* #define B_DRC_ATTACKORDER ((VOL_GRP2 * 32) + 0x15) // RISC* #define W_DRC_THRESHOLD ((VOL_GRP2 * 32) + 0x16) // RISC* #define W_DRC_MARGIN ((VOL_GRP2 * 32) + 0x18) // RISC* #define D_DRC_RE_GAIN ((VOL_GRP2 * 32) + 0x1C) // RISC* #define MIC_GRP1 3 #define B_MPDOWNSAMPLE ((MIC_GRP1 * 32) + 0x0) // 8032 #define B_MPUPORDER ((MIC_GRP1 * 32) + 0x1) // 8032 #define B_MPDOWNORDER ((MIC_GRP1 * 32) + 0x2) // 8032 #define B_MP_CHMIX ((MIC_GRP1 * 32) + 0x4) // 8032 #define B_MICUPORDER ((MIC_GRP1 * 32) + 0x6) // 8032 #define B_MICDOWNORDER ((MIC_GRP1 * 32) + 0x7) // 8032 #define D_MPVOL1 ((MIC_GRP1 * 32) + 0x8) // 8032 #define D_MPVOL2 ((MIC_GRP1 * 32) + 0xC) // 8032 #define B_MPFLAG ((MIC_GRP1 * 32) + 0x10) // 8032 #define D_MPECHOVOL ((MIC_GRP1 * 32) + 0x14) // 8032 #define D_MPDEPTH ((MIC_GRP1 * 32) + 0x18) // 8032 #define W_MPDELAY ((MIC_GRP1 * 32) + 0x1C) // 8032 #define W_MIC_MUTE_BNK ((MIC_GRP1 * 32) + 0x1E) //8032 #define MIC_GRP2 4 #define D_MPEQGAIN_DRY ((MIC_GRP2 * 32) + 0) // 8032 #define D_MPEQGAIN_B1 ((MIC_GRP2 * 32) + 0x4) // 8032 #define D_MPEQGAIN_B2 ((MIC_GRP2 * 32) + 0x8) // 8032 #define D_MPEQGAIN_B3 ((MIC_GRP2 * 32) + 0xC) // 8032 #define B_MP_REC_FLAG ((MIC_GRP2 * 32) + 0x10) // 8032 #define D_MIC_THRESHOLD ((MIC_GRP2 * 32) + 0x14) // 8032 #define D_MUTE_THRESHOLD ((MIC_GRP2 * 32) + 0x18) // 8032 #define D_LEVEL_THRESHOLD ((MIC_GRP2 * 32) + 0x1C) // 8032 #define BASS_GRP 5 #define D_SPKCFG ((BASS_GRP * 32) + 0) // 8032 #define W_PLAYER_SETTING ((BASS_GRP * 32) + 0x4) // 8032 #define B_CUTOFF_FREQ ((BASS_GRP * 32) + 0x6) // 8032 #define B_AC3_CH_TYPE ((BASS_GRP * 32) + 0x7) // RISC inform #define W_CHDELAY_C ((BASS_GRP * 32) + 0x8) // 8032 #define W_CHDELAY_L ((BASS_GRP * 32) + 0xA) // 8032 #define W_CHDELAY_R ((BASS_GRP * 32) + 0xC) // 8032 #define W_CHDELAY_LS ((BASS_GRP * 32) + 0xE) // 8032 #define W_CHDELAY_RS ((BASS_GRP * 32) + 0x10) // 8032 #define W_CHDELAY_CB ((BASS_GRP * 32) + 0x12) // 8032 #define W_CHDELAY_CH7 ((BASS_GRP * 32) + 0x14) // 8032 #define W_CHDELAY_SUB ((BASS_GRP * 32) + 0x16) // 8032 #define W_CHDELAY_CH9 ((BASS_GRP * 32) + 0x18) // 8032 #define W_CHDELAY_CH10 ((BASS_GRP * 32) + 0x1A) // 8032 #define GENERALCTRL_GRP 6 #define B_IECFLAG ((GENERALCTRL_GRP * 32) + 0) // 8032 #define B_IEC_MUTE ((GENERALCTRL_GRP * 32) + 0x1) // 8032 #define B_IEC_PCMCH ((GENERALCTRL_GRP * 32) + 0x2) // 8032 #define B_IEC_OPTION ((GENERALCTRL_GRP * 32) + 0x3) // 8032 #define W_SPEED ((GENERALCTRL_GRP * 32) + 0x4) // 8032* #define B_IEC_MAX_FREQ ((GENERALCTRL_GRP * 32) + 0x6) // 8032 #define B_IEC_CDDA ((GENERALCTRL_GRP * 32) + 0x8) // 8032 #define B_IEC_DTS ((GENERALCTRL_GRP * 32) + 0x9) // 8032 #define B_IEC_MP2 ((GENERALCTRL_GRP * 32) + 0xA) // 8032 #define B_IEC_AC3 ((GENERALCTRL_GRP * 32) + 0xB) // 8032 #define B_SACD_PCM_MOD ((GENERALCTRL_GRP * 32) + 0x14) // 8032 #define B_SACD_DOWN_SAMPLE ((GENERALCTRL_GRP * 32) + 0x15) // 8032 #define W_SACD_SPKCFG ((GENERALCTRL_GRP * 32) + 0x16) // 8032- #define W_AC3_SPKCFG ((GENERALCTRL_GRP * 32) + 0x18) // 8032- #define W_DTS_SPKCFG ((GENERALCTRL_GRP * 32) + 0x1A) // 8032- #define W_MP2_SPKCFG ((GENERALCTRL_GRP * 32) + 0x1C) // 8032- #define B_AIN_ENABLE ((GENERALCTRL_GRP * 32) + 0x1E) //8032 #define KARA_EQ_GRP 7 #define W_KEYLEVEL ((KARA_EQ_GRP * 32) + 0) // 8032 #define D_MPTHRESHOLD ((KARA_EQ_GRP * 32) + 0x4) // 8032 #define B_KARAFLAG ((KARA_EQ_GRP * 32) + 0x8) // 8032 #define D_LRMIXRATIO ((KARA_EQ_GRP * 32) + 0xC) // 8032 #define B_EQFLAG ((KARA_EQ_GRP * 32) + 0x10) // 8032 #define B_SPECTRUMUP ((KARA_EQ_GRP * 32) + 0x12) // 8032 #define B_SPECTRUMDOWN ((KARA_EQ_GRP * 32) + 0x13) // 8032 #define B_EQBANDNUM ((KARA_EQ_GRP * 32) + 0x14) // 8032 #define B_SBASSDELAYNUM ((KARA_EQ_GRP * 32) + 0x15) // 8032* #define D_SBASSBOOSTGAIN ((KARA_EQ_GRP * 32) + 0x18) // 8032 #define D_SBASSCLEARGAIN ((KARA_EQ_GRP * 32) + 0x1C) // 8032 #define DSP3D_GRP1 8 #define W_PROLOGICCFG ((DSP3D_GRP1 * 32) + 0) // 8032 // removed in MT1389 #define W_PLSURRDELAY ((DSP3D_GRP1 * 32) + 0x2) // 8032* #define W_PLIICONFIG ((DSP3D_GRP1 * 32) + 0x4) // RISC* #define W_PLIIMODE ((DSP3D_GRP1 * 32) + 0x6) // RISC* #define B_DOLBYEX ((DSP3D_GRP1 * 32) + 0x8) // 8032, MT1379_REV_C not used #define B_UPSAMP_RATIO ((DSP3D_GRP1 * 32) + 0x9) // RISC*, MT1389 add #define B_UPSAMP_ORDER ((DSP3D_GRP1 * 32) + 0xA) // RISC*, MT1389 add #define D_3D_BUF_ADDR ((DSP3D_GRP1 * 32) + 0xC) // 8032, MT1379_REV_C add #define B_VSURRFLAG ((DSP3D_GRP1 * 32) + 0x10) // 8032 #define B_VSURRDELAYNUM ((DSP3D_GRP1 * 32) + 0x11) // 8032* #define B_SPATIALDEGREE ((DSP3D_GRP1 * 32) + 0x12) // 8032 #define B_VSSMODE ((DSP3D_GRP1 * 32) + 0x13) // 8032 #define B_TVSMODE ((DSP3D_GRP1 * 32) + 0x13) // 8032 -> occupy same address as B_VSSMODE #define D_VSURRGAIN ((DSP3D_GRP1 * 32) + 0x14) // 8032 #define D_VSURRWIDEGAIN ((DSP3D_GRP1 * 32) + 0x18) // 8032 #define B_DOLBYHP_MODE ((DSP3D_GRP1 * 32) + 0x1C) // RISC #define DSP3D_GRP2 9 #define B_REVERBFLAG ((DSP3D_GRP2 * 32) + 0) // 8032 #define D_REVERBGAIN ((DSP3D_GRP2 * 32) + 0x4) // 8032 #define B_REVERBBANK0 ((DSP3D_GRP2 * 32) + 0x8) // 8032- #define B_REVERBBANK1 ((DSP3D_GRP2 * 32) + 0x9) // 8032- #define B_REVERBBANK2 ((DSP3D_GRP2 * 32) + 0xA) // 8032- #define B_REVERBBANK3 ((DSP3D_GRP2 * 32) + 0xB) // 8032- #define B_NEO6_FLAG ((DSP3D_GRP2 * 32) + 0x10) // 8032, MT1379_REV_C add #define W_NEO6_CGAIN ((DSP3D_GRP2 * 32) + 0x12) // 8032, MT1379_REV_C add #define D_NEO6_TABLE ((DSP3D_GRP2 * 32) + 0x14) // 8032, MT1379_REV_C add #define D_NEO6_ADDR ((DSP3D_GRP2 * 32) + 0x18) // 8032, MT1379_REV_C add #define DOLBY_DTS_GRP 10 #define W_AC3KARAMOD ((DOLBY_DTS_GRP * 32) + 0) // 8032 #define W_AC3DUALMODE ((DOLBY_DTS_GRP * 32) + 0x02) // 8032 #define W_AC3COMPMOD ((DOLBY_DTS_GRP * 32) + 0x04) // 8032 #define D_AC3DYN_LOW ((DOLBY_DTS_GRP * 32) + 0x08) // 8032* #define D_AC3DYN_HIGH ((DOLBY_DTS_GRP * 32) + 0x0C) // 8032* #define W_AC3BITLENGTH ((DOLBY_DTS_GRP * 32) + 0x10) // not used any more #define B_AC3AUTODNMIX ((DOLBY_DTS_GRP * 32) + 0x10) // 8032 #define B_DTSFLAG ((DOLBY_DTS_GRP * 32) + 0x18) // 8032 #define MPEG_LPCM_MLP_GRP 11 #define B_MPEGDRC ((MPEG_LPCM_MLP_GRP * 32) + 0) // 8032 #define W_MPEGERRDET ((MPEG_LPCM_MLP_GRP * 32) + 0x02) // 8032* #define W_WMAPACKET ((MPEG_LPCM_MLP_GRP * 32) + 0x10) // RISC #define W_VORBISPACKET ((MPEG_LPCM_MLP_GRP * 32) + 0x12) // RISC #define W_PLAY_MODE ((MPEG_LPCM_MLP_GRP * 32) + 0x14) // 8032 #define GENER_GRP 12 #define W_PINKNOISE ((GENER_GRP * 32) + 0) // 8032 #define W_VOCDTKN ((GENER_GRP * 32) + 0x02) // 8032 #define W_VOC_MUTEBANK ((GENER_GRP * 32) + 0x04) // RISC #define W_VOC_TH ((GENER_GRP * 32) + 0x06) // 8032 #define W_HDCDCONFIG ((GENER_GRP * 32) + 0x10) // 8032 #define W_HDCDUPSAMPLING ((GENER_GRP * 32) + 0x12) // 8032 #define W_HDCDDITHERMODE ((GENER_GRP * 32) + 0x14) // 8032 #define W_HDCDAOUTBLENGTH ((GENER_GRP * 32) + 0x16) // 8032 #define D_PLAY_SPEED ((GENER_GRP * 32) + 0x18) // RISC #define DSP_EQ_BAND_START (DSP_EQ_GRP1 * 32) #define DSP_EQ_GRP1 13 #define D_C_DRY ((DSP_EQ_GRP1 * 32) + 0) // 8032 #define D_C_BAND1 ((DSP_EQ_GRP1 * 32) + 0x4) // 8032 #define D_C_BAND2 ((DSP_EQ_GRP1 * 32) + 0x8) // 8032 #define D_C_BAND3 ((DSP_EQ_GRP1 * 32) + 0xC) // 8032 #define D_C_BAND4 ((DSP_EQ_GRP1 * 32) + 0x10) // 8032 #define D_C_BAND5 ((DSP_EQ_GRP1 * 32) + 0x14) // 8032 #define D_C_BAND6 ((DSP_EQ_GRP1 * 32) + 0x18) // 8032 #define D_C_BAND7 ((DSP_EQ_GRP1 * 32) + 0x1C) // 8032 #define DSP_EQ_GRP2 14 #define D_C_BAND8 ((DSP_EQ_GRP2 * 32) + 0) // 8032 #define D_C_BAND9 ((DSP_EQ_GRP2 * 32) + 0x4) // 8032 #define D_C_BAND10 ((DSP_EQ_GRP2 * 32) + 0x8) // 8032 #define D_L_DRY ((DSP_EQ_GRP2 * 32) + 0xC) // 8032 #define D_L_BAND1 ((DSP_EQ_GRP2 * 32) + 0x10) // 8032 #define D_L_BAND2 ((DSP_EQ_GRP2 * 32) + 0x14) // 8032 #define D_L_BAND3 ((DSP_EQ_GRP2 * 32) + 0x18) // 8032 #define D_L_BAND4 ((DSP_EQ_GRP2 * 32) + 0x1C) // 8032 #define DSP_EQ_GRP3 15 #define D_L_BAND5 ((DSP_EQ_GRP3 * 32) + 0) // 8032 #define D_L_BAND6 ((DSP_EQ_GRP3 * 32) + 0x4) // 8032 #define D_L_BAND7 ((DSP_EQ_GRP3 * 32) + 0x8) // 8032 #define D_L_BAND8 ((DSP_EQ_GRP3 * 32) + 0xC) // 8032 #define D_L_BAND9 ((DSP_EQ_GRP3 * 32) + 0x10) // 8032 #define D_L_BAND10 ((DSP_EQ_GRP3 * 32) + 0x14) // 8032 #define D_R_DRY ((DSP_EQ_GRP3 * 32) + 0x18) // 8032 #define D_R_BAND1 ((DSP_EQ_GRP3 * 32) + 0x1C) // 8032 #define DSP_EQ_GRP4 16 #define D_R_BAND2 ((DSP_EQ_GRP4 * 32) + 0) // 8032 #define D_R_BAND3 ((DSP_EQ_GRP4 * 32) + 0x4) // 8032 #define D_R_BAND4 ((DSP_EQ_GRP4 * 32) + 0x8) // 8032 #define D_R_BAND5 ((DSP_EQ_GRP4 * 32) + 0xC) // 8032 #define D_R_BAND6 ((DSP_EQ_GRP4 * 32) + 0x10) // 8032 #define D_R_BAND7 ((DSP_EQ_GRP4 * 32) + 0x14) // 8032 #define D_R_BAND8 ((DSP_EQ_GRP4 * 32) + 0x18) // 8032 #define D_R_BAND9 ((DSP_EQ_GRP4 * 32) + 0x1C) // 8032 #define DSP_EQ_GRP5 17 #define D_R_BAND10 ((DSP_EQ_GRP5 * 32) + 0) // 8032 #define D_LS_DRY ((DSP_EQ_GRP5 * 32) + 0x4) // 8032 #define D_LS_BAND1 ((DSP_EQ_GRP5 * 32) + 0x8) // 8032 #define D_LS_BAND2 ((DSP_EQ_GRP5 * 32) + 0xC) // 8032 #define D_LS_BAND3 ((DSP_EQ_GRP5 * 32) + 0x10) // 8032 #define D_LS_BAND4 ((DSP_EQ_GRP5 * 32) + 0x14) // 8032 #define D_LS_BAND5 ((DSP_EQ_GRP4 * 32) + 0x18) // 8032 #define D_LS_BAND6 ((DSP_EQ_GRP4 * 32) + 0x1C) // 8032 #define DSP_EQ_GRP6 18 #define D_LS_BAND7 ((DSP_EQ_GRP6 * 32) + 0) // 8032 #define D_LS_BAND8 ((DSP_EQ_GRP6 * 32) + 0x4) // 8032 #define D_LS_BAND9 ((DSP_EQ_GRP6 * 32) + 0x8) // 8032 #define D_LS_BAND10 ((DSP_EQ_GRP6 * 32) + 0xC) // 8032 #define D_RS_DRY ((DSP_EQ_GRP6 * 32) + 0x10) // 8032 #define D_RS_BAND1 ((DSP_EQ_GRP6 * 32) + 0x14) // 8032 #define D_RS_BAND2 ((DSP_EQ_GRP6 * 32) + 0x18) // 8032 #define D_RS_BAND3 ((DSP_EQ_GRP6 * 32) + 0x1C) // 8032 #define DSP_EQ_GRP7 19 #define D_RS_BAND4 ((DSP_EQ_GRP7 * 32) + 0) // 8032 #define D_RS_BAND5 ((DSP_EQ_GRP7 * 32) + 0x4) // 8032 #define D_RS_BAND6 ((DSP_EQ_GRP7 * 32) + 0x8) // 8032 #define D_RS_BAND7 ((DSP_EQ_GRP7 * 32) + 0xC) // 8032 #define D_RS_BAND8 ((DSP_EQ_GRP7 * 32) + 0x10) // 8032 #define D_RS_BAND9 ((DSP_EQ_GRP7 * 32) + 0x14) // 8032 #define D_RS_BAND10 ((DSP_EQ_GRP7 * 32) + 0x18) // 8032 #define D_CB_DRY ((DSP_EQ_GRP7 * 32) + 0x1C) // 8032 #define DSP_EQ_GRP8 20 // 8032 #define D_CB_BAND1 ((DSP_EQ_GRP8 * 32) + 0) // 8032 #define D_CB_BAND2 ((DSP_EQ_GRP8 * 32) + 0x4) // 8032 #define D_CB_BAND3 ((DSP_EQ_GRP8 * 32) + 0x8) // 8032 #define D_CB_BAND4 ((DSP_EQ_GRP8 * 32) + 0xC) // 8032 #define D_CB_BAND5 ((DSP_EQ_GRP8 * 32) + 0x10) // 8032 #define D_CB_BAND6 ((DSP_EQ_GRP8 * 32) + 0x14) // 8032 #define D_CB_BAND7 ((DSP_EQ_GRP8 * 32) + 0x18) // 8032 #define D_CB_BAND8 ((DSP_EQ_GRP8 * 32) + 0x1C) // 8032 #define DSP_EQ_GRP9 21 #define D_CB_BAND9 ((DSP_EQ_GRP9 * 32) + 0) // 8032 #define D_CB_BAND10 ((DSP_EQ_GRP9 * 32) + 0x4) // 8032 #define D_CH7_DRY ((DSP_EQ_GRP9 * 32) + 0x8) // 8032 #define D_CH7_BAND1 ((DSP_EQ_GRP9 * 32) + 0xC) // 8032 #define D_CH7_BAND2 ((DSP_EQ_GRP9 * 32) + 0x10) // 8032 #define D_CH7_BAND3 ((DSP_EQ_GRP9 * 32) + 0x14) // 8032 #define D_CH7_BAND4 ((DSP_EQ_GRP9 * 32) + 0x18) // 8032 #define D_CH7_BAND5 ((DSP_EQ_GRP9 * 32) + 0x1C) // 8032 #define DSP_EQ_GRP10 22 #define D_CH7_BAND6 ((DSP_EQ_GRP10 * 32) + 0) // 8032 #define D_CH7_BAND7 ((DSP_EQ_GRP10 * 32) + 0x4) // 8032 #define D_CH7_BAND8 ((DSP_EQ_GRP10 * 32) + 0x8) // 8032 #define D_CH7_BAND9 ((DSP_EQ_GRP10 * 32) + 0xC) // 8032 #define D_CH7_BAND10 ((DSP_EQ_GRP10 * 32) + 0x10) // 8032 // Chorus and reverb setting #define MIC_GRP3 23 #define D_MP_CHORUS_MIX_R ((MIC_GRP3 * 32) + 0x00) // 8032 #define D_MP_CHORUS_FB_R ((MIC_GRP3 * 32) + 0x04) // 8032 #define B_MP_CHORUS_DELAY ((MIC_GRP3 * 32) + 0x08) // 8032 #define B_MP_CHORUS_DEPTH ((MIC_GRP3 * 32) + 0x09) // 8032 #define B_MP_CHORUS_FREQ ((MIC_GRP3 * 32) + 0x0A) // 8032 #define B_MP_REVERB_FLAG ((MIC_GRP3 * 32) + 0x0B) // 8032, MT1379_REV_C add #define B_MP_REVERB_BANK1 ((MIC_GRP3 * 32) + 0x0C) // 8032, MT1379_REV_C add #define B_MP_REVERB_BANK2 ((MIC_GRP3 * 32) + 0x0D) // 8032, MT1379_REV_C add #define B_MP_REVERB_BANK3 ((MIC_GRP3 * 32) + 0x0E) // 8032, MT1379_REV_C add #define B_MP_REVERB_BANK4 ((MIC_GRP3 * 32) + 0x0F) // 8032, MT1379_REV_C add #define D_MP_REVERB_GAIN ((MIC_GRP3 * 32) + 0x10) // 8032, MT1379_REV_C add #define W_MP_KEYSHIFT ((MIC_GRP3 * 32) + 0x14) // 8032 #define W_MP_KEY_MIX ((MIC_GRP3 * 32) + 0x16) // 8032, MT1379_REV_C add #define D_MP_CHORUS_ADR ((MIC_GRP3 * 32) + 0x18) // RISC, MT1379_REV_C add #define DSP_KSCORE_GRP 24 #define B_KSCORECONFIG ((DSP_KSCORE_GRP * 32) + 0x00) // 8032 #define B_KSCORE_MAX ((DSP_KSCORE_GRP * 32) + 0x01) // 8032 #define B_KSCORE_MIN ((DSP_KSCORE_GRP * 32) + 0x02) // 8032 #define B_KSCORE_SCORE ((DSP_KSCORE_GRP * 32) + 0x03) // RISC #define W_KSCORE_HIT0 ((DSP_KSCORE_GRP * 32) + 0x04) // RISC #define W_KSCORE_HIT1 ((DSP_KSCORE_GRP * 32) + 0x06) // RISC #define W_KSCORE_MISS ((DSP_KSCORE_GRP * 32) + 0x08) // RISC #define B_KSCORE_STRATEGY ((DSP_KSCORE_GRP * 32) + 0x0A) // 8032 #define W_KSCORE_MICTHD ((DSP_KSCORE_GRP * 32) + 0x0B) // 8032 #define DSP_ADDR_GRP 25 #define D_MPDELAYADDR ((DSP_ADDR_GRP * 32) + 0x0) // RISC* #define D_MEMBACKUPADDR ((DSP_ADDR_GRP * 32) + 0x4) // RISC* #define D_REVERBMEMADDR ((DSP_ADDR_GRP * 32) + 0x8) // RISC* #define D_MICRECADDR ((DSP_ADDR_GRP * 32) + 0xC) // RISC* #define D_MICRECLENGTH ((DSP_ADDR_GRP * 32) + 0x10) // RISC* #define D_MIC_IO_ADR ((DSP_ADDR_GRP * 32) + 0x14) // RISC #define D_MIC_PITCH_ADR ((DSP_ADDR_GRP * 32) + 0x18) // RISC #define D_KEYPCM_ADDR ((DSP_ADDR_GRP * 32) + 0x1C) // RISC, MT1389 #define DSP_VOICE_GRP 26 #define W_VOICE_LEVEL_TH ((DSP_VOICE_GRP * 32) + 0) // 8032 #define W_VOICE_BANK_TH ((DSP_VOICE_GRP * 32) + 0x2) // 8032 #define W_VOICE_LEVEL ((DSP_VOICE_GRP * 32) + 0x4) // RISC #define B_VOICE_FLAG ((DSP_VOICE_GRP * 32) + 0x6) // RISC & 8032 #define DSP_ADDR_GRP2 27 #define D_UPSAMP_HIS_ADR ((DSP_ADDR_GRP2 * 32) + 0x00) // RISC, MT1389 #define D_UPSAMP_COEF_ADR ((DSP_ADDR_GRP2 * 32) + 0x04) // RISC, MT1389 #define D_DOLBY_HP_ADR ((DSP_ADDR_GRP2 * 32) + 0x08) // RISC, MT1389 #define D_DNMX_BUF_ADR ((DSP_ADDR_GRP2 * 32) + 0x0C) // RISC, MT1389 #define GENERALCTRL_GRP2 28 #define DSP3D_GRP3 GENERALCTRL_GRP2 #define D_AMUTE_THRESHOLD ((GENERALCTRL_GRP2 * 32) + 0x00) #define W_QSOUNDMODE ((DSP3D_GRP3 * 32) + 0x4) // 8032 // Added in MT1389 #define D_QSX_FCDROP ((DSP3D_GRP3 * 32) + 0x8) // 8032, QXpander front center drop #define D_QSX_SCDROP ((DSP3D_GRP3 * 32) + 0xC) // 8032, QXpander surround center drop #define D_QSX_FSPREAD ((DSP3D_GRP3 * 32) + 0x10) // 8032, QXpander front spread #define D_QSX_SSPREAD ((DSP3D_GRP3 * 32) + 0x14) // 8032, QXpadner surround spread #define DSP_INFO_GRP1 30 #define D_MP_LEVEL ((DSP_INFO_GRP1 * 32) + 0) // RISC #define DSP_INFO_GRP2 31 #define D_MIC_LEVEL ((DSP_INFO_GRP2 * 32) + 0) // RISC #define B_MIC_LEVELMODE ((DSP_INFO_GRP2 * 32) + 0x4) // RISC #define B_MIC_REC_STATE ((DSP_INFO_GRP2 * 32) + 0x6) // RISC (0~0x80; 0x80 means rec buffer full) #define B_MIC_PLAY_STATE ((DSP_INFO_GRP2 * 32) + 0x7) // RISC #define D_MIC_REC_LENGTH ((DSP_INFO_GRP2 * 32) + 0x8) // RISC (DWRD Length) compared to D_MICRECLENGTH) #define D_MIC_PLAY_LENGTH ((DSP_INFO_GRP2 * 32) + 0xC) // RISC #define DSP_DEBUG_GRP (DSP_GRP_MAX - 1) #define B_DSP_DEBUG_1 ((DSP_DEBUG_GRP * 32) + 0) #endif /* _DSP_SHM_H_ */