dsp3_def.h
资源名称:8202s.rar [点击查看]
上传用户:poi891205
上传日期:2013-07-15
资源大小:9745k
文件大小:2k
源码类别:
DVD
开发平台:
C/C++
- #ifndef __DSP3_DEF_H
- #define __DSP3_DEF_H
- #include "types.h"
- #include "gb_knl.h"
- #define AudioGetDumpPointer() (regs0->dsp24_port[2])
- #define AudioSetDumpPointer(x) (regs0->dsp24_port[2] = (x))
- #define AudioGetBarrier() (regs0->dsp24_port[3])
- #define AudioSetBarrier(x) (regs0->dsp24_port[3] = (x))
- #define AudioGetEndPoint() (regs0->dsp24_port[4])
- #define AudioSetEndPoint(x) (regs0->dsp24_port[4] = (x))
- #define AudioGetBytePtr() (abv_ptr_b)
- #define AudioSetBytePtr(x) (abv_ptr_b = (x))
- #define DTSSetRomLocation(x)
- do {
- regs0->rom_h = (x>>16)&0x0ffff;
- regs0->rom_l = x&0x0ffff;
- } while (0)
- //Audio Command Code
- enum {
- FLOW=0,
- OUTMODE,
- VOLUME,
- KEY,
- ECHO,
- SURROUND,
- SUBWOOF,
- SPDIF,
- EQ,
- MIC,
- AD,
- SPKDELAY,
- FSPKGAIN,
- SSPKGAIN,
- PROLOGIC,
- FLSPKGAIN, //don't change the sequence, FLSPKGAIN/FRSPKGAIN/SLSPKGAIN/SRSPKGAIN/CSPKGAIN/SWSPKGAIN
- FRSPKGAIN,
- SLSPKGAIN,
- SRSPKGAIN,
- CSPKGAIN,
- SWSPKGAIN, //Jeff 20031028
- SCORING,
- AD_2,
- #ifdef SUPPORT_REP_READ//Maoyong 2004.05.26
- RECORDMIC,
- #endif
- //2004AUDDRV #ifdef TEST_BASS_MANAGEMENT
- //2004AUDDRV #ifdef TEST_BASS_COMMAND
- BASSMANAGEMENT,
- //2004AUDDRV #endif
- //2004AUDDRV #endif
- #ifdef SUPPORT_SOUND_EFFECT
- SNDEFFECT, //sound effect shawn 2004.10.7
- #endif
- #ifdef MESSAGE_QUEUE
- LPCMPARAMETER,
- CMDACK,
- STATACK,
- DSPSTATE,
- DSPDOWNLOAD,
- SETAC3CONFIG,
- WRITE2PCM,
- #endif
- };
- #ifdef MESSAGE_QUEUE
- //DSP status
- enum {
- DSPINITSTATE=-1,
- DSPSTOPSTATE=0,
- DSPPLAYSTATE=1,
- DSPPAUSESTATE=2,
- };
- #endif
- //Audio FLOW, SubCommand
- enum {
- AUDIOPLAY=1,
- AUDIOCONTINUE=2,
- AUDIOSTOP=3,
- AUDIOPAUSE=4,
- AUDIOFLUSH=5,
- AUDIOFF2X=6,
- AUDIOFF4X=7,
- AUDIOFF8X=8,
- AUDIOFF20X=9,
- AUDIOFF2PLAY=0x0a,
- AUDIOFF16X=0x0b, // Robert 2003/12/24
- AUDIOFF32X=0x0c, // Robert 2003/12/24
- AUDIOFF5X=0x0d,//nono 4-2-10 20:25
- AUDIOFF10X=0x0e,//nono 4-2-10 20:25
- AUDIOFF30X=0x0f,//nono 4-2-10 20:25
- AUDIOFF60X=0x10,//nono 4-2-10 20:25
- AUDIOFF1_25X=0x11,
- AUDIOFF1_50X=0x12,
- AUDIOFF1_75X=0x13,
- AUDIOFF2_00X=0x14,
- AUDIOSF1_25X=0x15,
- AUDIOSF1_50X=0x16,
- AUDIOSF1_75X=0x17,
- AUDIOSF2_00X=0x18,
- #ifdef MESSAGE_QUEUE
- MP3TONORM=0x19,
- #endif
- };
- #endif