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

📄 dspshm.h

📁 MTK1389 SOURCE CODE
💻 H
📖 第 1 页 / 共 2 页
字号:
/***************    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

⌨️ 快捷键说明

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