Add dap and bmda to alpha command files
[processor-sdk/performance-audio-sr.git] / processor_audio_sdk_1_00_00_00 / tools / alpha / dap_a.h
2 /*
3 * Copyright (C) 2004-2014 Texas Instruments Incorporated - http://www.ti.com/
4 * All rights reserved.  
5 *
6 *  Redistribution and use in source and binary forms, with or without
7 *  modification, are permitted provided that the following conditions
8 *  are met:
9 *
10 *    Redistributions of source code must retain the above copyright
11 *    notice, this list of conditions and the following disclaimer.
12 *
13 *    Redistributions in binary form must reproduce the above copyright
14 *    notice, this list of conditions and the following disclaimer in the
15 *    documentation and/or other materials provided with the
16 *    distribution.
17 *
18 *    Neither the name of Texas Instruments Incorporated nor the names of
19 *    its contributors may be used to endorse or promote products derived
20 *    from this software without specific prior written permission.
21 *
22 *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
23 *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 *
34 */
36 #ifndef _DAP_A
37 #define _DAP_A
39 #include <acpbeta.h>
41 #define readDAPMode                 0xc200+STD_BETA_DAP,0x0400
42 #define writeDAPModeDisable         0xca00+STD_BETA_DAP,0x0400
43 #define writeDAPModeEnable          0xca00+STD_BETA_DAP,0x0401
45 #define readDAPSurrDecMode          0xc200+STD_BETA_DAP,0x0800
46 #define writeDAPSurrDecModeDisable  0xca00+STD_BETA_DAP,0x0800
47 #define writeDAPSurrDecModeEnable   0xca00+STD_BETA_DAP,0x0801
49 #define readDAPSurrCntSprdMode      0xc200+STD_BETA_DAP,0x0C00
50 #define writeDAPSurrCntSprdDisable  0xca00+STD_BETA_DAP,0x0C00
51 #define writeDAPSurrCntSprdEnable   0xca00+STD_BETA_DAP,0x0C01
53 #define readDAPSurrComprBoost       0xc300+STD_BETA_DAP,0x0010
54 #define writeDAPSurrComprBoost(NN)  0xcb00+STD_BETA_DAP,0x0010,NN
56 #define readDAPVirSurrAngle         0xc300+STD_BETA_DAP,0x0014
57 #define writeDAPVirSurrAngle(NN)    0xcb00+STD_BETA_DAP,0x0014,NN
59 #define readDAPVirHeightAngle       0xc300+STD_BETA_DAP,0x0018
60 #define writeDAPVirHeightAngle(NN)  0xcb00+STD_BETA_DAP,0x0018,NN
62 #define readDAPVolLevMode           0xc200+STD_BETA_DAP,0x1C00
63 #define writeDAPVolLevModeDisable   0xca00+STD_BETA_DAP,0x1C00
64 #define writeDAPVolLevModeEnable    0xca00+STD_BETA_DAP,0x1C01
66 #define readDAPVolLevAmount         0xc300+STD_BETA_DAP,0x0020
67 #define writeDAPVolLevAmount(NN)    0xcb00+STD_BETA_DAP,0x0020,NN
69 #define readDAPVolLevInTarget       0xc300+STD_BETA_DAP,0x0024
70 #define writeDAPVolLevInTarget(NN)  0xcb00+STD_BETA_DAP,0x0024,NN
72 #define readDAPVolLevOutTarget       0xc300+STD_BETA_DAP,0x0028
73 #define writeDAPVolLevAOutTarget(NN) 0xcb00+STD_BETA_DAP,0x0028,NN
75 #define readDAPHeightChannels       0xc200+STD_BETA_DAP,0x2C00
76 #define writeDAPHeightChannelsRS    0xca00+STD_BETA_DAP,0x2C00
77 #define writeDAPHeightChannelsTM    0xca00+STD_BETA_DAP,0x2C01
79 #define readDAPHeightFltMode        0xc200+STD_BETA_DAP,0x3000
80 #define writeDAPHeightFltMode0      0xca00+STD_BETA_DAP,0x3000
81 #define writeDAPHeightFltMode1      0xca00+STD_BETA_DAP,0x3001
82 #define writeDAPHeightFltMode2      0xca00+STD_BETA_DAP,0x3002
84 #define readDAPVolMaximizerBoost      0xc300+STD_BETA_DAP,0x0034
85 #define writeDAPVolMaximizerBoost(NN) 0xcb00+STD_BETA_DAP,0x0034,NN
87 #define readDAPVolModMode           0xc200+STD_BETA_DAP,0x3800
88 #define writeDAPVolModModeDisable   0xca00+STD_BETA_DAP,0x3800
89 #define writeDAPVolModModeEnable    0xca00+STD_BETA_DAP,0x3801
91 #define readDAPVolModCal            0xc300+STD_BETA_DAP,0x003C
92 #define writeDAPVolModCal(NN)       0xcb00+STD_BETA_DAP,0x003C,NN
94 #define readDAPIEQMode              0xc200+STD_BETA_DAP,0x4000
95 #define writeDAPIEQModeDisable      0xca00+STD_BETA_DAP,0x4000
96 #define writeDAPIEQModeEnable       0xca00+STD_BETA_DAP,0x4001
98 #define readDAPIEQAmount            0xc300+STD_BETA_DAP,0x0044
99 #define writeDAPIEQAmount(NN)       0xcb00+STD_BETA_DAP,0x0044,NN
101 #define  readDAPIEQBands 0xc600+STD_BETA_DAP,0x48A4
102 #define writeDAPIEQBands(N,F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12,F13,F14,F15,F16,F17,F18,F19,F20, \
103                            L1,L2,L3,L4,L5,L6,L7,L8,L9,L10,L11,L12,L13,L14,L15,L16,L17,L18,L19,L20) \
104                          0xce00+STD_BETA_DAP,0x48A4,\
105                          N,F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12,F13,F14,F15,F16,F17,F18,F19,F20, \
106                            L1,L2,L3,L4,L5,L6,L7,L8,L9,L10,L11,L12,L13,L14,L15,L16,L17,L18,L19,L20
108 #define readDAPDiaEnhMode           0xc200+STD_BETA_DAP,0xEC00
109 #define writeDAPDiaEnhModeDisable   0xca00+STD_BETA_DAP,0xEC00
110 #define writeDAPDiaEnhModeEnable    0xca00+STD_BETA_DAP,0xEC01
112 #define readDAPDiaEnhAmount         0xc300+STD_BETA_DAP,0x00F0
113 #define writeDAPDiaEnhAmount(NN)    0xcb00+STD_BETA_DAP,0x00F0,NN
115 #define readDAPDiaEnhDucking        0xc300+STD_BETA_DAP,0x00F4
116 #define writeDAPDiaEnhDucking(NN)   0xcb00+STD_BETA_DAP,0x00F4,NN
118 #define readDAPBassExtractMode           0xc200+STD_BETA_DAP,0xF800
119 #define writeDAPBassExtractModeDisable   0xca00+STD_BETA_DAP,0xF800
120 #define writeDAPBassExtractModeEnable    0xca00+STD_BETA_DAP,0xF801
122 #define readDAPBassExtractFC        0xc300+STD_BETA_DAP,0x00FC
123 #define writeDAPBassExtractFC(NN)   0xcb00+STD_BETA_DAP,0x00FC,NN
125 #define readDAPRegMode              0xc300+STD_BETA_DAP,0x0100
126 #define writeDAPRegModeModeDisable  0xcb00+STD_BETA_DAP,0x0100,0
127 #define writeDAPRegModeModeEnable   0xcb00+STD_BETA_DAP,0x0100,1
129 #define readDAPRegPreserveAmount      0xc300+STD_BETA_DAP,0x0104
130 #define writeDAPRegPreserveAmount(NN) 0xcb00+STD_BETA_DAP,0x0104,NN
132 #define readDAPRegRelaxAmount         0xc300+STD_BETA_DAP,0x0108
133 #define writeDAPRegRelaxAmount(NN)    0xcb00+STD_BETA_DAP,0x0108,NN
135 #define readDAPSystemGain             0xc300+STD_BETA_DAP,0x010C
136 #define writeDAPSystemGain(NN)        0xcb00+STD_BETA_DAP,0x010C,NN
138 #define readDAPSystemPreGain          0xc300+STD_BETA_DAP,0x0110
139 #define writeDAPSystemPreGain(NN)     0xcb00+STD_BETA_DAP,0x0110,NN
141 #define readDAPSystemPostGain         0xc300+STD_BETA_DAP,0x0114
142 #define writeDAPSystemPostGain(NN)    0xcb00+STD_BETA_DAP,0x0114,NN
144 #define readDAPCalibrationBoost       0xc300+STD_BETA_DAP,0x0118
145 #define writeDAPCalibrationBoost(NN)  0xcb00+STD_BETA_DAP,0x0118,NN
147 #define readDAPAudioProcMode           0xc300+STD_BETA_DAP,0x011C
148 #define writeDAPAudioProcModeUndefined 0xcb00+STD_BETA_DAP,0x011C,-1
149 #define writeDAPAudioProcModeMovie     0xcb00+STD_BETA_DAP,0x011C,0
150 #define writeDAPAudioProcModeMusic     0xcb00+STD_BETA_DAP,0x011C,1
151 #define writeDAPAudioProcModeNight     0xcb00+STD_BETA_DAP,0x011C,2
153 #define readDAPOutputModeOverride         0xc300+STD_BETA_DAP,0x0120
154 #define writeDAPOutputModeOverrideDisable 0xcb00+STD_BETA_DAP,0x0120,0
155 #define writeDAPOutputModeOverrideEnable  0xcb00+STD_BETA_DAP,0x0120,1
157 #define readDAPOutputMode                 0xc506+STD_BETA_DAP,0x0124,0x198
158 #define writeDAPProcessingMode(NN)        0xcd06+STD_BETA_DAP,0x0124,0x4,NN
159 #define writeDAPNBOutputChannels(NN)      0xcd06+STD_BETA_DAP,0x0128,0x4,NN
160 #define writeDAPOutputModeMTX(S,N1,N2)\
161     0xcd06+STD_BETA_DAP,0x012C,S,N1,N2
163 #define   readDAPStatus 0xc508,STD_BETA_DAP
164 #define   readDAPCommon 0xc508,STD_BETA_DAP
165 #define   readDAPControl \
166           readDAPMode, \
167           readDAPSurrDecMode, \
168           readDAPSurrCntSprdMode
170 #endif /* _DAP_A */