dsp3_def.h
上传用户:poi891205
上传日期:2013-07-15
资源大小:9745k
文件大小:2k
源码类别:

DVD

开发平台:

C/C++

  1. #ifndef __DSP3_DEF_H
  2. #define __DSP3_DEF_H
  3. #include "types.h"
  4. #include "gb_knl.h"
  5. #define AudioGetDumpPointer() (regs0->dsp24_port[2])
  6. #define AudioSetDumpPointer(x) (regs0->dsp24_port[2] = (x))
  7. #define AudioGetBarrier() (regs0->dsp24_port[3])
  8. #define AudioSetBarrier(x) (regs0->dsp24_port[3] = (x))
  9. #define AudioGetEndPoint() (regs0->dsp24_port[4])
  10. #define AudioSetEndPoint(x) (regs0->dsp24_port[4] = (x))
  11. #define AudioGetBytePtr() (abv_ptr_b)
  12. #define AudioSetBytePtr(x) (abv_ptr_b = (x))
  13. #define DTSSetRomLocation(x)    
  14.     do {                        
  15.       regs0->rom_h = (x>>16)&0x0ffff;  
  16.       regs0->rom_l = x&0x0ffff;        
  17.     } while (0)
  18. //Audio Command Code
  19. enum {
  20.     FLOW=0,
  21.     OUTMODE,
  22.     VOLUME,
  23.     KEY,
  24.     ECHO,
  25.     SURROUND,
  26.     SUBWOOF,
  27.     SPDIF,
  28.     EQ,
  29.     MIC,
  30.     AD,
  31.     SPKDELAY,
  32.     FSPKGAIN,
  33.     SSPKGAIN,
  34.     PROLOGIC,
  35.     FLSPKGAIN,  //don't change the sequence, FLSPKGAIN/FRSPKGAIN/SLSPKGAIN/SRSPKGAIN/CSPKGAIN/SWSPKGAIN
  36.     FRSPKGAIN,
  37.     SLSPKGAIN,
  38.     SRSPKGAIN,
  39.     CSPKGAIN,
  40.     SWSPKGAIN,  //Jeff 20031028
  41.     SCORING,
  42.     AD_2,
  43. #ifdef SUPPORT_REP_READ//Maoyong 2004.05.26
  44.     RECORDMIC,
  45. #endif     
  46. //2004AUDDRV #ifdef TEST_BASS_MANAGEMENT  
  47. //2004AUDDRV     #ifdef TEST_BASS_COMMAND
  48.     BASSMANAGEMENT,
  49. //2004AUDDRV     #endif
  50. //2004AUDDRV #endif
  51. #ifdef SUPPORT_SOUND_EFFECT  
  52.     SNDEFFECT, //sound effect shawn 2004.10.7
  53. #endif       
  54. #ifdef MESSAGE_QUEUE
  55.     LPCMPARAMETER,
  56.     CMDACK,
  57.     STATACK,
  58.     DSPSTATE,
  59.     DSPDOWNLOAD,
  60.     SETAC3CONFIG,
  61.     WRITE2PCM,
  62. #endif       
  63. };
  64. #ifdef MESSAGE_QUEUE
  65. //DSP status
  66. enum {
  67. DSPINITSTATE=-1,
  68. DSPSTOPSTATE=0,
  69. DSPPLAYSTATE=1,
  70. DSPPAUSESTATE=2,
  71. };
  72. #endif
  73. //Audio FLOW, SubCommand
  74. enum {
  75.     AUDIOPLAY=1,
  76.     AUDIOCONTINUE=2,
  77.     AUDIOSTOP=3,
  78.     AUDIOPAUSE=4,
  79.     AUDIOFLUSH=5,
  80.     AUDIOFF2X=6,
  81.     AUDIOFF4X=7,
  82.     AUDIOFF8X=8,
  83.     AUDIOFF20X=9,
  84.     AUDIOFF2PLAY=0x0a,
  85.     AUDIOFF16X=0x0b, // Robert 2003/12/24
  86.     AUDIOFF32X=0x0c, // Robert 2003/12/24
  87.     
  88.     AUDIOFF5X=0x0d,//nono 4-2-10 20:25
  89.     AUDIOFF10X=0x0e,//nono 4-2-10 20:25
  90.     AUDIOFF30X=0x0f,//nono 4-2-10 20:25
  91.     AUDIOFF60X=0x10,//nono 4-2-10 20:25
  92.     
  93.     AUDIOFF1_25X=0x11,
  94.     AUDIOFF1_50X=0x12,
  95.     AUDIOFF1_75X=0x13,
  96.     AUDIOFF2_00X=0x14,
  97.     AUDIOSF1_25X=0x15,
  98.     AUDIOSF1_50X=0x16,
  99.     AUDIOSF1_75X=0x17,
  100.     AUDIOSF2_00X=0x18,
  101. #ifdef MESSAGE_QUEUE    
  102.     MP3TONORM=0x19,
  103. #endif    
  104. };
  105. #endif