⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dspshm.h

📁 MTK 1389E SOURCE CODE
💻 H
📖 第 1 页 / 共 2 页
字号:
#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   B_INTERNAL_ADC    ((MIC_GRP3 * 32) + 0x1C)


#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   D_MIC_FADING_UNMUTE ((DSP_VOICE_GRP * 32) + 0xA) 
#define   D_MIC_FADING_MUTE   ((DSP_VOICE_GRP * 32) + 0xE) 
#define   D_MIC_FADING_MUTE_CNT  ((DSP_VOICE_GRP * 32) + 0x12) 

#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_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -