?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. ;VLSI Solution microcontroller definitions for:
  2. ;VS1063, VS1053 (and VS8053), VS1033, VS1003, VS1103, VS1011.
  3.  
  4. ;SCI registers
  5. SCI_MODE        = 0x00
  6. SCI_STATUS      = 0x01
  7. SCI_BASS        = 0x02
  8. SCI_CLOCKF      = 0x03
  9. SCI_DECODE_TIME = 0x04
  10. SCI_AUDATA      = 0x05
  11. SCI_WRAM        = 0x06
  12. SCI_WRAMADDR    = 0x07
  13. SCI_HDAT0       = 0x08 ;VS1063, VS1053, VS1033, VS1003, VS1011
  14. SCI_IN0         = 0x08 ;VS1103
  15. SCI_HDAT1       = 0x09 ;VS1063, VS1053, VS1033, VS1003, VS1011
  16. SCI_IN1         = 0x09 ;VS1103
  17. SCI_AIADDR      = 0x0A
  18. SCI_VOL         = 0x0B
  19. SCI_AICTRL0     = 0x0C ;VS1063, VS1053, VS1033, VS1003, VS1011
  20. SCI_MIXERVOL    = 0x0C ;VS1103
  21. SCI_AICTRL1     = 0x0D ;VS1063, VS1053, VS1033, VS1003, VS1011
  22. SCI_ADPCMRECCTL = 0x0D ;VS1103
  23. SCI_AICTRL2     = 0x0E
  24. SCI_AICTRL3     = 0x0F
  25.  
  26. ;SCI register recording aliases
  27. SCI_RECQUALITY = 0x07 ;(WRAMADDR) VS1063
  28. SCI_RECDATA    = 0x08 ;(HDAT0)    VS1063
  29. SCI_RECWORDS   = 0x09 ;(HDAT1)    VS1063
  30. SCI_RECRATE    = 0x0C ;(AICTRL0)  VS1063, VS1053
  31. SCI_RECDIV     = 0x0C ;(AICTRL0)  VS1033, VS1003
  32. SCI_RECGAIN    = 0x0D ;(AICTRL1)  VS1063, VS1053, VS1033, VS1003
  33. SCI_RECMAXAUTO = 0x0E ;(AICTRL2)  VS1063, VS1053, VS1033
  34. SCI_RECMODE    = 0x0F ;(AICTRL3)  VS1063, VS1053
  35.  
  36. ;SCI_MODE bits
  37. SM_DIFF_B            =  0
  38. SM_LAYER12_B         =  1 ;VS1063, VS1053, VS1033, VS1011
  39. SM_RECORD_PATH_B     =  1 ;VS1103
  40. SM_RESET_B           =  2
  41. SM_CANCEL_B          =  3 ;VS1063, VS1053
  42. SM_OUTOFWAV_B        =  3 ;VS1033, VS1003, VS1011
  43. SM_OUTOFMIDI_B       =  3 ;VS1103
  44. SM_EARSPEAKER_LO_B   =  4 ;VS1053, VS1033
  45. SM_PDOWN_B           =  4 ;VS1003, VS1103
  46. SM_TESTS_B           =  5
  47. SM_STREAM_B          =  6 ;VS1053, VS1033, VS1003, VS1011
  48. SM_ICONF_B           =  6 ;VS1103
  49. SM_EARSPEAKER_HI_B   =  7 ;VS1053, VS1033
  50. SM_DACT_B            =  8
  51. SM_SDIORD_B          =  9
  52. SM_SDISHARE_B        = 10
  53. SM_SDINEW_B          = 11
  54. SM_ENCODE_B          = 12 ;VS1063
  55. SM_ADPCM_B           = 12 ;VS1053, VS1033, VS1003
  56. SM_EARSPEAKER_1103_B = 12 ;VS1103
  57. SM_ADPCM_HP_B        = 13 ;VS1033, VS1003
  58. SM_LINE1_B           = 14 ;VS1063, VS1053
  59. SM_LINE_IN_B         = 14 ;VS1033, VS1003, VS1103
  60. SM_CLK_RANGE_B       = 15 ;VS1063, VS1053, VS1033
  61. SM_ADPCM_1103_B      = 15 ;VS1103
  62.  
  63. SM_DIFF            = 1<< 0
  64. SM_LAYER12         = 1<< 1 ;VS1063, VS1053, VS1033, VS1011
  65. SM_RECORD_PATH     = 1<< 1 ;VS1103
  66. SM_RESET           = 1<< 2
  67. SM_CANCEL          = 1<< 3 ;VS1063, VS1053
  68. SM_OUTOFWAV        = 1<< 3 ;VS1033, VS1003, VS1011
  69. SM_OUTOFMIDI       = 1<< 3 ;VS1103
  70. SM_EARSPEAKER_LO   = 1<< 4 ;VS1053, VS1033
  71. SM_PDOWN           = 1<< 4 ;VS1003, VS1103
  72. SM_TESTS           = 1<< 5
  73. SM_STREAM          = 1<< 6 ;VS1053, VS1033, VS1003, VS1011
  74. SM_ICONF           = 1<< 6 ;VS1103
  75. SM_EARSPEAKER_HI   = 1<< 7 ;VS1053, VS1033
  76. SM_DACT            = 1<< 8
  77. SM_SDIORD          = 1<< 9
  78. SM_SDISHARE        = 1<<10
  79. SM_SDINEW          = 1<<11
  80. SM_ENCODE          = 1<<12 ;VS1063
  81. SM_ADPCM           = 1<<12 ;VS1053, VS1033, VS1003
  82. SM_EARSPEAKER1103  = 1<<12 ;VS1103
  83. SM_ADPCM_HP        = 1<<13 ;VS1033, VS1003
  84. SM_LINE1           = 1<<14 ;VS1063, VS1053
  85. SM_LINE_IN         = 1<<14 ;VS1033, VS1003, VS1103
  86. SM_CLK_RANGE       = 1<<15 ;VS1063, VS1053, VS1033
  87. SM_ADPCM_1103      = 1<<15 ;VS1103
  88.  
  89. SM_ICONF_BITS = 2
  90. SM_ICONF_MASK = 0x00c0
  91.  
  92. SM_EARSPEAKER_1103_BITS = 2
  93. SM_EARSPEAKER_1103_MASK = 0x3000
  94.  
  95. ;SCI_STATUS bits
  96. SS_REFERENCE_SEL_B =  0 ;VS1063, VS1053
  97. SS_AVOL_B          =  0 ;VS1033, VS1003, VS1103, VS1011
  98. SS_AD_CLOCK_B      =  1 ;VS1063, VS1053
  99. SS_APDOWN1_B       =  2
  100. SS_APDOWN2_B       =  3
  101. SS_VER_B           =  4
  102. SS_VCM_DISABLE_B   = 10 ;VS1063, VS1053
  103. SS_VCM_OVERLOAD_B  = 11 ;VS1063, VS1053
  104. SS_SWING_B         = 12 ;VS1063, VS1053
  105. SS_DO_NOT_JUMP_B   = 15 ;VS1063, VS1053
  106.  
  107. SS_REFERENCE_SEL  = 1<< 0 ;VS1063, VS1053
  108. SS_AVOL           = 1<< 0 ;VS1033, VS1003, VS1103, VS1011
  109. SS_AD_CLOCK       = 1<< 1 ;VS1063, VS1053
  110. SS_APDOWN1        = 1<< 2
  111. SS_APDOWN2        = 1<< 3
  112. SS_VER            = 1<< 4
  113. SS_VCM_DISABLE    = 1<<10 ;VS1063, VS1053
  114. SS_VCM_OVERLOAD   = 1<<11 ;VS1063, VS1053
  115. SS_SWING          = 1<<12 ;VS1063, VS1053
  116. SS_DO_NOT_JUMP    = 1<<15 ;VS1063, VS1053
  117.  
  118. SS_SWING_BITS     = 3
  119. SS_SWING_MASK     = 0x7000
  120. SS_VER_BITS       = 4
  121. SS_VER_MASK       = 0x00f0
  122. SS_AVOL_BITS      = 2
  123. SS_AVOL_MASK      = 0x0003
  124.  
  125. SS_VER_VS1001 = 0x00
  126. SS_VER_VS1011 = 0x10
  127. SS_VER_VS1002 = 0x20
  128. SS_VER_VS1003 = 0x30
  129. SS_VER_VS1053 = 0x40
  130. SS_VER_VS8053 = 0x40
  131. SS_VER_VS1033 = 0x50
  132. SS_VER_VS1063 = 0x60
  133. SS_VER_VS1103 = 0x70
  134.  
  135. ;SCI_BASS bits
  136. ST_AMPLITUDE_B = 12
  137. ST_FREQLIMIT_B =  8
  138. SB_AMPLITUDE_B =  4
  139. SB_FREQLIMIT_B =  0
  140.  
  141. ST_AMPLITUDE  = 1<<12
  142. ST_FREQLIMIT  = 1<< 8
  143. SB_AMPLITUDE  = 1<< 4
  144. SB_FREQLIMIT  = 1<< 0
  145.  
  146. ST_AMPLITUDE_BITS = 4
  147. ST_AMPLITUDE_MASK = 0xf000
  148. ST_FREQLIMIT_BITS = 4
  149. ST_FREQLIMIT_MASK = 0x0f00
  150. SB_AMPLITUDE_BITS = 4
  151. SB_AMPLITUDE_MASK = 0x00f0
  152. SB_FREQLIMIT_BITS = 4
  153. SB_FREQLIMIT_MASK = 0x000f
  154.  
  155. ; SCI_CLOCKF bits
  156. SC_MULT_B = 13 ;VS1063, VS1053, VS1033, VS1103, VS1003
  157. SC_ADD_B  = 11 ;VS1063, VS1053, VS1033, VS1003
  158. SC_FREQ_B =  0 ;VS1063, VS1053, VS1033, VS1103, VS1003
  159.  
  160. SC_MULT  = 1<<13 ;VS1063, VS1053, VS1033, VS1103, VS1003
  161. SC_ADD   = 1<<11 ;VS1063, VS1053, VS1033, VS1003
  162. SC_FREQ  = 1<< 0 ;VS1063, VS1053, VS1033, VS1103, VS1003
  163.  
  164. SC_MULT_BITS = 3
  165. SC_MULT_MASK = 0xe000
  166. SC_ADD_BITS  = 2
  167. SC_ADD_MASK  = 0x1800
  168. SC_FREQ_BITS = 11
  169. SC_FREQ_MASK = 0x07ff
  170.  
  171. ;Following are for VS1003 and VS1033
  172. SC_MULT_03_10X = 0x0000
  173. SC_MULT_03_15X = 0x2000
  174. SC_MULT_03_20X = 0x4000
  175. SC_MULT_03_25X = 0x6000
  176. SC_MULT_03_30X = 0x8000
  177. SC_MULT_03_35X = 0xa000
  178. SC_MULT_03_40X = 0xc000
  179. SC_MULT_03_45X = 0xe000
  180.  
  181. ;Following are for VS1053 and VS1063
  182. SC_MULT_53_10X = 0x0000
  183. SC_MULT_53_20X = 0x2000
  184. SC_MULT_53_25X = 0x4000
  185. SC_MULT_53_30X = 0x6000
  186. SC_MULT_53_35X = 0x8000
  187. SC_MULT_53_40X = 0xa000
  188. SC_MULT_53_45X = 0xc000
  189. SC_MULT_53_50X = 0xe000
  190.  
  191. ;Following are for VS1003 and VS1033
  192. SC_ADD_03_00X = 0x0000
  193. SC_ADD_03_05X = 0x0800
  194. SC_ADD_03_10X = 0x1000
  195. SC_ADD_03_15X = 0x1800
  196.  
  197. ;Following are for VS1053 and VS1063
  198. SC_ADD_53_00X = 0x0000
  199. SC_ADD_53_10X = 0x0800
  200. SC_ADD_53_15X = 0x1000
  201. SC_ADD_53_20X = 0x1800
  202.  
  203. ;SCI_WRAMADDR bits
  204. SCI_WRAM_X_START          = 0x0000
  205. SCI_WRAM_Y_START          = 0x4000
  206. SCI_WRAM_I_START          = 0x8000
  207. SCI_WRAM_IO_START         = 0xC000
  208. SCI_WRAM_PARAMETRIC_START = 0xC0C0 ;VS1063
  209. SCI_WRAM_Y2_START         = 0xE000 ;VS1063
  210.  
  211. SCI_WRAM_X_OFFSET   = 0x0000
  212. SCI_WRAM_Y_OFFSET   = 0x4000
  213. SCI_WRAM_I_OFFSET   = 0x8000
  214. SCI_WRAM_IO_OFFSET  = 0x0000 ;I/O addresses are @0xC000 -> no offset
  215. SCI_WRAM_PARAMETRIC_OFFSET = 0xC0C0-0x1E00 ;VS1063
  216. SCI_WRAM_Y2_OFFSET  = 0x0000               ;VS1063
  217.  
  218. ;SCI_VOL bits
  219. SV_LEFT_B  = 8
  220. SV_RIGHT_B = 0
  221.  
  222. SV_LEFT   = 1<<8
  223. SV_RIGHT  = 1<<0
  224.  
  225. SV_LEFT_BITS  = 8
  226. SV_LEFT_MASK  = 0xFF00
  227. SV_RIGHT_BITS = 8
  228. SV_RIGHT_MASK = 0x00FF
  229.  
  230. SV_SILENCE    = 0xfefe
  231. SV_APOWERDOWN = 0xffff
  232.  
  233. ;SCI_MIXERVOL bits for VS1103
  234. SMV_ACTIVE_B = 15
  235. SMV_GAIN3_B  = 10
  236. SMV_GAIN2_B  =  5
  237. SMV_GAIN1_B  =  0
  238.  
  239. SMV_ACTIVE  = 1<<15
  240. SMV_GAIN3   = 1<<10
  241. SMV_GAIN2   = 1<< 5
  242. SMV_GAIN1   = 1<< 0
  243.  
  244. SMV_GAIN3_BITS = 5
  245. SMV_GAIN3_MASK = 0x7c00
  246. SMV_GAIN2_BITS = 5
  247. SMV_GAIN2_MASK = 0x04e0
  248. SMV_GAIN1_BITS = 5
  249. SMV_GAIN1_MASK = 0x001f
  250.  
  251. ;SCI_ADPCMRECCTL bits for VS1103
  252. SARC_DREQ512_B    = 8
  253. SARC_OUTODADPCM_B = 7
  254. SARC_MANUALGAIN_B = 6
  255. SARC_GAIN4_B      = 0
  256.  
  257. SARC_DREQ512     = 1<<8
  258. SARC_OUTODADPCM  = 1<<7
  259. SARC_MANUALGAIN  = 1<<6
  260. SARC_GAIN4       = 1<<0
  261.  
  262. SARC_GAIN4_BITS = 6
  263. SARC_GAIN4_MASK = 0x003f
  264.  
  265. ;SCI_RECQUALITY bits for VS1063
  266. RQ_MODE_B                   = 14
  267. RQ_MULT_B                   = 12
  268. RQ_OGG_PAR_SERIAL_NUMBER_B  = 11
  269. RQ_OGG_LIMIT_FRAME_LENGTH_B = 10
  270. RQ_MP3_NO_BIT_RESERVOIR_B   = 10
  271. RQ_BITRATE_BASE_B           =  0
  272.  
  273. RQ_MODE                    = 1<<14
  274. RQ_MULT                    = 1<<12
  275. RQ_OGG_PAR_SERIAL_NUMBER   = 1<<11
  276. RQ_OGG_LIMIT_FRAME_LENGTH  = 1<<10
  277. RQ_MP3_NO_BIT_RESERVOIR    = 1<<10
  278. RQ_BITRATE_BASE            = 1<< 0
  279.  
  280. RQ_MODE_BITS = 2
  281. RQ_MODE_MASK = 0xc000
  282. RQ_MULT_BITS = 2
  283. RQ_MULT_MASK = 0x3000
  284. RQ_BITRATE_BASE_BITS = 9
  285. RQ_BITRATE_BASE_MASK = 0x01ff
  286.  
  287. RQ_MODE_QUALITY  = 0x0000
  288. RQ_MODE_VBR      = 0x4000
  289. RQ_MODE_ABR      = 0x8000
  290. RQ_MODE_CBR      = 0xc000
  291.  
  292. RQ_MULT_10       = 0x0000
  293. RQ_MULT_100      = 0x1000
  294. RQ_MULT_1000     = 0x2000
  295. RQ_MULT_10000    = 0x3000
  296.  
  297. ;SCI_RECMODE bits for VS1063
  298. RM_63_CODEC_B    = 15
  299. RM_63_AEC_B      = 14
  300. RM_63_UART_TX_B  = 13
  301. RM_63_PAUSE_B    = 11
  302. RM_63_NO_RIFF_B  = 10
  303. RM_63_FORMAT_B   =  4
  304. RM_63_ADC_MODE_B =  0
  305.  
  306. RM_63_CODEC     = 1<<15
  307. RM_63_AEC       = 1<<14
  308. RM_63_UART_TX   = 1<<13
  309. RM_63_PAUSE     = 1<<11
  310. RM_63_NO_RIFF   = 1<<10
  311. RM_63_FORMAT    = 1<< 4
  312. RM_63_ADC_MODE  = 1<< 0
  313.  
  314. RM_63_FORMAT_BITS   = 4
  315. RM_63_FORMAT_MASK   = 0x00f0
  316. RM_63_ADCMODE_BITS  = 3
  317. RM_63_ADCMODE_MASK  = 0x0007
  318.  
  319. RM_63_FORMAT_IMA_ADPCM   = 0x0000
  320. RM_63_FORMAT_PCM         = 0x0010
  321. RM_63_FORMAT_G711_ULAW   = 0x0020
  322. RM_63_FORMAT_G711_ALAW   = 0x0030
  323. RM_63_FORMAT_G722_ADPCM  = 0x0040
  324. RM_63_FORMAT_OGG_VORBIS  = 0x0050
  325. RM_63_FORMAT_MP3         = 0x0060
  326.  
  327. RM_63_ADC_MODE_JOINT_AGC_STEREO  = 0x0000
  328. RM_63_ADC_MODE_DUAL_AGC_STEREO   = 0x0001
  329. RM_63_ADC_MODE_LEFT              = 0x0002
  330. RM_63_ADC_MODE_RIGHT             = 0x0003
  331. RM_63_ADC_MODE_MONO              = 0x0004
  332.  
  333. ;SCI_RECMODE bits for VS1053
  334. RM_53_FORMAT_B   = 2
  335. RM_53_ADC_MODE_B = 0
  336.  
  337. RM_53_FORMAT    = 1<< 2
  338. RM_53_ADC_MODE  = 1<< 0
  339.  
  340. RM_53_ADCMODE_BITS  = 2
  341. RM_53_ADCMODE_MASK  = 0x0003
  342.  
  343. RM_53_FORMAT_IMA_ADPCM   = 0x0000
  344. RM_53_FORMAT_PCM         = 0x0004
  345.  
  346. RM_53_ADC_MODE_JOINT_AGC_STEREO  = 0x0000
  347. RM_53_ADC_MODE_DUAL_AGC_STEREO   = 0x0001
  348. RM_53_ADC_MODE_LEFT              = 0x0002
  349. RM_53_ADC_MODE_RIGHT             = 0x0003
  350.  
  351. ;VS1063 definitions
  352.  
  353. ;VS1063 / VS1053 Parametric
  354. PAR_CHIP_ID                   = 0x1e00 ;VS1063, VS1053, 32 bits
  355. PAR_VERSION                   = 0x1e02 ;VS1063, VS1053
  356. PAR_CONFIG1                   = 0x1e03 ;VS1063, VS1053
  357. PAR_PLAY_SPEED                = 0x1e04 ;VS1063, VS1053
  358. PAR_BITRATE_PER_100           = 0x1e05 ;VS1063
  359. PAR_BYTERATE                  = 0x1e05 ;VS1053
  360. PAR_END_FILL_BYTE             = 0x1e06 ;VS1063, VS1053
  361. PAR_RATE_TUNE                 = 0x1e07 ;VS1063,         32 bits
  362. PAR_PLAY_MODE                 = 0x1e09 ;VS1063
  363. PAR_SAMPLE_COUNTER            = 0x1e0a ;VS1063,         32 bits
  364. PAR_VU_METER                  = 0x1e0c ;VS1063
  365. PAR_AD_MIXER_GAIN             = 0x1e0d ;VS1063
  366. PAR_AD_MIXER_CONFIG           = 0x1e0e ;VS1063
  367. PAR_PCM_MIXER_RATE            = 0x1e0f ;VS1063
  368. PAR_PCM_MIXER_FREE            = 0x1e10 ;VS1063
  369. PAR_PCM_MIXER_VOL             = 0x1e11 ;VS1063
  370. PAR_EQ5_DUMMY                 = 0x1e12 ;VS1063
  371. PAR_EQ5_LEVEL1                = 0x1e13 ;VS1063
  372. PAR_EQ5_FREQ1                 = 0x1e14 ;VS1063
  373. PAR_EQ5_LEVEL2                = 0x1e15 ;VS1063
  374. PAR_EQ5_FREQ2                 = 0x1e16 ;VS1063
  375. PAR_JUMP_POINTS               = 0x1e16 ;        VS1053
  376. PAR_EQ5_LEVEL3                = 0x1e17 ;VS1063
  377. PAR_EQ5_FREQ3                 = 0x1e18 ;VS1063
  378. PAR_EQ5_LEVEL4                = 0x1e19 ;VS1063
  379. PAR_EQ5_FREQ4                 = 0x1e1a ;VS1063
  380. PAR_EQ5_LEVEL5                = 0x1e1b ;VS1063
  381. PAR_EQ5_UPDATED               = 0x1e1c ;VS1063
  382. PAR_SPEED_SHIFTER             = 0x1e1d ;VS1063
  383. PAR_EARSPEAKER_LEVEL          = 0x1e1e ;VS1063
  384. PAR_SDI_FREE                  = 0x1e1f ;VS1063
  385. PAR_AUDIO_FILL                = 0x1e20 ;VS1063
  386. PAR_RESERVED0                 = 0x1e21 ;VS1063
  387. PAR_RESERVED1                 = 0x1e22 ;VS1063
  388. PAR_RESERVED2                 = 0x1e23 ;VS1063
  389. PAR_RESERVED3                 = 0x1e24 ;VS1063
  390. PAR_LATEST_SOF                = 0x1e25 ;VS1063,         32 bits
  391. PAR_LATEST_JUMP               = 0x1e26 ;        VS1053
  392. PAR_POSITION_MSEC             = 0x1e27 ;VS1063, VS1053, 32 bits
  393. PAR_RESYNC                    = 0x1e29 ;VS1063, VS1053
  394.  
  395. ;The following addresses are shared between modes.
  396. ;Generic pointer
  397. PAR_GENERIC                   = 0x1e2a ;VS1063, VS1053
  398.  
  399. ;Encoder mode
  400. PAR_ENC_TX_UART_DIV           = 0x1e2a ;VS1063
  401. PAR_ENC_TX_UART_BYTE_SPEED    = 0x1e2b ;VS1063
  402. PAR_ENC_TX_PAUSE_GPIO         = 0x1e2c ;VS1063
  403. PAR_ENC_AEC_ADAPT_MULTIPLIER  = 0x1e2d ;VS1063
  404. PAR_ENC_RESERVED              = 0x1e2e ;VS1063
  405. PAR_ENC_CHANNEL_MAX           = 0x1e3c ;VS1063
  406. PAR_ENC_SERIAL_NUMBER         = 0x1e3e ;VS1063
  407.  
  408. ;Decoding WMA
  409. PAR_WMA_CUR_PACKET_SIZE       = 0x1e2a ;VS1063, VS1053, 32 bits
  410. PAR_WMA_PACKET_SIZE           = 0x1e2c ;VS1063, VS1053, 32 bits
  411.  
  412. ;Decoding AAC
  413. PAR_AAC_SCE_FOUND_MASK        = 0x1e2a ;VS1063, VS1053
  414. PAR_AAC_CPE_FOUND_MASK        = 0x1e2b ;VS1063, VS1053
  415. PAR_AAC_LFE_FOUND_MASK        = 0x1e2c ;VS1063, VS1053
  416. PAR_AAC_PLAY_SELECT           = 0x1e2d ;VS1063, VS1053
  417. PAR_AAC_DYN_COMPRESS          = 0x1e2e ;VS1063, VS1053
  418. PAR_AAC_DYN_BOOST             = 0x1e2f ;VS1063, VS1053
  419. PAR_AAC_SBR_AND_PS_STATUS     = 0x1e30 ;VS1063, VS1053
  420. PAR_AAC_SBR_PS_FLAGS          = 0x1e31 ;VS1063
  421.  
  422. ;Decoding MIDI (VS1053)
  423. PAR_MIDI_BYTES_LEFT           = 0x1e2a ;VS1053, 32 bits
  424.  
  425. ;Decoding Vorbis
  426. PAR_VORBIS_GAIN               = 0x1e30 ;VS1063, VS1053
  427.  
  428. ;Bit definitions for parametric registers with bitfields
  429. PAR_CONFIG1_DIS_WMA_B     = 15 ;VS1063
  430. PAR_CONFIG1_DIS_AAC_B     = 14 ;VS1063
  431. PAR_CONFIG1_DIS_MP3_B     = 13 ;VS1063
  432. PAR_CONFIG1_DIS_FLAC_B    = 12 ;VS1063
  433. PAR_CONFIG1_DIS_CRC_B     =  8 ;VS1063
  434. PAR_CONFIG1_AAC_PS_B      =  6 ;VS1063, VS1053
  435. PAR_CONFIG1_AAC_SBR_B     =  4 ;VS1063, VS1053
  436. PAR_CONFIG1_MIDI_REVERB_B =  0 ;        VS1053
  437.  
  438. PAR_CONFIG1_DIS_WMA      = 1<<15 ;VS1063
  439. PAR_CONFIG1_DIS_AAC      = 1<<14 ;VS1063
  440. PAR_CONFIG1_DIS_MP3      = 1<<13 ;VS1063
  441. PAR_CONFIG1_DIS_FLAC     = 1<<12 ;VS1063
  442. PAR_CONFIG1_DIS_CRC      = 1<< 8 ;VS1063
  443. PAR_CONFIG1_AAC_PS       = 1<< 6 ;VS1063, VS1053
  444. PAR_CONFIG1_AAC_SBR      = 1<< 4 ;VS1063, VS1053
  445. PAR_CONFIG1_MIDI_REVERB  = 1<< 0 ;        VS1053
  446.  
  447. PAR_CONFIG1_AAC_PS_BITS   = 2      ;VS1063, VS1053
  448. PAR_CONFIG1_AAC_PS_MASK   = 0x00c0 ;VS1063, VS1053
  449. PAR_CONFIG1_AAC_SBR_BITS  = 2      ;VS1063, VS1053
  450. PAR_CONFIG1_AAC_SBR_MASK  = 0x0030 ;VS1063, VS1053
  451.  
  452. PAR_CONFIG1_AAC_SBR_ALWAYS_UPSAMPLE     = 0x0000 ;VS1063, VS1053
  453. PAR_CONFIG1_AAC_SBR_SELECTIVE_UPSAMPLE  = 0x0010 ;VS1063, VS1053
  454. PAR_CONFIG1_AAC_SBR_NEVER_UPSAMPLE      = 0x0020 ;VS1063, VS1053
  455. PAR_CONFIG1_AAC_SBR_DISABLE             = 0x0030 ;VS1063, VS1053
  456.  
  457. PAR_CONFIG1_AAC_PS_NORMAL               = 0x0000 ;VS1063, VS1053
  458. PAR_CONFIG1_AAC_PS_DOWNSAMPLED          = 0x0040 ;VS1063, VS1053
  459. PAR_CONFIG1_AAC_PS_DISABLE              = 0x00c0 ;VS1063, VS1053
  460.  
  461. PAR_PLAY_MODE_SPEED_SHIFTER_ENA_B = 6 ;VS1063
  462. PAR_PLAY_MODE_EQ5_ENA_B           = 5 ;VS1063
  463. PAR_PLAY_MODE_PCM_MIXER_ENA_B     = 4 ;VS1063
  464. PAR_PLAY_MODE_AD_MIXER_ENA_B      = 3 ;VS1063
  465. PAR_PLAY_MODE_VU_METER_ENA_B      = 2 ;VS1063
  466. PAR_PLAY_MODE_PAUSE_ENA_B         = 1 ;VS1063
  467. PAR_PLAY_MODE_MONO_ENA_B          = 0 ;VS1063
  468.  
  469. PAR_PLAY_MODE_SPEED_SHIFTER_ENA  = 1<<6 ;VS1063
  470. PAR_PLAY_MODE_EQ5_ENA            = 1<<5 ;VS1063
  471. PAR_PLAY_MODE_PCM_MIXER_ENA      = 1<<4 ;VS1063
  472. PAR_PLAY_MODE_AD_MIXER_ENA       = 1<<3 ;VS1063
  473. PAR_PLAY_MODE_VU_METER_ENA       = 1<<2 ;VS1063
  474. PAR_PLAY_MODE_PAUSE_ENA          = 1<<1 ;VS1063
  475. PAR_PLAY_MODE_MONO_ENA           = 1<<0 ;VS1063
  476.  
  477. PAR_VU_METER_LEFT_BITS   = 8      ;VS1063
  478. PAR_VU_METER_LEFT_MASK   = 0xFF00 ;VS1063
  479. PAR_VU_METER_RIGHT_BITS  = 8      ;VS1063
  480. PAR_VU_METER_RIGHT_MASK  = 0x00FF ;VS1063
  481.  
  482. PAR_AD_MIXER_CONFIG_MODE_B = 2 ;VS1063
  483. PAR_AD_MIXER_CONFIG_RATE_B = 2 ;VS1063
  484.  
  485. PAR_AD_MIXER_CONFIG_MODE_BITS  = 2      ;VS1063
  486. PAR_AD_MIXER_CONFIG_MODE_MASK  = 0x000c ;VS1063
  487. PAR_AD_MIXER_CONFIG_RATE_BITS  = 2      ;VS1063
  488. PAR_AD_MIXER_CONFIG_RATE_MASK  = 0x0003 ;VS1063
  489.  
  490. PAR_AD_MIXER_CONFIG_RATE_192K  = 0x0000 ;VS1063
  491. PAR_AD_MIXER_CONFIG_RATE_96K   = 0x0001 ;VS1063
  492. PAR_AD_MIXER_CONFIG_RATE_48K   = 0x0002 ;VS1063
  493. PAR_AD_MIXER_CONFIG_RATE_24K   = 0x0003 ;VS1063
  494.  
  495. PAR_AD_MIXER_CONFIG_MODE_STEREO  = 0x0000 ;VS1063
  496. PAR_AD_MIXER_CONFIG_MODE_MONO    = 0x0040 ;VS1063
  497. PAR_AD_MIXER_CONFIG_MODE_LEFT    = 0x0080 ;VS1063
  498. PAR_AD_MIXER_CONFIG_MODE_RIGHT   = 0x00c0 ;VS1063
  499.  
  500. PAR_AAC_SBR_AND_PS_STATUS_SBR_PRESENT_B       = 0 ;VS1063, VS1053
  501. PAR_AAC_SBR_AND_PS_STATUS_UPSAMPLING_ACTIVE_B = 1 ;VS1063, VS1053
  502. PAR_AAC_SBR_AND_PS_STATUS_PS_PRESENT_B        = 2 ;VS1063, VS1053
  503. PAR_AAC_SBR_AND_PS_STATUS_PS_ACTIVE_B         = 3 ;VS1063, VS1053
  504.  
  505. PAR_AAC_SBR_AND_PS_STATUS_SBR_PRESENT        = 1<<0 ;VS1063, VS1053
  506. PAR_AAC_SBR_AND_PS_STATUS_UPSAMPLING_ACTIVE  = 1<<1 ;VS1063, VS1053
  507. PAR_AAC_SBR_AND_PS_STATUS_PS_PRESENT         = 1<<2 ;VS1063, VS1053
  508. PAR_AAC_SBR_AND_PS_STATUS_PS_ACTIVE          = 1<<3 ;VS1063, VS1053
  509.