Pyalpha tools for performance audio demo in PRSDK.
[processor-sdk/performance-audio-tools.git] / alpha / sng_a.h
1 /******************************************************************************
2 * Copyright (c) 2016, Texas Instruments Incorporated - http://www.ti.com
3 *   All rights reserved.
4 *
5 *   Redistribution and use in source and binary forms, with or without
6 *   modification, are permitted provided that the following conditions are met:
7 *       * Redistributions of source code must retain the above copyright
8 *         notice, this list of conditions and the following disclaimer.
9 *       * Redistributions in binary form must reproduce the above copyright
10 *         notice, this list of conditions and the following disclaimer in the
11 *         documentation and/or other materials provided with the distribution.
12 *       * Neither the name of Texas Instruments Incorporated nor the
13 *         names of its contributors may be used to endorse or promote products
14 *         derived from this software without specific prior written permission.
15 *
16 *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 *   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 *   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 *   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
20 *   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 *   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 *   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 *   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 *   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 *   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
26 *   THE POSSIBILITY OF SUCH DAMAGE.
27 *****************************************************************************/
28 //
29 // SNG Decoder alpha codes
30 //
32 #ifndef _SNG_A
33 #define _SNG_A
35 #include <acpbeta.h>
37 #define  readSNGMode 0xc200+STD_BETA_SNG,0x0400
38 #define writeSNGModeDisable 0xca00+STD_BETA_SNG,0x0400
39 #define writeSNGModeEnable 0xca00+STD_BETA_SNG,0x0401
41 #define  readSNGChannel 0xc200+STD_BETA_SNG,0x0500
42 #define writeSNGChannel(N) 0xca00+STD_BETA_SNG,0x0500+((N)&0xff)
43 /* in support of inverse compilation only */
44 #define writeSNGChannel__0__ writeSNGChannel(0)
46 #define  readSNGCommand 0xc200+STD_BETA_SNG,0x0600
47 #define writeSNGCommandNone 0xca00+STD_BETA_SNG,0x0600
48 #define writeSNGCommandReset 0xca00+STD_BETA_SNG,0x0601
49 #define writeSNGCommandAdvance 0xca00+STD_BETA_SNG,0x0602
50 #define writeSNGCommandPause 0xca00+STD_BETA_SNG,0x0603
51 #define writeSNGCommandContinue writeSNGCommandNone 
53 #define  readSNGSong 0xc200+STD_BETA_SNG,0x0700
54 #define writeSNGSongNone 0xca00+STD_BETA_SNG,0x0700
55 #define writeSNGSongNoiseWhiteSatChannel 0xcb00+STD_BETA_SNG,0x0006,0x1001
56 #define writeSNGSongNoiseWhiteSatChannelContinue 0xca00+STD_BETA_SNG,0x0710
57 #define writeSNGSongNoiseWhiteSatSequence 0xcb00+STD_BETA_SNG,0x0006,0x1801
58 #define writeSNGSongNoiseWhiteSatSequenceContinue 0xca00+STD_BETA_SNG,0x0718
59 #define writeSNGSongNoiseWhiteSubChannel 0xcb00+STD_BETA_SNG,0x0006,0x1101
60 #define writeSNGSongNoiseWhiteSubChannelContinue 0xca00+STD_BETA_SNG,0x0711
61 #define writeSNGSongNoiseWhiteSubSequence 0xcb00+STD_BETA_SNG,0x0006,0x1901
62 #define writeSNGSongNoiseWhiteSubSequenceContinue 0xca00+STD_BETA_SNG,0x0719
63 #define writeSNGSongNoiseDolbySatChannel 0xcb00+STD_BETA_SNG,0x0006,0x2001
64 #define writeSNGSongNoiseDolbySatChannelContinue 0xca00+STD_BETA_SNG,0x0720
65 #define writeSNGSongNoiseDolbySatSequence 0xcb00+STD_BETA_SNG,0x0006,0x2801
66 #define writeSNGSongNoiseDolbySatSequenceContinue 0xca00+STD_BETA_SNG,0x0728
67 #define writeSNGSongNoiseTISubChannel 0xcb00+STD_BETA_SNG,0x0006,0x2101
68 #define writeSNGSongNoiseTISubChannelContinue 0xca00+STD_BETA_SNG,0x0721
69 #define writeSNGSongNoiseTISubSequence 0xcb00+STD_BETA_SNG,0x0006,0x2901
70 #define writeSNGSongNoiseTISubSequenceContinue 0xca00+STD_BETA_SNG,0x0729
71 #define writeSNGSongNoiseTHXSatChannel 0xcb00+STD_BETA_SNG,0x0006,0x3001
72 #define writeSNGSongNoiseTHXSatChannelContinue 0xca00+STD_BETA_SNG,0x0730
73 #define writeSNGSongNoiseTHXSatSequence 0xcb00+STD_BETA_SNG,0x0006,0x3801
74 #define writeSNGSongNoiseTHXSatSequenceContinue 0xca00+STD_BETA_SNG,0x0738
75 #define writeSNGSongNoiseTHXSubChannel 0xcb00+STD_BETA_SNG,0x0006,0x3101
76 #define writeSNGSongNoiseTHXSubChannelContinue 0xca00+STD_BETA_SNG,0x0731
77 #define writeSNGSongNoiseTHXSubSequence 0xcb00+STD_BETA_SNG,0x0006,0x3901
78 #define writeSNGSongNoiseTHXSubSequenceContinue 0xca00+STD_BETA_SNG,0x0739
79 #define writeSNGSongToneSatChannel 0xcb00+STD_BETA_SNG,0x0006,0x4001
80 #define writeSNGSongToneSatChannelContinue 0xca00+STD_BETA_SNG,0x0740
81 #define writeSNGSongToneSatSequence 0xcb00+STD_BETA_SNG,0x0006,0x4801
82 #define writeSNGSongToneSatSequenceContinue 0xca00+STD_BETA_SNG,0x0748
83 #define writeSNGSongToneSubChannel 0xcb00+STD_BETA_SNG,0x0006,0x4101
84 #define writeSNGSongToneSubChannelContinue 0xca00+STD_BETA_SNG,0x0741
85 #define writeSNGSongToneSubSequence 0xcb00+STD_BETA_SNG,0x0006,0x4901
86 #define writeSNGSongToneSubSequenceContinue 0xca00+STD_BETA_SNG,0x0749
87 #define writeSNGSongMultiTone 0xcb00+STD_BETA_SNG,0x0006,0x5001
89 #define writeSNGSongNoisePinkSatChannel 0xcb00+STD_BETA_SNG,0x0006,0x6001
90 #define writeSNGSongNoisePinkSatChannelContinue 0xca00+STD_BETA_SNG,0x0760
91 #define writeSNGSongNoisePinkSatSequence 0xcb00+STD_BETA_SNG,0x0006,0x6801
92 #define writeSNGSongNoisePinkSatSequenceContinue 0xca00+STD_BETA_SNG,0x0768
93 #define writeSNGSongNoisePinkSubChannel 0xcb00+STD_BETA_SNG,0x0006,0x6101
94 #define writeSNGSongNoisePinkSubChannelContinue 0xca00+STD_BETA_SNG,0x0761
95 #define writeSNGSongNoisePinkSubSequence 0xcb00+STD_BETA_SNG,0x0006,0x6901
96 #define writeSNGSongNoisePinkSubSequenceContinue 0xca00+STD_BETA_SNG,0x0769
99 #define  readSNGChannelConfigurationProgram 0xc600+STD_BETA_SNG,0x2008
100 #define writeSNGChannelConfigurationProgramUnknown 0xcc00+STD_BETA_SNG,0x0020,0x0000,0x0000
102 #define writeSNGChannelConfigurationProgramNone 0xcc00+STD_BETA_SNG,0x0020,0x0001,0x0000
103 #define writeSNGChannelConfigurationProgramMono 0xcc00+STD_BETA_SNG,0x0020,0x0002,0x0000
104 #define writeSNGChannelConfigurationProgramStereo 0xcc00+STD_BETA_SNG,0x0020,0x0003,0x0000
105 #define writeSNGChannelConfigurationProgramStereoLtRt 0xcc00+STD_BETA_SNG,0x0020,0x0003,0x0002
106 #define writeSNGChannelConfigurationProgramStereoMono 0xcc00+STD_BETA_SNG,0x0020,0x0003,0x0003
107 #define writeSNGChannelConfigurationProgram3Stereo 0xcc00+STD_BETA_SNG,0x0020,0x0108,0x0000
108 #define writeSNGChannelConfigurationProgramPhantom 0xcc00+STD_BETA_SNG,0x0020,0x0105,0x0000
109 #define writeSNGChannelConfigurationProgramSurround 0xcc00+STD_BETA_SNG,0x0020,0x010a,0x0000
111 #define writeSNGChannelConfigurationProgramNone_0 0xcc00+STD_BETA_SNG,0x0020,0x0001,0x0000
112 #define writeSNGChannelConfigurationProgramMono_0 0xcc00+STD_BETA_SNG,0x0020,0x0002,0x0000
113 #define writeSNGChannelConfigurationProgramPhantom0_0 0xcc00+STD_BETA_SNG,0x0020,0x0003,0x0000
114 #define writeSNGChannelConfigurationProgramPhantom0Stereo_0 0xcc00+STD_BETA_SNG,0x0020,0x0003,0x0001
115 #define writeSNGChannelConfigurationProgramPhantom0LtRt_0 0xcc00+STD_BETA_SNG,0x0020,0x0003,0x0002
116 #define writeSNGChannelConfigurationProgramPhantom0Mono_0 0xcc00+STD_BETA_SNG,0x0020,0x0003,0x0003
117 #define writeSNGChannelConfigurationProgramPhantom0Dual_0 0xcc00+STD_BETA_SNG,0x0020,0x0003,0x0004
118 #define writeSNGChannelConfigurationProgramPhantom1_0 0xcc00+STD_BETA_SNG,0x0020,0x0004,0x0000
119 #define writeSNGChannelConfigurationProgramPhantom2_0 0xcc00+STD_BETA_SNG,0x0020,0x0005,0x0000
120 #define writeSNGChannelConfigurationProgramPhantom2Stereo_0 0xcc00+STD_BETA_SNG,0x0020,0x0005,0x0001
121 #define writeSNGChannelConfigurationProgramPhantom2LtRt_0 0xcc00+STD_BETA_SNG,0x0020,0x0005,0x0002
122 #define writeSNGChannelConfigurationProgramPhantom2Mono_0 0xcc00+STD_BETA_SNG,0x0020,0x0005,0x0003
123 #define writeSNGChannelConfigurationProgramPhantom3_0 0xcc00+STD_BETA_SNG,0x0020,0x0006,0x0000
124 #define writeSNGChannelConfigurationProgramPhantom4_0 0xcc00+STD_BETA_SNG,0x0020,0x0007,0x0000
125 #define writeSNGChannelConfigurationProgramSurround0_0 0xcc00+STD_BETA_SNG,0x0020,0x0008,0x0000
126 #define writeSNGChannelConfigurationProgramSurround1_0 0xcc00+STD_BETA_SNG,0x0020,0x0009,0x0000
127 #define writeSNGChannelConfigurationProgramSurround2_0 0xcc00+STD_BETA_SNG,0x0020,0x000a,0x0000
128 #define writeSNGChannelConfigurationProgramSurround2Stereo_0 0xcc00+STD_BETA_SNG,0x0020,0x000a,0x0001
129 #define writeSNGChannelConfigurationProgramSurround2LtRt_0 0xcc00+STD_BETA_SNG,0x0020,0x000a,0x0002
130 #define writeSNGChannelConfigurationProgramSurround2Mono_0 0xcc00+STD_BETA_SNG,0x0020,0x000a,0x0003
131 #define writeSNGChannelConfigurationProgramSurround3_0 0xcc00+STD_BETA_SNG,0x0020,0x000b,0x0000
132 #define writeSNGChannelConfigurationProgramSurround4_0 0xcc00+STD_BETA_SNG,0x0020,0x000c,0x0000
134 #define writeSNGChannelConfigurationProgramNone_1 0xcc00+STD_BETA_SNG,0x0020,0x0101,0x0000
135 #define writeSNGChannelConfigurationProgramMono_1 0xcc00+STD_BETA_SNG,0x0020,0x0102,0x0000
136 #define writeSNGChannelConfigurationProgramPhantom0_1 0xcc00+STD_BETA_SNG,0x0020,0x0103,0x0000
137 #define writeSNGChannelConfigurationProgramPhantom0Stereo_1 0xcc00+STD_BETA_SNG,0x0020,0x0103,0x0001
138 #define writeSNGChannelConfigurationProgramPhantom0LtRt_1 0xcc00+STD_BETA_SNG,0x0020,0x0103,0x0002
139 #define writeSNGChannelConfigurationProgramPhantom0Mono_1 0xcc00+STD_BETA_SNG,0x0020,0x0103,0x0003
140 #define writeSNGChannelConfigurationProgramPhantom0Dual_1 0xcc00+STD_BETA_SNG,0x0020,0x0103,0x0004
141 #define writeSNGChannelConfigurationProgramPhantom1_1 0xcc00+STD_BETA_SNG,0x0020,0x0104,0x0000
142 #define writeSNGChannelConfigurationProgramPhantom2_1 0xcc00+STD_BETA_SNG,0x0020,0x0105,0x0000
143 #define writeSNGChannelConfigurationProgramPhantom2Stereo_1 0xcc00+STD_BETA_SNG,0x0020,0x0105,0x0001
144 #define writeSNGChannelConfigurationProgramPhantom2LtRt_1 0xcc00+STD_BETA_SNG,0x0020,0x0105,0x0002
145 #define writeSNGChannelConfigurationProgramPhantom2Mono_1 0xcc00+STD_BETA_SNG,0x0020,0x0105,0x0003
146 #define writeSNGChannelConfigurationProgramPhantom3_1 0xcc00+STD_BETA_SNG,0x0020,0x0106,0x0000
147 #define writeSNGChannelConfigurationProgramPhantom4_1 0xcc00+STD_BETA_SNG,0x0020,0x0107,0x0000
148 #define writeSNGChannelConfigurationProgramSurround0_1 0xcc00+STD_BETA_SNG,0x0020,0x0108,0x0000
149 #define writeSNGChannelConfigurationProgramSurround1_1 0xcc00+STD_BETA_SNG,0x0020,0x0109,0x0000
150 #define writeSNGChannelConfigurationProgramSurround2_1 0xcc00+STD_BETA_SNG,0x0020,0x010a,0x0000
151 #define writeSNGChannelConfigurationProgramSurround2Stereo_1 0xcc00+STD_BETA_SNG,0x0020,0x010a,0x0001
152 #define writeSNGChannelConfigurationProgramSurround2LtRt_1 0xcc00+STD_BETA_SNG,0x0020,0x010a,0x0002
153 #define writeSNGChannelConfigurationProgramSurround2Mono_1 0xcc00+STD_BETA_SNG,0x0020,0x010a,0x0003
154 #define writeSNGChannelConfigurationProgramSurround3_1 0xcc00+STD_BETA_SNG,0x0020,0x010b,0x0000
155 #define writeSNGChannelConfigurationProgramSurround4_1 0xcc00+STD_BETA_SNG,0x0020,0x010c,0x0000
157 //ATMOS
158 #define writeSNGChannelConfigurationProgramSurround2ATMOSMono_0(n) 0xce00+STD_BETA_SNG,0x2008,0x000a,0x0003,(n<<8),0x0000
159 #define writeSNGChannelConfigurationProgramSurround2ATMOSMono_1(n) 0xce00+STD_BETA_SNG,0x2008,0x010a,0x0003,(n<<8),0x0000
160 #define writeSNGChannelConfigurationProgramSurround2ATMOSMono_2(n) 0xce00+STD_BETA_SNG,0x2008,0x020a,0x0003,(n<<8),0x0000
162 #define writeSNGChannelConfigurationProgramSurround2LwRwATMOSMono_0(n) 0xce00+STD_BETA_SNG,0x2008,0x000a,0x0103,(n<<8),0x0000
163 #define writeSNGChannelConfigurationProgramSurround2LwRwATMOSMono_1(n) 0xce00+STD_BETA_SNG,0x2008,0x010a,0x0103,(n<<8),0x0000
164 #define writeSNGChannelConfigurationProgramSurround2LwRwATMOSMono_2(n) 0xce00+STD_BETA_SNG,0x2008,0x020a,0x0103,(n<<8),0x0000
166 #define writeSNGChannelConfigurationProgramSurround4ATMOSMono_0(n) 0xce00+STD_BETA_SNG,0x2008,0x000c,0x0003,(n<<8),0x0000
167 #define writeSNGChannelConfigurationProgramSurround4ATMOSMono_1(n) 0xce00+STD_BETA_SNG,0x2008,0x010c,0x0003,(n<<8),0x0000
168 #define writeSNGChannelConfigurationProgramSurround4ATMOSMono_2(n) 0xce00+STD_BETA_SNG,0x2008,0x020c,0x0003,(n<<8),0x0000
170 #define writeSNGChannelConfigurationProgramSurround4LwRwATMOSMono_0(n) 0xce00+STD_BETA_SNG,0x2008,0x000c,0x0103,(n<<8),0x0000
171 #define writeSNGChannelConfigurationProgramSurround4LwRwATMOSMono_1(n) 0xce00+STD_BETA_SNG,0x2008,0x010c,0x0103,(n<<8),0x0000
172 #define writeSNGChannelConfigurationProgramSurround4LwRwATMOSMono_2(n) 0xce00+STD_BETA_SNG,0x2008,0x020c,0x0103,(n<<8),0x0000
174 #define writeSNGChannelConfigurationProgramSurround2LtfRtfLtrRtr_0 writeSNGChannelConfigurationProgramSurround2ATMOSMono_0(0xA)
175 #define writeSNGChannelConfigurationProgramSurround2LtfRtfLtrRtr_1 writeSNGChannelConfigurationProgramSurround2ATMOSMono_1(0xA)
176 #define writeSNGChannelConfigurationProgramSurround2LtfRtfLtrRtr_2 writeSNGChannelConfigurationProgramSurround2ATMOSMono_2(0xA)
178 #define writeSNGChannelConfigurationProgramSurround4LtmRtm_0 writeSNGChannelConfigurationProgramSurround4ATMOSMono_0(0x4)
179 #define writeSNGChannelConfigurationProgramSurround4LtmRtm_1 writeSNGChannelConfigurationProgramSurround4ATMOSMono_1(0x4)
180 #define writeSNGChannelConfigurationProgramSurround4LtmRtm_2 writeSNGChannelConfigurationProgramSurround4ATMOSMono_2(0x4)
182 #define writeSNGChannelConfigurationProgramSurround2LwRwLtfRtfLtrRtr_0 writeSNGChannelConfigurationProgramSurround2LwRwATMOSMono_0(0xA)
183 #define writeSNGChannelConfigurationProgramSurround2LwRwLtfRtfLtrRtr_1 writeSNGChannelConfigurationProgramSurround2LwRwATMOSMono_1(0xA)
184 #define writeSNGChannelConfigurationProgramSurround2LwRwLtfRtfLtrRtr_2 writeSNGChannelConfigurationProgramSurround2LwRwATMOSMono_2(0xA)
186 #define writeSNGChannelConfigurationProgramSurround4LtfRtfLtrRtr_0 writeSNGChannelConfigurationProgramSurround4ATMOSMono_0(0xA)
187 #define writeSNGChannelConfigurationProgramSurround4LtfRtfLtrRtr_1 writeSNGChannelConfigurationProgramSurround4ATMOSMono_1(0xA)
188 #define writeSNGChannelConfigurationProgramSurround4LtfRtfLtrRtr_2 writeSNGChannelConfigurationProgramSurround4ATMOSMono_2(0xA)
190 #define writeSNGChannelConfigurationProgramSurround4LwRwLtfRtfLtrRtr_0 writeSNGChannelConfigurationProgramSurround4LwRwATMOSMono_0(0xA)
191 #define writeSNGChannelConfigurationProgramSurround4LwRwLtfRtfLtrRtr_1 writeSNGChannelConfigurationProgramSurround4LwRwATMOSMono_1(0xA)
192 #define writeSNGChannelConfigurationProgramSurround4LwRwLtfRtfLtrRtr_2 writeSNGChannelConfigurationProgramSurround4LwRwATMOSMono_2(0xA)
195 #define  readSNGVolume 0xc200+STD_BETA_SNG,0x0c00
196 #define writeSNGVolume(N) 0xca00+STD_BETA_SNG,0x0c00+((N)&0xff)
197 /* in support of inverse compilation only */
198 #define writeSNGVolume__0__ writeSNGVolume(0)
200 #define  readSNGIntervalMS 0xc300+STD_BETA_SNG,0x000e
201 #define writeSNGIntervalMS(N) 0xcb00+STD_BETA_SNG,0x000e,((N)&0xffff)
202 #define wroteSNGIntervalMS 0xcb00+STD_BETA_SNG,0x000e
204 #define  readSNGFreqSatHz 0xc300+STD_BETA_SNG,0x0010
205 #define writeSNGFreqSatHz(N) 0xcb00+STD_BETA_SNG,0x0010,((N)&0xffff)
206 #define wroteSNGFreqSatHz 0xcb00+STD_BETA_SNG,0x0010
208 #define  readSNGFreqSubHz 0xc300+STD_BETA_SNG,0x0012
209 #define writeSNGFreqSubHz(N) 0xcb00+STD_BETA_SNG,0x0012,((N)&0xffff)
210 #define wroteSNGFreqSubHz 0xcb00+STD_BETA_SNG,0x0012
212 #define  readSNGMultSatQ8 0xc300+STD_BETA_SNG,0x0014
213 #define writeSNGMultSatQ8(N) 0xcb00+STD_BETA_SNG,0x0014,((N)&0xffff)
214 #define wroteSNGMultSatQ8 0xcb00+STD_BETA_SNG,0x0014
216 #define  readSNGMultSubQ8 0xc300+STD_BETA_SNG,0x0016
217 #define writeSNGMultSubQ8(N) 0xcb00+STD_BETA_SNG,0x0016,((N)&0xffff)
218 #define wroteSNGMultSubQ8 0xcb00+STD_BETA_SNG,0x0016
220 #define  readSNGPhaseSatMS 0xc300+STD_BETA_SNG,0x0018
221 #define writeSNGPhaseSatMS(N) 0xcb00+STD_BETA_SNG,0x0018,((N)&0xffff)
222 #define wroteSNGPhaseSatMS 0xcb00+STD_BETA_SNG,0x0018
224 #define  readSNGPhaseSubMS 0xc300+STD_BETA_SNG,0x001a
225 #define writeSNGPhaseSubMS(N) 0xcb00+STD_BETA_SNG,0x001a,((N)&0xffff)
226 #define wroteSNGPhaseSubMS 0xcb00+STD_BETA_SNG,0x001a
228 #define  readSNGStatus 0xc508,0x0000+STD_BETA_SNG
229 #define  readSNGControl \
230          readSNGMode, \
231          readSNGChannel, \
232          readSNGCommand, \
233          readSNGSong, \
234          readSNGChannelConfigurationProgram, \
235          readSNGVolume, \
236          readSNGIntervalMS, \
237          readSNGFreqSatHz, \
238          readSNGFreqSubHz, \
239          readSNGMultSubQ8, \
240          readSNGMultSubQ8, \
241          readSNGPhaseSatMS, \
242          readSNGPhaseSubMS
244 #endif /* _SNG_A */