]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - processor_audio_sdk_1_00_00_00/tools/alpha/pcm_a.h
Fix headers
[processor-sdk/performance-audio-sr.git] / processor_audio_sdk_1_00_00_00 / tools / alpha / pcm_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 //
30 // PCM Decoder alpha codes
31 //
32 //
33 //
35 #ifndef _PCM_A
36 #define _PCM_A
38 #include <acpbeta.h>
40 #define  readPCMMode 0xc200+STD_BETA_PCM,0x0400
41 /* Note: this should not be disabled */
42 #define writePCMModeEnable 0xca00+STD_BETA_PCM,0x0401
44 #define  readPCMRamp 0xc200+STD_BETA_PCM,0x0500
45 #define writePCMRampDisable 0xca00+STD_BETA_PCM,0x0500
46 #define writePCMRampEnable 0xca00+STD_BETA_PCM,0x0501
48 #define  readPCMScaleVolume 0xc200+STD_BETA_PCM,0x0600
49 #define writePCMScaleVolumeN(NN) 0xca00+STD_BETA_PCM,0x0600+(0xff&(NN))
50 #define wrotePCMScaleVolume 0xca00+STD_BETA_PCM,0x0600
52 #define  readPCMLFEDownmixVolume 0xc200+STD_BETA_PCM,0x0700
53 #define writePCMLFEDownmixVolumeN(NN) 0xca00+STD_BETA_PCM,0x0700+(0xff&(NN))
54 /* in support of inverse compilation only */
55 #define writePCMLFEDownmixVolumeN__20__ writePCMLFEDownmixVolumeN(20) 
57 #define  readPCMChannelConfigurationProgram 0xc600+STD_BETA_PCM,0x1808
58 #define writePCMChannelConfigurationProgramUnknown 0xce00+STD_BETA_PCM,0x1808,0x0000,0x0000,0x0000,0x0000
60 #define writePCMChannelConfigurationProgramNone       writePCMChannelConfigurationProgramNone_0 
61 #define writePCMChannelConfigurationProgramMono       writePCMChannelConfigurationProgramMono_0 
62 #define writePCMChannelConfigurationProgramStereo     writePCMChannelConfigurationProgramPhantom0_0 
63 #define writePCMChannelConfigurationProgramStereoLtRt writePCMChannelConfigurationProgramPhantom0LtRt_0 
64 #define writePCMChannelConfigurationProgramStereoMono writePCMChannelConfigurationProgramPhantom0Mono_0 
65 #define writePCMChannelConfigurationProgram3Stereo    writePCMChannelConfigurationProgramSurround0_1 
66 #define writePCMChannelConfigurationProgramPhantom    writePCMChannelConfigurationProgramPhantom2_1 
67 #define writePCMChannelConfigurationProgramSurround   writePCMChannelConfigurationProgramSurround2_1 
69 #define writePCMChannelConfigurationProgramNone_0 0xce00+STD_BETA_PCM,0x1808,0x0001,0x0000,0x0000,0x0000
70 #define writePCMChannelConfigurationProgramMono_0 0xce00+STD_BETA_PCM,0x1808,0x0002,0x0000,0x0000,0x0000
71 #define writePCMChannelConfigurationProgramPhantom0_0 0xce00+STD_BETA_PCM,0x1808,0x0003,0x0000,0x0000,0x0000
72 #define writePCMChannelConfigurationProgramPhantom0Stereo_0 0xce00+STD_BETA_PCM,0x1808,0x0003,0x0001,0x0000,0x0000
73 #define writePCMChannelConfigurationProgramPhantom0LtRt_0 0xce00+STD_BETA_PCM,0x1808,0x0003,0x0002,0x0000,0x0000
74 #define writePCMChannelConfigurationProgramPhantom0Mono_0 0xce00+STD_BETA_PCM,0x1808,0x0003,0x0003,0x0000,0x0000
75 #define writePCMChannelConfigurationProgramPhantom0Dual_0 0xce00+STD_BETA_PCM,0x1808,0x0003,0x0004,0x0000,0x0000
76 #define writePCMChannelConfigurationProgramPhantom1_0 0xce00+STD_BETA_PCM,0x1808,0x0004,0x0000,0x0000,0x0000
77 #define writePCMChannelConfigurationProgramPhantom2_0 0xce00+STD_BETA_PCM,0x1808,0x0005,0x0000,0x0000,0x0000
78 #define writePCMChannelConfigurationProgramPhantom2Stereo_0 0xce00+STD_BETA_PCM,0x1808,0x0005,0x0001,0x0000,0x0000
79 #define writePCMChannelConfigurationProgramPhantom2LtRt_0 0xce00+STD_BETA_PCM,0x1808,0x0005,0x0002,0x0000,0x0000
80 #define writePCMChannelConfigurationProgramPhantom2Mono_0 0xce00+STD_BETA_PCM,0x1808,0x0005,0x0003,0x0000,0x0000
81 #define writePCMChannelConfigurationProgramPhantom3_0 0xce00+STD_BETA_PCM,0x1808,0x0006,0x0000,0x0000,0x0000
82 #define writePCMChannelConfigurationProgramPhantom4_0 0xce00+STD_BETA_PCM,0x1808,0x0007,0x0000,0x0000,0x0000
83 #define writePCMChannelConfigurationProgramSurround0_0 0xce00+STD_BETA_PCM,0x1808,0x1808,0x0000,0x0000,0x0000
84 #define writePCMChannelConfigurationProgramSurround1_0 0xce00+STD_BETA_PCM,0x1808,0x0009,0x0000,0x0000,0x0000
85 #define writePCMChannelConfigurationProgramSurround2_0 0xce00+STD_BETA_PCM,0x1808,0x000a,0x0000,0x0000,0x0000
86 #define writePCMChannelConfigurationProgramSurround2Stereo_0 0xce00+STD_BETA_PCM,0x1808,0x000a,0x0001,0x0000,0x0000
87 #define writePCMChannelConfigurationProgramSurround2LtRt_0 0xce00+STD_BETA_PCM,0x1808,0x000a,0x0002,0x0000,0x0000
88 #define writePCMChannelConfigurationProgramSurround2Mono_0 0xce00+STD_BETA_PCM,0x1808,0x000a,0x0003,0x0000,0x0000
89 #define writePCMChannelConfigurationProgramSurround3_0 0xce00+STD_BETA_PCM,0x1808,0x000b,0x0000,0x0000,0x0000
90 #define writePCMChannelConfigurationProgramSurround4_0 0xce00+STD_BETA_PCM,0x1808,0x000c,0x0000,0x0000,0x0000
92 #define writePCMChannelConfigurationProgramNone_1 0xce00+STD_BETA_PCM,0x1808,0x0101,0x0000,0x0000,0x0000
93 #define writePCMChannelConfigurationProgramMono_1 0xce00+STD_BETA_PCM,0x1808,0x0102,0x0000,0x0000,0x0000
94 #define writePCMChannelConfigurationProgramPhantom0_1 0xce00+STD_BETA_PCM,0x1808,0x0103,0x0000,0x0000,0x0000
95 #define writePCMChannelConfigurationProgramPhantom0Stereo_1 0xce00+STD_BETA_PCM,0x1808,0x0103,0x0001,0x0000,0x0000
96 #define writePCMChannelConfigurationProgramPhantom0LtRt_1 0xce00+STD_BETA_PCM,0x1808,0x0103,0x0002,0x0000,0x0000
97 #define writePCMChannelConfigurationProgramPhantom0Mono_1 0xce00+STD_BETA_PCM,0x1808,0x0103,0x0003,0x0000,0x0000
98 #define writePCMChannelConfigurationProgramPhantom0Dual_1 0xce00+STD_BETA_PCM,0x1808,0x0103,0x0004,0x0000,0x0000
99 #define writePCMChannelConfigurationProgramPhantom1_1 0xce00+STD_BETA_PCM,0x1808,0x0104,0x0000,0x0000,0x0000
100 #define writePCMChannelConfigurationProgramPhantom2_1 0xce00+STD_BETA_PCM,0x1808,0x0105,0x0000,0x0000,0x0000
101 #define writePCMChannelConfigurationProgramPhantom2Stereo_1 0xce00+STD_BETA_PCM,0x1808,0x0105,0x0001,0x0000,0x0000
102 #define writePCMChannelConfigurationProgramPhantom2LtRt_1 0xce00+STD_BETA_PCM,0x1808,0x0105,0x0002,0x0000,0x0000
103 #define writePCMChannelConfigurationProgramPhantom2Mono_1 0xce00+STD_BETA_PCM,0x1808,0x0105,0x0003,0x0000,0x0000
104 #define writePCMChannelConfigurationProgramPhantom3_1 0xce00+STD_BETA_PCM,0x1808,0x0106,0x0000,0x0000,0x0000
105 #define writePCMChannelConfigurationProgramPhantom4_1 0xce00+STD_BETA_PCM,0x1808,0x0107,0x0000,0x0000,0x0000
106 #define writePCMChannelConfigurationProgramSurround0_1 0xce00+STD_BETA_PCM,0x1808,0x0108,0x0000,0x0000,0x0000
107 #define writePCMChannelConfigurationProgramSurround1_1 0xce00+STD_BETA_PCM,0x1808,0x0109,0x0000,0x0000,0x0000
108 #define writePCMChannelConfigurationProgramSurround2_1 0xce00+STD_BETA_PCM,0x1808,0x010a,0x0000,0x0000,0x0000
109 #define writePCMChannelConfigurationProgramSurround2Stereo_1 0xce00+STD_BETA_PCM,0x1808,0x010a,0x0001,0x0000,0x0000
110 #define writePCMChannelConfigurationProgramSurround2LtRt_1 0xce00+STD_BETA_PCM,0x1808,0x010a,0x0002,0x0000,0x0000
111 #define writePCMChannelConfigurationProgramSurround2Mono_1 0xce00+STD_BETA_PCM,0x1808,0x010a,0x0003,0x0000,0x0000
112 #define writePCMChannelConfigurationProgramSurround3_1 0xce00+STD_BETA_PCM,0x1808,0x010b,0x0000,0x0000,0x0000
113 #define writePCMChannelConfigurationProgramSurround4_1 0xce00+STD_BETA_PCM,0x1808,0x010c,0x0000,0x0000,0x0000
115 #define writePCMChannelConfigurationProgramNone_2 0xce00+STD_BETA_PCM,0x1808,0x0201,0x0000,0x0000,0x0000
116 #define writePCMChannelConfigurationProgramMono_2 0xce00+STD_BETA_PCM,0x1808,0x0202,0x0000,0x0000,0x0000
117 #define writePCMChannelConfigurationProgramPhantom0_2 0xce00+STD_BETA_PCM,0x1808,0x0203,0x0000,0x0000,0x0000
118 #define writePCMChannelConfigurationProgramPhantom0Stereo_2 0xce00+STD_BETA_PCM,0x1808,0x0203,0x0001,0x0000,0x0000
119 #define writePCMChannelConfigurationProgramPhantom0LtRt_2 0xce00+STD_BETA_PCM,0x1808,0x0203,0x0002,0x0000,0x0000
120 #define writePCMChannelConfigurationProgramPhantom0Mono_2 0xce00+STD_BETA_PCM,0x1808,0x0203,0x0003,0x0000,0x0000
121 #define writePCMChannelConfigurationProgramPhantom0Dual_2 0xce00+STD_BETA_PCM,0x1808,0x0203,0x0004,0x0000,0x0000
122 #define writePCMChannelConfigurationProgramPhantom1_2 0xce00+STD_BETA_PCM,0x1808,0x0204,0x0000,0x0000,0x0000
123 #define writePCMChannelConfigurationProgramPhantom2_2 0xce00+STD_BETA_PCM,0x1808,0x0205,0x0000,0x0000,0x0000
124 #define writePCMChannelConfigurationProgramPhantom2Stereo_2 0xce00+STD_BETA_PCM,0x1808,0x0205,0x0001,0x0000,0x0000
125 #define writePCMChannelConfigurationProgramPhantom2LtRt_2 0xce00+STD_BETA_PCM,0x1808,0x0205,0x0002,0x0000,0x0000
126 #define writePCMChannelConfigurationProgramPhantom2Mono_2 0xce00+STD_BETA_PCM,0x1808,0x0205,0x0003,0x0000,0x0000
127 #define writePCMChannelConfigurationProgramPhantom3_2 0xce00+STD_BETA_PCM,0x1808,0x0206,0x0000,0x0000,0x0000
128 #define writePCMChannelConfigurationProgramPhantom4_2 0xce00+STD_BETA_PCM,0x1808,0x0207,0x0000,0x0000,0x0000
129 #define writePCMChannelConfigurationProgramSurround0_2 0xce00+STD_BETA_PCM,0x1808,0x0208,0x0000,0x0000,0x0000
130 #define writePCMChannelConfigurationProgramSurround1_2 0xce00+STD_BETA_PCM,0x1808,0x0209,0x0000,0x0000,0x0000
131 #define writePCMChannelConfigurationProgramSurround2_2 0xce00+STD_BETA_PCM,0x1808,0x020a,0x0000,0x0000,0x0000
132 #define writePCMChannelConfigurationProgramSurround2Stereo_2 0xce00+STD_BETA_PCM,0x1808,0x020a,0x0001,0x0000,0x0000
133 #define writePCMChannelConfigurationProgramSurround2LtRt_2 0xce00+STD_BETA_PCM,0x1808,0x020a,0x0002,0x0000,0x0000
134 #define writePCMChannelConfigurationProgramSurround2Mono_2 0xce00+STD_BETA_PCM,0x1808,0x020a,0x0003,0x0000,0x0000
135 #define writePCMChannelConfigurationProgramSurround3_2 0xce00+STD_BETA_PCM,0x1808,0x020b,0x0000,0x0000,0x0000
136 #define writePCMChannelConfigurationProgramSurround4_2 0xce00+STD_BETA_PCM,0x1808,0x020c,0x0000,0x0000,0x0000
138 #define writePCMChannelConfigurationProgramStereoUnknown 0xce00+STD_BETA_PCM,0x1808,0x0003,0x0000,0x0000,0x0000
139 #define writePCMChannelConfigurationProgramStereoStereo 0xce00+STD_BETA_PCM,0x1808,0x0003,0x0001,0x0000,0x0000
140 #define writePCMChannelConfigurationProgramStereoDual 0xce00+STD_BETA_PCM,0x1808,0x0003,0x0004,0x0000,0x0000
141 #define writePCMChannelConfigurationProgramSurround2Unknown_0 0xce00+STD_BETA_PCM,0x1808,0x000a,0x0000,0x0000,0x0000
142 #define writePCMChannelConfigurationProgramSurround2Unknown_1 0xce00+STD_BETA_PCM,0x1808,0x010a,0x0000,0x0000,0x0000
144 // Extended channel configuration requests
146 #define writePCMChannelConfigurationProgramNoneX(n) 0xce00+STD_BETA_PCM,0x1808,0x0001,(n<<8),0x0000,0x0000
147 #define writePCMChannelConfigurationProgramNoneLwRw writePCMChannelConfigurationProgramNoneX(0x01)
148 #define writePCMChannelConfigurationProgramNoneLhRh writePCMChannelConfigurationProgramNoneX(0x04)
149 #define writePCMChannelConfigurationProgramNoneLwRwLhRh writePCMChannelConfigurationProgramNoneX(0x05)
150 #define writePCMChannelConfigurationProgramMonoX(n) 0xce00+STD_BETA_PCM,0x1808,0x0002,(n<<8),0x0000,0x0000
151 #define writePCMChannelConfigurationProgramMonoLwRw writePCMChannelConfigurationProgramMonoX(0x01)
152 #define writePCMChannelConfigurationProgramMonoLhRh writePCMChannelConfigurationProgramMonoX(0x04)
153 #define writePCMChannelConfigurationProgramMonoLwRwLhRh writePCMChannelConfigurationProgramMonoX(0x05)
154 #define writePCMChannelConfigurationProgramStereoX(n) 0xce00+STD_BETA_PCM,0x1808,0x0003,(n<<8),0x0000,0x0000
155 #define writePCMChannelConfigurationProgramStereoLwRw writePCMChannelConfigurationProgramStereoX(0x01)
156 #define writePCMChannelConfigurationProgramStereoLhRh writePCMChannelConfigurationProgramStereoX(0x04)
157 #define writePCMChannelConfigurationProgramStereoLwRwLhRh writePCMChannelConfigurationProgramStereoX(0x05)
158 #define writePCMChannelConfigurationProgramStereoXLtRt(n) 0xce00+STD_BETA_PCM,0x1808,0x0003,((n<<8)|0x0002),0x0000,0x0000
159 #define writePCMChannelConfigurationProgramStereoLwRwLtRt writePCMChannelConfigurationProgramStereoXLtRt(0x01)
160 #define writePCMChannelConfigurationProgramStereoLhRhLtRt writePCMChannelConfigurationProgramStereoXLtRt(0x04)
161 #define writePCMChannelConfigurationProgramStereoLwRwLhRhLtRt writePCMChannelConfigurationProgramStereoXLtRt(0x05)
162 #define writePCMChannelConfigurationProgramStereoXMono(n) 0xce00+STD_BETA_PCM,0x1808,0x0003,((n<<8)|0x0003),0x0000,0x0000
163 #define writePCMChannelConfigurationProgramStereoLwRwMono writePCMChannelConfigurationProgramStereoXMono(0x01)
164 #define writePCMChannelConfigurationProgramStereoLhRhMono writePCMChannelConfigurationProgramStereoXMono(0x04)
165 #define writePCMChannelConfigurationProgramStereoLwRwLhRhMono writePCMChannelConfigurationProgramStereoXMono(0x05)
166 #define writePCMChannelConfigurationProgram3StereoX(n) 0xce00+STD_BETA_PCM,0x1808,0x0108,(n<<8),0x0000,0x0000
167 #define writePCMChannelConfigurationProgram3StereoLwRw writePCMChannelConfigurationProgram3StereoX(0x01)
168 #define writePCMChannelConfigurationProgram3StereoLhRh writePCMChannelConfigurationProgram3StereoX(0x04)
169 #define writePCMChannelConfigurationProgram3StereoLwRwLhRh writePCMChannelConfigurationProgram3StereoX(0x05)
170 #define writePCMChannelConfigurationProgramPhantomX(n) 0xce00+STD_BETA_PCM,0x1808,0x0105,(n<<8),0x0000,0x0000
171 #define writePCMChannelConfigurationProgramPhantomLwRw writePCMChannelConfigurationProgramPhantomX(0x01)
172 #define writePCMChannelConfigurationProgramPhantomLhRh writePCMChannelConfigurationProgramPhantomX(0x04)
173 #define writePCMChannelConfigurationProgramPhantomLwRwLhRh writePCMChannelConfigurationProgramPhantomX(0x05)
174 #define writePCMChannelConfigurationProgramSurroundX(n) 0xce00+STD_BETA_PCM,0x1808,0x010a,(n<<8),0x0000,0x0000
175 #define writePCMChannelConfigurationProgramSurroundLwRw writePCMChannelConfigurationProgramSurroundX(0x01)
176 #define writePCMChannelConfigurationProgramSurroundLhRh writePCMChannelConfigurationProgramSurroundX(0x04)
177 #define writePCMChannelConfigurationProgramSurroundLwRwLhRh writePCMChannelConfigurationProgramSurroundX(0x05)
179 // _0
180 #define writePCMChannelConfigurationProgramNoneX_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0001,(n<<8),0x0000,0x0000
181 #define writePCMChannelConfigurationProgramNoneLwRw_0 writePCMChannelConfigurationProgramNoneX_0(0x01)
182 #define writePCMChannelConfigurationProgramNoneLhRh_0 writePCMChannelConfigurationProgramNoneX_0(0x04)
183 #define writePCMChannelConfigurationProgramNoneLwRwLhRh_0 writePCMChannelConfigurationProgramNoneX_0(0x05)
184 #define writePCMChannelConfigurationProgramMonoX_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0002,(n<<8),0x0000,0x0000
185 #define writePCMChannelConfigurationProgramMonoLwRw_0 writePCMChannelConfigurationProgramMonoX_0(0x01)
186 #define writePCMChannelConfigurationProgramMonoLhRh_0 writePCMChannelConfigurationProgramMonoX_0(0x04)
187 #define writePCMChannelConfigurationProgramMonoLwRwLhRh_0 writePCMChannelConfigurationProgramMonoX_0(0x05)
188 #define writePCMChannelConfigurationProgramPhantom0X_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0003,(n<<8)0x0000,0x0000
189 #define writePCMChannelConfigurationProgramPhantom0LwRw_0 writePCMChannelConfigurationProgramPhantom0X_0(0x01)
190 #define writePCMChannelConfigurationProgramPhantom0LhRh_0 writePCMChannelConfigurationProgramPhantom0X_0(0x04)
191 #define writePCMChannelConfigurationProgramPhantom0LwRwLhRh_0 writePCMChannelConfigurationProgramPhantom0X_0(0x05)
192 #define writePCMChannelConfigurationProgramPhantom0XStereo_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0003,((n<<8)|0x0001),0x0000,0x0000
193 #define writePCMChannelConfigurationProgramPhantom0LwRwStereo_0 writePCMChannelConfigurationProgramPhantom0XStereo_0(0x01)
194 #define writePCMChannelConfigurationProgramPhantom0LhRhStereo_0 writePCMChannelConfigurationProgramPhantom0XStereo_0(0x04) 
195 #define writePCMChannelConfigurationProgramPhantom0LwRwLhRhStereo_0 writePCMChannelConfigurationProgramPhantom0XStereo_0(0x05) 
196 #define writePCMChannelConfigurationProgramPhantom0XLtRt_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0003,((n<<8)|0x0002),0x0000,0x0000
197 #define writePCMChannelConfigurationProgramPhantom0LwRwLtRt_0 writePCMChannelConfigurationProgramPhantom0XLtRt_0(0x01)
198 #define writePCMChannelConfigurationProgramPhantom0LhRhLtRt_0 writePCMChannelConfigurationProgramPhantom0XLtRt_0(0x04)
199 #define writePCMChannelConfigurationProgramPhantom0LwRwLhRhLtRt_0 writePCMChannelConfigurationProgramPhantom0XLtRt_0(0x05)
200 #define writePCMChannelConfigurationProgramPhantom0XMono_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0003,((n<<8)|0x0003),0x0000,0x0000
201 #define writePCMChannelConfigurationProgramPhantom0LwRwMono_0 writePCMChannelConfigurationProgramPhantom0XMono_0(0x01)
202 #define writePCMChannelConfigurationProgramPhantom0LhRhMono_0 writePCMChannelConfigurationProgramPhantom0XMono_0(0x04)
203 #define writePCMChannelConfigurationProgramPhantom0LwRwLhRhMono_0 writePCMChannelConfigurationProgramPhantom0XMono_0(0x05)
204 #define writePCMChannelConfigurationProgramPhantom0XDual_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0003,((n<<8)|0x0004),0x0000,0x0000
205 #define writePCMChannelConfigurationProgramPhantom0LwRwDual_0 writePCMChannelConfigurationProgramPhantom0XDual_0(0x01)
206 #define writePCMChannelConfigurationProgramPhantom0LhRhDual_0 writePCMChannelConfigurationProgramPhantom0XDual_0(0x04)
207 #define writePCMChannelConfigurationProgramPhantom0LwRwLhRhDual_0 writePCMChannelConfigurationProgramPhantom0XDual_0(0x05)
208 #define writePCMChannelConfigurationProgramPhantom1X_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0004,(n<<8),0x0000,0x0000
209 #define writePCMChannelConfigurationProgramPhantom1LwRw_0 writePCMChannelConfigurationProgramPhantom1X_0(0x01)
210 #define writePCMChannelConfigurationProgramPhantom1LhRh_0 writePCMChannelConfigurationProgramPhantom1X_0(0x04)
211 #define writePCMChannelConfigurationProgramPhantom1LwRwLhRh_0 writePCMChannelConfigurationProgramPhantom1X_0(0x05)
212 #define writePCMChannelConfigurationProgramPhantom2X_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0005,(n<<8),0x0000,0x0000
213 #define writePCMChannelConfigurationProgramPhantom2LwRw_0 writePCMChannelConfigurationProgramPhantom2X_0(0x01)
214 #define writePCMChannelConfigurationProgramPhantom2LhRh_0 writePCMChannelConfigurationProgramPhantom2X_0(0x04)
215 #define writePCMChannelConfigurationProgramPhantom2LwRwLhRh_0 writePCMChannelConfigurationProgramPhantom2X_0(0x05)
216 #define writePCMChannelConfigurationProgramPhantom2XStereo_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0005,((n<<8)|0x0001),0x0000,0x0000
217 #define writePCMChannelConfigurationProgramPhantom2LwRwStereo_0 writePCMChannelConfigurationProgramPhantom2XStereo_0(0x01) 
218 #define writePCMChannelConfigurationProgramPhantom2LhRhStereo_0 writePCMChannelConfigurationProgramPhantom2XStereo_0(0x04) 
219 #define writePCMChannelConfigurationProgramPhantom2LwRwLhRhStereo_0 writePCMChannelConfigurationProgramPhantom2XStereo_0(0x05) 
220 #define writePCMChannelConfigurationProgramPhantom2XLtRt_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0005,((n<<8)|0x0002),0x0000,0x0000
221 #define writePCMChannelConfigurationProgramPhantom2LwRwLtRt_0 writePCMChannelConfigurationProgramPhantom2XLtRt_0(0x01) 
222 #define writePCMChannelConfigurationProgramPhantom2LhRhLtRt_0 writePCMChannelConfigurationProgramPhantom2XLtRt_0(0x04) 
223 #define writePCMChannelConfigurationProgramPhantom2LwRwLhRhLtRt_0 writePCMChannelConfigurationProgramPhantom2XLtRt_0(0x05) 
224 #define writePCMChannelConfigurationProgramPhantom2XMono_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0005,((n<<8)|0x0003),0x0000,0x0000
225 #define writePCMChannelConfigurationProgramPhantom2LwRwMono_0 writePCMChannelConfigurationProgramPhantom2XMono_0(0x01) 
226 #define writePCMChannelConfigurationProgramPhantom2LhRhMono_0 writePCMChannelConfigurationProgramPhantom2XMono_0(0x04)
227 #define writePCMChannelConfigurationProgramPhantom2LwRwLhRhMono_0 writePCMChannelConfigurationProgramPhantom2XMono_0(0x05) 
228 #define writePCMChannelConfigurationProgramPhantom3X_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0006,(n<<8),0x0000,0x0000
229 #define writePCMChannelConfigurationProgramPhantom3LwRw_0 writePCMChannelConfigurationProgramPhantom3X_0(0x01)
230 #define writePCMChannelConfigurationProgramPhantom3LhRh_0 writePCMChannelConfigurationProgramPhantom3X_0(0x04)
231 #define writePCMChannelConfigurationProgramPhantom3LwRwLhRh_0 writePCMChannelConfigurationProgramPhantom3X_0(0x05)
232 #define writePCMChannelConfigurationProgramPhantom4X_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0007,(n<<8),0x0000,0x0000
233 #define writePCMChannelConfigurationProgramPhantom4LwRw_0 writePCMChannelConfigurationProgramPhantom4X_0(0x01)
234 #define writePCMChannelConfigurationProgramPhantom4LhRh_0 writePCMChannelConfigurationProgramPhantom4X_0(0x04)
235 #define writePCMChannelConfigurationProgramPhantom4LwRwLhRh_0 writePCMChannelConfigurationProgramPhantom4X_0(0x05)
236 #define writePCMChannelConfigurationProgramSurround0X_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0008,(n<<8),0x0000,0x0000
237 #define writePCMChannelConfigurationProgramSurround0LwRw_0 writePCMChannelConfigurationProgramSurround0X_0(0x01)
238 #define writePCMChannelConfigurationProgramSurround0LhRh_0 writePCMChannelConfigurationProgramSurround0X_0(0x04)
239 #define writePCMChannelConfigurationProgramSurround0LwRwLhRh_0 writePCMChannelConfigurationProgramSurround0X_0(0x05)
240 #define writePCMChannelConfigurationProgramSurround1X_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0009,(n<<8),0x0000,0x0000
241 #define writePCMChannelConfigurationProgramSurround1LwRw_0 writePCMChannelConfigurationProgramSurround1X_0(0x01)
242 #define writePCMChannelConfigurationProgramSurround1LhRh_0 writePCMChannelConfigurationProgramSurround1X_0(0x04)
243 #define writePCMChannelConfigurationProgramSurround1LwRwLhRh_0 writePCMChannelConfigurationProgramSurround1X_0(0x05)
244 #define writePCMChannelConfigurationProgramSurround2X_0(n) 0xce00+STD_BETA_PCM,0x1808,0x000a,(n<<8),0x0000,0x0000
245 #define writePCMChannelConfigurationProgramSurround2LwRw_0 writePCMChannelConfigurationProgramSurround2X_0(0x01)
246 #define writePCMChannelConfigurationProgramSurround2LhRh_0 writePCMChannelConfigurationProgramSurround2X_0(0x04)
247 #define writePCMChannelConfigurationProgramSurround2LwRwLhRh_0 writePCMChannelConfigurationProgramSurround2X_0(0x05)
248 #define writePCMChannelConfigurationProgramSurround2XStereo_0(n) 0xce00+STD_BETA_PCM,0x1808,0x000a,((n<<8)|0x0001),0x0000,0x0000
249 #define writePCMChannelConfigurationProgramSurround2LwRwStereo_0 writePCMChannelConfigurationProgramSurround2XStereo_0(0x01)
250 #define writePCMChannelConfigurationProgramSurround2LhRhStereo_0 writePCMChannelConfigurationProgramSurround2XStereo_0(0x04)
251 #define writePCMChannelConfigurationProgramSurround2LwRwLhRhStereo_0 writePCMChannelConfigurationProgramSurround2XStereo_0(0x05)
252 #define writePCMChannelConfigurationProgramSurround2XLtRt_0(n) 0xce00+STD_BETA_PCM,0x1808,0x000a,((n<<8)|0x0002),0x0000,0x0000
253 #define writePCMChannelConfigurationProgramSurround2LwRwLtRt_0 writePCMChannelConfigurationProgramSurround2XLtRt_0(0x01) 
254 #define writePCMChannelConfigurationProgramSurround2LhRhLtRt_0 writePCMChannelConfigurationProgramSurround2XLtRt_0(0x04) 
255 #define writePCMChannelConfigurationProgramSurround2LwRwLhRhLtRt_0 writePCMChannelConfigurationProgramSurround2XLtRt_0(0x05) 
256 #define writePCMChannelConfigurationProgramSurround2XMono_0(n) 0xce00+STD_BETA_PCM,0x1808,0x000a,((n<<8)|0x0003),0x0000,0x0000
257 #define writePCMChannelConfigurationProgramSurround2LwRwMono_0 writePCMChannelConfigurationProgramSurround2XMono_0(0x01) 
258 #define writePCMChannelConfigurationProgramSurround2LhRhMono_0 writePCMChannelConfigurationProgramSurround2XMono_0(0x04)
259 #define writePCMChannelConfigurationProgramSurround2LwRwLhRhMono_0 writePCMChannelConfigurationProgramSurround2XMono_0(0x05) 
260 #define writePCMChannelConfigurationProgramSurround3X_0(n) 0xce00+STD_BETA_PCM,0x1808,0x000b,(n<<8),0x0000,0x0000
261 #define writePCMChannelConfigurationProgramSurround3LwRw_0 writePCMChannelConfigurationProgramSurround3X_0(0x01)
262 #define writePCMChannelConfigurationProgramSurround3LhRh_0 writePCMChannelConfigurationProgramSurround3X_0(0x04)
263 #define writePCMChannelConfigurationProgramSurround3LwRwLhRh_0 writePCMChannelConfigurationProgramSurround3X_0(0x05)
264 #define writePCMChannelConfigurationProgramSurround4X_0(n) 0xce00+STD_BETA_PCM,0x1808,0x000c,(n<<8),0x0000,0x0000
265 #define writePCMChannelConfigurationProgramSurround4LwRw_0 writePCMChannelConfigurationProgramSurround4X_0(0x01)
266 #define writePCMChannelConfigurationProgramSurround4LhRh_0 writePCMChannelConfigurationProgramSurround4X_0(0x04)
267 #define writePCMChannelConfigurationProgramSurround4LwRwLhRh_0 writePCMChannelConfigurationProgramSurround4X_0(0x05)
269 // _1
270 #define writePCMChannelConfigurationProgramNoneX_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0101,(n<<8),0x0000,0x0000
271 #define writePCMChannelConfigurationProgramNoneLwRw_1 writePCMChannelConfigurationProgramNoneX_1(0x01)
272 #define writePCMChannelConfigurationProgramNoneLhRh_1 writePCMChannelConfigurationProgramNoneX_1(0x04)
273 #define writePCMChannelConfigurationProgramNoneLwRwLhRh_1 writePCMChannelConfigurationProgramNoneX_1(0x05)
274 #define writePCMChannelConfigurationProgramMonoX_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0102,(n<<8),0x0000,0x0000
275 #define writePCMChannelConfigurationProgramMonoLwRw_1 writePCMChannelConfigurationProgramMonoX_1(0x01)
276 #define writePCMChannelConfigurationProgramMonoLhRh_1 writePCMChannelConfigurationProgramMonoX_1(0x04)
277 #define writePCMChannelConfigurationProgramMonoLwRwLhRh_1 writePCMChannelConfigurationProgramMonoX_1(0x05)
278 #define writePCMChannelConfigurationProgramPhantom0X_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0103,(n<<8),0x0000,0x0000
279 #define writePCMChannelConfigurationProgramPhantom0LwRw_1 writePCMChannelConfigurationProgramPhantom0X_1(0x01)
280 #define writePCMChannelConfigurationProgramPhantom0LhRh_1 writePCMChannelConfigurationProgramPhantom0X_1(0x04)
281 #define writePCMChannelConfigurationProgramPhantom0LwRwLhRh_1 writePCMChannelConfigurationProgramPhantom0X_1(0x05)
282 #define writePCMChannelConfigurationProgramPhantom0XStereo_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0103,((n<<8)|0x0001),0x0000,0x0000
283 #define writePCMChannelConfigurationProgramPhantom0LwRwStereo_1 writePCMChannelConfigurationProgramPhantom0XStereo_1(0x01)
284 #define writePCMChannelConfigurationProgramPhantom0LhRhStereo_1 writePCMChannelConfigurationProgramPhantom0XStereo_1(0x04) 
285 #define writePCMChannelConfigurationProgramPhantom0LwRwLhRhStereo_1 writePCMChannelConfigurationProgramPhantom0XStereo_1(0x05) 
286 #define writePCMChannelConfigurationProgramPhantom0XLtRt_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0103,((n<<8)|0x0002),0x0000,0x0000
287 #define writePCMChannelConfigurationProgramPhantom0LwRwLtRt_1 writePCMChannelConfigurationProgramPhantom0XLtRt_1(0x01)
288 #define writePCMChannelConfigurationProgramPhantom0LhRhLtRt_1 writePCMChannelConfigurationProgramPhantom0XLtRt_1(0x04)
289 #define writePCMChannelConfigurationProgramPhantom0LwRwLhRhLtRt_1 writePCMChannelConfigurationProgramPhantom0XLtRt_1(0x05)
290 #define writePCMChannelConfigurationProgramPhantom0XMono_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0103,((n<<8)|0x0003),0x0000,0x0000
291 #define writePCMChannelConfigurationProgramPhantom0LwRwMono_1 writePCMChannelConfigurationProgramPhantom0XMono_1(0x01)
292 #define writePCMChannelConfigurationProgramPhantom0LhRhMono_1 writePCMChannelConfigurationProgramPhantom0XMono_1(0x04)
293 #define writePCMChannelConfigurationProgramPhantom0LwRwLhRhMono_1 writePCMChannelConfigurationProgramPhantom0XMono_1(0x05)
294 #define writePCMChannelConfigurationProgramPhantom0XDual_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0103,((n<<8)|0x0004),0x0000,0x0000
295 #define writePCMChannelConfigurationProgramPhantom0LwRwDual_1 writePCMChannelConfigurationProgramPhantom0XDual_1(0x01)
296 #define writePCMChannelConfigurationProgramPhantom0LhRhDual_1 writePCMChannelConfigurationProgramPhantom0XDual_1(0x04)
297 #define writePCMChannelConfigurationProgramPhantom0LwRwLhRhDual_1 writePCMChannelConfigurationProgramPhantom0XDual_1(0x05)
298 #define writePCMChannelConfigurationProgramPhantom1X_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0104,(n<<8),0x0000,0x0000
299 #define writePCMChannelConfigurationProgramPhantom1LwRw_1 writePCMChannelConfigurationProgramPhantom1X_1(0x01)
300 #define writePCMChannelConfigurationProgramPhantom1LhRh_1 writePCMChannelConfigurationProgramPhantom1X_1(0x04)
301 #define writePCMChannelConfigurationProgramPhantom1LwRwLhRh_1 writePCMChannelConfigurationProgramPhantom1X_1(0x05)
302 #define writePCMChannelConfigurationProgramPhantom2X_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0105,(n<<8),0x0000,0x0000
303 #define writePCMChannelConfigurationProgramPhantom2LwRw_1 writePCMChannelConfigurationProgramPhantom2X_1(0x01)
304 #define writePCMChannelConfigurationProgramPhantom2LhRh_1 writePCMChannelConfigurationProgramPhantom2X_1(0x04)
305 #define writePCMChannelConfigurationProgramPhantom2LwRwLhRh_1 writePCMChannelConfigurationProgramPhantom2X_1(0x05)
306 #define writePCMChannelConfigurationProgramPhantom2XStereo_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0105,((n<<8)|0x0001),0x0000,0x0000
307 #define writePCMChannelConfigurationProgramPhantom2LwRwStereo_1 writePCMChannelConfigurationProgramPhantom2XStereo_1(0x01) 
308 #define writePCMChannelConfigurationProgramPhantom2LhRhStereo_1 writePCMChannelConfigurationProgramPhantom2XStereo_1(0x04) 
309 #define writePCMChannelConfigurationProgramPhantom2LwRwLhRhStereo_1 writePCMChannelConfigurationProgramPhantom2XStereo_1(0x05) 
310 #define writePCMChannelConfigurationProgramPhantom2XLtRt_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0105,((n<<8)|0x0002),0x0000,0x0000
311 #define writePCMChannelConfigurationProgramPhantom2LwRwLtRt_1 writePCMChannelConfigurationProgramPhantom2XLtRt_1(0x01) 
312 #define writePCMChannelConfigurationProgramPhantom2LhRhLtRt_1 writePCMChannelConfigurationProgramPhantom2XLtRt_1(0x04) 
313 #define writePCMChannelConfigurationProgramPhantom2LwRwLhRhLtRt_1 writePCMChannelConfigurationProgramPhantom2XLtRt_1(0x05) 
314 #define writePCMChannelConfigurationProgramPhantom2XMono_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0105,((n<<8)|0x0003),0x0000,0x0000
315 #define writePCMChannelConfigurationProgramPhantom2LwRwMono_1 writePCMChannelConfigurationProgramPhantom2XMono_1(0x01) 
316 #define writePCMChannelConfigurationProgramPhantom2LhRhMono_1 writePCMChannelConfigurationProgramPhantom2XMono_1(0x04)
317 #define writePCMChannelConfigurationProgramPhantom2LwRwLhRhMono_1 writePCMChannelConfigurationProgramPhantom2XMono_1(0x05) 
318 #define writePCMChannelConfigurationProgramPhantom3X_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0106,(n<<8),0x0000,0x0000
319 #define writePCMChannelConfigurationProgramPhantom3LwRw_1 writePCMChannelConfigurationProgramPhantom3X_1(0x01)
320 #define writePCMChannelConfigurationProgramPhantom3LhRh_1 writePCMChannelConfigurationProgramPhantom3X_1(0x04)
321 #define writePCMChannelConfigurationProgramPhantom3LwRwLhRh_1 writePCMChannelConfigurationProgramPhantom3X_1(0x05)
322 #define writePCMChannelConfigurationProgramPhantom4X_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0107,(n<<8),0x0000,0x0000
323 #define writePCMChannelConfigurationProgramPhantom4LwRw_1 writePCMChannelConfigurationProgramPhantom4X_1(0x01)
324 #define writePCMChannelConfigurationProgramPhantom4LhRh_1 writePCMChannelConfigurationProgramPhantom4X_1(0x04)
325 #define writePCMChannelConfigurationProgramPhantom4LwRwLhRh_1 writePCMChannelConfigurationProgramPhantom4X_1(0x05)
326 #define writePCMChannelConfigurationProgramSurround0X_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0108,(n<<8),0x0000,0x0000
327 #define writePCMChannelConfigurationProgramSurround0LwRw_1 writePCMChannelConfigurationProgramSurround0X_1(0x01)
328 #define writePCMChannelConfigurationProgramSurround0LhRh_1 writePCMChannelConfigurationProgramSurround0X_1(0x04)
329 #define writePCMChannelConfigurationProgramSurround0LwRwLhRh_1 writePCMChannelConfigurationProgramSurround0X_1(0x05)
330 #define writePCMChannelConfigurationProgramSurround1X_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0109,(n<<8),0x0000,0x0000
331 #define writePCMChannelConfigurationProgramSurround1LwRw_1 writePCMChannelConfigurationProgramSurround1X_1(0x01)
332 #define writePCMChannelConfigurationProgramSurround1LhRh_1 writePCMChannelConfigurationProgramSurround1X_1(0x04)
333 #define writePCMChannelConfigurationProgramSurround1LwRwLhRh_1 writePCMChannelConfigurationProgramSurround1X_1(0x05)
334 #define writePCMChannelConfigurationProgramSurround2X_1(n) 0xce00+STD_BETA_PCM,0x1808,0x010a,(n<<8),0x0000,0x0000
335 #define writePCMChannelConfigurationProgramSurround2LwRw_1 writePCMChannelConfigurationProgramSurround2X_1(0x01)
336 #define writePCMChannelConfigurationProgramSurround2LhRh_1 writePCMChannelConfigurationProgramSurround2X_1(0x04)
337 #define writePCMChannelConfigurationProgramSurround2LwRwLhRh_1 writePCMChannelConfigurationProgramSurround2X_1(0x05)
338 #define writePCMChannelConfigurationProgramSurround2XStereo_1(n) 0xce00+STD_BETA_PCM,0x1808,0x010a,((n<<8)|0x0001),0x0000,0x0000
339 #define writePCMChannelConfigurationProgramSurround2LwRwStereo_1 writePCMChannelConfigurationProgramSurround2XStereo_1(0x01)
340 #define writePCMChannelConfigurationProgramSurround2LhRhStereo_1 writePCMChannelConfigurationProgramSurround2XStereo_1(0x04)
341 #define writePCMChannelConfigurationProgramSurround2LwRwLhRhStereo_1 writePCMChannelConfigurationProgramSurround2XStereo_1(0x05)
342 #define writePCMChannelConfigurationProgramSurround2XLtRt_1(n) 0xce00+STD_BETA_PCM,0x1808,0x010a,((n<<8)|0x0002),0x0000,0x0000
343 #define writePCMChannelConfigurationProgramSurround2LwRwLtRt_1 writePCMChannelConfigurationProgramSurround2XLtRt_1(0x01) 
344 #define writePCMChannelConfigurationProgramSurround2LhRhLtRt_1 writePCMChannelConfigurationProgramSurround2XLtRt_1(0x04) 
345 #define writePCMChannelConfigurationProgramSurround2LwRwLhRhLtRt_1 writePCMChannelConfigurationProgramSurround2XLtRt_1(0x05) 
346 #define writePCMChannelConfigurationProgramSurround2XMono_1(n) 0xce00+STD_BETA_PCM,0x1808,0x010a,((n<<8)|0x0003),0x0000,0x0000
347 #define writePCMChannelConfigurationProgramSurround2LwRwMono_1 writePCMChannelConfigurationProgramSurround2XMono_1(0x01) 
348 #define writePCMChannelConfigurationProgramSurround2LhRhMono_1 writePCMChannelConfigurationProgramSurround2XMono_1(0x04)
349 #define writePCMChannelConfigurationProgramSurround2LwRwLhRhMono_1 writePCMChannelConfigurationProgramSurround2XMono_1(0x05) 
350 #define writePCMChannelConfigurationProgramSurround3X_1(n) 0xce00+STD_BETA_PCM,0x1808,0x010b,(n<<8),0x0000,0x0000
351 #define writePCMChannelConfigurationProgramSurround3LwRw_1 writePCMChannelConfigurationProgramSurround3X_1(0x01)
352 #define writePCMChannelConfigurationProgramSurround3LhRh_1 writePCMChannelConfigurationProgramSurround3X_1(0x04)
353 #define writePCMChannelConfigurationProgramSurround3LwRwLhRh_1 writePCMChannelConfigurationProgramSurround3X_1(0x05)
354 #define writePCMChannelConfigurationProgramSurround4X_1(n) 0xce00+STD_BETA_PCM,0x1808,0x010c,(n<<8),0x0000,0x0000
355 #define writePCMChannelConfigurationProgramSurround4LwRw_1 writePCMChannelConfigurationProgramSurround4X_1(0x01)
356 #define writePCMChannelConfigurationProgramSurround4LhRh_1 writePCMChannelConfigurationProgramSurround4X_1(0x04)
357 #define writePCMChannelConfigurationProgramSurround4LwRwLhRh_1 writePCMChannelConfigurationProgramSurround4X_1(0x05)
358 // _2
359 #define writePCMChannelConfigurationProgramNoneX_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0201,(n<<8),0x0000,0x0000
360 #define writePCMChannelConfigurationProgramNoneLwRw_2 writePCMChannelConfigurationProgramNoneX_2(0x01)
361 #define writePCMChannelConfigurationProgramNoneLhRh_2 writePCMChannelConfigurationProgramNoneX_2(0x04)
362 #define writePCMChannelConfigurationProgramNoneLwRwLhRh_2 writePCMChannelConfigurationProgramNoneX_2(0x05)
363 #define writePCMChannelConfigurationProgramMonoX_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0202,(n<<8),0x0000,0x0000
364 #define writePCMChannelConfigurationProgramMonoLwRw_2 writePCMChannelConfigurationProgramMonoX_2(0x01)
365 #define writePCMChannelConfigurationProgramMonoLhRh_2 writePCMChannelConfigurationProgramMonoX_2(0x04)
366 #define writePCMChannelConfigurationProgramMonoLwRwLhRh_2 writePCMChannelConfigurationProgramMonoX_2(0x05)
367 #define writePCMChannelConfigurationProgramPhantom0X_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0203,(n<<8),0x0000,0x0000
368 #define writePCMChannelConfigurationProgramPhantom0LwRw_2 writePCMChannelConfigurationProgramPhantom0X_2(0x01)
369 #define writePCMChannelConfigurationProgramPhantom0LhRh_2 writePCMChannelConfigurationProgramPhantom0X_2(0x04)
370 #define writePCMChannelConfigurationProgramPhantom0LwRwLhRh_2 writePCMChannelConfigurationProgramPhantom0X_2(0x05)
371 #define writePCMChannelConfigurationProgramPhantom0XStereo_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0203,((n<<8)|0x0001),0x0000,0x0000
372 #define writePCMChannelConfigurationProgramPhantom0LwRwStereo_2 writePCMChannelConfigurationProgramPhantom0XStereo_2(0x01)
373 #define writePCMChannelConfigurationProgramPhantom0LhRhStereo_2 writePCMChannelConfigurationProgramPhantom0XStereo_2(0x04) 
374 #define writePCMChannelConfigurationProgramPhantom0LwRwLhRhStereo_2 writePCMChannelConfigurationProgramPhantom0XStereo_2(0x05) 
375 #define writePCMChannelConfigurationProgramPhantom0XLtRt_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0203,((n<<8)|0x0002),0x0000,0x0000
376 #define writePCMChannelConfigurationProgramPhantom0LwRwLtRt_2 writePCMChannelConfigurationProgramPhantom0XLtRt_2(0x01)
377 #define writePCMChannelConfigurationProgramPhantom0LhRhLtRt_2 writePCMChannelConfigurationProgramPhantom0XLtRt_2(0x04)
378 #define writePCMChannelConfigurationProgramPhantom0LwRwLhRhLtRt_2 writePCMChannelConfigurationProgramPhantom0XLtRt_2(0x05)
379 #define writePCMChannelConfigurationProgramPhantom0XMono_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0203,((n<<8)|0x0003),0x0000,0x0000
380 #define writePCMChannelConfigurationProgramPhantom0LwRwMono_2 writePCMChannelConfigurationProgramPhantom0XMono_2(0x01)
381 #define writePCMChannelConfigurationProgramPhantom0LhRhMono_2 writePCMChannelConfigurationProgramPhantom0XMono_2(0x04)
382 #define writePCMChannelConfigurationProgramPhantom0LwRwLhRhMono_2 writePCMChannelConfigurationProgramPhantom0XMono_2(0x05)
383 #define writePCMChannelConfigurationProgramPhantom0XDual_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0203,((n<<8)|0x0004),0x0000,0x0000
384 #define writePCMChannelConfigurationProgramPhantom0LwRwDual_2 writePCMChannelConfigurationProgramPhantom0XDual_2(0x01)
385 #define writePCMChannelConfigurationProgramPhantom0LhRhDual_2 writePCMChannelConfigurationProgramPhantom0XDual_2(0x04)
386 #define writePCMChannelConfigurationProgramPhantom0LwRwLhRhDual_2 writePCMChannelConfigurationProgramPhantom0XDual_2(0x05)
387 #define writePCMChannelConfigurationProgramPhantom1X_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0204,(n<<8),0x0000,0x0000
388 #define writePCMChannelConfigurationProgramPhantom1LwRw_2 writePCMChannelConfigurationProgramPhantom1X_2(0x01)
389 #define writePCMChannelConfigurationProgramPhantom1LhRh_2 writePCMChannelConfigurationProgramPhantom1X_2(0x04)
390 #define writePCMChannelConfigurationProgramPhantom1LwRwLhRh_2 writePCMChannelConfigurationProgramPhantom1X_2(0x05)
391 #define writePCMChannelConfigurationProgramPhantom2X_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0205,(n<<8),0x0000,0x0000
392 #define writePCMChannelConfigurationProgramPhantom2LwRw_2 writePCMChannelConfigurationProgramPhantom2X_2(0x01)
393 #define writePCMChannelConfigurationProgramPhantom2LhRh_2 writePCMChannelConfigurationProgramPhantom2X_2(0x04)
394 #define writePCMChannelConfigurationProgramPhantom2LwRwLhRh_2 writePCMChannelConfigurationProgramPhantom2X_2(0x05)
395 #define writePCMChannelConfigurationProgramPhantom2XStereo_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0205,((n<<8)|0x0001),0x0000,0x0000
396 #define writePCMChannelConfigurationProgramPhantom2LwRwStereo_2 writePCMChannelConfigurationProgramPhantom2XStereo_2(0x01) 
397 #define writePCMChannelConfigurationProgramPhantom2LhRhStereo_2 writePCMChannelConfigurationProgramPhantom2XStereo_2(0x04) 
398 #define writePCMChannelConfigurationProgramPhantom2LwRwLhRhStereo_2 writePCMChannelConfigurationProgramPhantom2XStereo_2(0x05) 
399 #define writePCMChannelConfigurationProgramPhantom2XLtRt_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0205,((n<<8)|0x0002),0x0000,0x0000
400 #define writePCMChannelConfigurationProgramPhantom2LwRwLtRt_2 writePCMChannelConfigurationProgramPhantom2XLtRt_2(0x01) 
401 #define writePCMChannelConfigurationProgramPhantom2LhRhLtRt_2 writePCMChannelConfigurationProgramPhantom2XLtRt_2(0x04) 
402 #define writePCMChannelConfigurationProgramPhantom2LwRwLhRhLtRt_2 writePCMChannelConfigurationProgramPhantom2XLtRt_2(0x05) 
403 #define writePCMChannelConfigurationProgramPhantom2XMono_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0205,((n<<8)|0x0003),0x0000,0x0000
404 #define writePCMChannelConfigurationProgramPhantom2LwRwMono_2 writePCMChannelConfigurationProgramPhantom2XMono_2(0x01) 
405 #define writePCMChannelConfigurationProgramPhantom2LhRhMono_2 writePCMChannelConfigurationProgramPhantom2XMono_2(0x04)
406 #define writePCMChannelConfigurationProgramPhantom2LwRwLhRhMono_2 writePCMChannelConfigurationProgramPhantom2XMono_2(0x05) 
407 #define writePCMChannelConfigurationProgramPhantom3X_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0206,(n<<8),0x0000,0x0000
408 #define writePCMChannelConfigurationProgramPhantom3LwRw_2 writePCMChannelConfigurationProgramPhantom3X_2(0x01)
409 #define writePCMChannelConfigurationProgramPhantom3LhRh_2 writePCMChannelConfigurationProgramPhantom3X_2(0x04)
410 #define writePCMChannelConfigurationProgramPhantom3LwRwLhRh_2 writePCMChannelConfigurationProgramPhantom3X_2(0x05)
411 #define writePCMChannelConfigurationProgramPhantom4X_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0207,(n<<8),0x0000,0x0000
412 #define writePCMChannelConfigurationProgramPhantom4LwRw_2 writePCMChannelConfigurationProgramPhantom4X_2(0x01)
413 #define writePCMChannelConfigurationProgramPhantom4LhRh_2 writePCMChannelConfigurationProgramPhantom4X_2(0x04)
414 #define writePCMChannelConfigurationProgramPhantom4LwRwLhRh_2 writePCMChannelConfigurationProgramPhantom4X_2(0x05)
415 #define writePCMChannelConfigurationProgramSurround0X_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0208,(n<<8),0x0000,0x0000
416 #define writePCMChannelConfigurationProgramSurround0LwRw_2 writePCMChannelConfigurationProgramSurround0X_2(0x01)
417 #define writePCMChannelConfigurationProgramSurround0LhRh_2 writePCMChannelConfigurationProgramSurround0X_2(0x04)
418 #define writePCMChannelConfigurationProgramSurround0LwRwLhRh_2 writePCMChannelConfigurationProgramSurround0X_2(0x05)
419 #define writePCMChannelConfigurationProgramSurround1X_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0209,(n<<8),0x0000,0x0000
420 #define writePCMChannelConfigurationProgramSurround1LwRw_2 writePCMChannelConfigurationProgramSurround1X_2(0x01)
421 #define writePCMChannelConfigurationProgramSurround1LhRh_2 writePCMChannelConfigurationProgramSurround1X_2(0x04)
422 #define writePCMChannelConfigurationProgramSurround1LwRwLhRh_2 writePCMChannelConfigurationProgramSurround1X_2(0x05)
423 #define writePCMChannelConfigurationProgramSurround2X_2(n) 0xce00+STD_BETA_PCM,0x1808,0x020a,(n<<8),0x0000,0x0000
424 #define writePCMChannelConfigurationProgramSurround2LwRw_2 writePCMChannelConfigurationProgramSurround2X_2(0x01)
425 #define writePCMChannelConfigurationProgramSurround2LhRh_2 writePCMChannelConfigurationProgramSurround2X_2(0x04)
426 #define writePCMChannelConfigurationProgramSurround2LwRwLhRh_2 writePCMChannelConfigurationProgramSurround2X_2(0x05)
427 #define writePCMChannelConfigurationProgramSurround2XStereo_2(n) 0xce00+STD_BETA_PCM,0x1808,0x020a,((n<<8)|0x0001),0x0000,0x0000
428 #define writePCMChannelConfigurationProgramSurround2LwRwStereo_2 writePCMChannelConfigurationProgramSurround2XStereo_2(0x01)
429 #define writePCMChannelConfigurationProgramSurround2LhRhStereo_2 writePCMChannelConfigurationProgramSurround2XStereo_2(0x04)
430 #define writePCMChannelConfigurationProgramSurround2LwRwLhRhStereo_2 writePCMChannelConfigurationProgramSurround2XStereo_2(0x05)
431 #define writePCMChannelConfigurationProgramSurround2XLtRt_2(n) 0xce00+STD_BETA_PCM,0x1808,0x020a,((n<<8)|0x0002),0x0000,0x0000
432 #define writePCMChannelConfigurationProgramSurround2LwRwLtRt_2 writePCMChannelConfigurationProgramSurround2XLtRt_2(0x01) 
433 #define writePCMChannelConfigurationProgramSurround2LhRhLtRt_2 writePCMChannelConfigurationProgramSurround2XLtRt_2(0x04) 
434 #define writePCMChannelConfigurationProgramSurround2LwRwLhRhLtRt_2 writePCMChannelConfigurationProgramSurround2XLtRt_2(0x05) 
435 #define writePCMChannelConfigurationProgramSurround2XMono_2(n) 0xce00+STD_BETA_PCM,0x1808,0x020a,((n<<8)|0x0003),0x0000,0x0000
436 #define writePCMChannelConfigurationProgramSurround2LwRwMono_2 writePCMChannelConfigurationProgramSurround2XMono_2(0x01) 
437 #define writePCMChannelConfigurationProgramSurround2LhRhMono_2 writePCMChannelConfigurationProgramSurround2XMono_2(0x04)
438 #define writePCMChannelConfigurationProgramSurround2LwRwLhRhMono_2 writePCMChannelConfigurationProgramSurround2XMono_2(0x05) 
439 #define writePCMChannelConfigurationProgramSurround3X_2(n) 0xce00+STD_BETA_PCM,0x1808,0x020b,(n<<8),0x0000,0x0000
440 #define writePCMChannelConfigurationProgramSurround3LwRw_2 writePCMChannelConfigurationProgramSurround3X_2(0x01)
441 #define writePCMChannelConfigurationProgramSurround3LhRh_2 writePCMChannelConfigurationProgramSurround3X_2(0x04)
442 #define writePCMChannelConfigurationProgramSurround3LwRwLhRh_2 writePCMChannelConfigurationProgramSurround3X_2(0x05)
443 #define writePCMChannelConfigurationProgramSurround4X_2(n) 0xce00+STD_BETA_PCM,0x1808,0x020c,(n<<8),0x0000,0x0000
444 #define writePCMChannelConfigurationProgramSurround4LwRw_2 writePCMChannelConfigurationProgramSurround4X_2(0x01)
445 #define writePCMChannelConfigurationProgramSurround4LhRh_2 writePCMChannelConfigurationProgramSurround4X_2(0x04)
446 #define writePCMChannelConfigurationProgramSurround4LwRwLhRh_2 writePCMChannelConfigurationProgramSurround4X_2(0x05)
448 // sort of legacy.  Only writes the low 32 bits.
449 // #define writePCMChannelConfigurationProgramHL(HH,LL) 0xcc00+STD_BETA_PCM,0x001C,LL,HH
450 #define writePCMChannelConfigurationProgramHL(HH,LL) 0xce00+STD_BETA_PCM,0x1808,LL,HH,0,0
452 // writes the full 64 bits
453 #define writePCMExtChannelConfigurationProgramHLHL(HH,HL,LH,LL) 0xce00+STD_BETA_PCM,0x1808,LL,LH,HL,HH
455 #define  readPCMChannelConfigurationProgramExtChan         0xc200+STD_BETA_PCM,0x0b00
456 #define  readPCMChannelConfigurationProgramExtMask         readPCMChannelConfigurationProgramExtChan
457 #define writePCMChannelConfigurationProgramExtChanNone     0xca00+STD_BETA_PCM,0x0b00
458 #define writePCMChannelConfigurationProgramExtChanLhRh     0xca00+STD_BETA_PCM,(0x0b04)//PAF_CC_EXTMASK_LhRh
459 #define writePCMChannelConfigurationProgramExtChanLwRw     0xca00+STD_BETA_PCM,(0x0b01)//PAF_CC_EXTMASK_LwRw
460 #define writePCMChannelConfigurationProgramExtChanLhRhLwRw 0xca00+STD_BETA_PCM,(0x0b05)//PAF_CC_EXTMASK_LhRh|PAF_CC_EXTMASK_LwRw
462 #define writePCMChannelConfigurationProgramAuxUnknown 0xca00+STD_BETA_PCM,0x0a00
463 #define writePCMChannelConfigurationProgramAuxStereo 0xca00+STD_BETA_PCM,0x0a01
464 #define writePCMChannelConfigurationProgramAuxLtRt 0xca00+STD_BETA_PCM,0x0a02
465 #define writePCMChannelConfigurationProgramAuxMono 0xca00+STD_BETA_PCM,0x0a03
466 #define writePCMChannelConfigurationProgramAuxDual 0xca00+STD_BETA_PCM,0x0a04
468 //ATMOS
469 #define writePCMChannelConfigurationProgramSurround2ATMOS_0(n) 0xce00+STD_BETA_PCM,0x1808,0x000a,0x0000,(n<<8),0x0000
470 #define writePCMChannelConfigurationProgramSurround2ATMOS_1(n) 0xce00+STD_BETA_PCM,0x1808,0x010a,0x0000,(n<<8),0x0000
471 #define writePCMChannelConfigurationProgramSurround2ATMOS_2(n) 0xce00+STD_BETA_PCM,0x1808,0x020a,0x0000,(n<<8),0x0000
472 #define wrotePCMChannelConfigurationProgramSurround2ATMOSMono_0(n) 0xce00+STD_BETA_PCM,0x1808,0x000a,0x0003,(n<<8),0x0000
473 #define wrotePCMChannelConfigurationProgramSurround2ATMOSMono_1(n) 0xce00+STD_BETA_PCM,0x1808,0x010a,0x0003,(n<<8),0x0000
474 #define wrotePCMChannelConfigurationProgramSurround2ATMOSMono_2(n) 0xce00+STD_BETA_PCM,0x1808,0x020a,0x0003,(n<<8),0x0000
476 #define writePCMChannelConfigurationProgramSurround2LwRwATMOS_0(n) 0xce00+STD_BETA_PCM,0x1808,0x000a,0x0100,(n<<8),0x0000
477 #define writePCMChannelConfigurationProgramSurround2LwRwATMOS_1(n) 0xce00+STD_BETA_PCM,0x1808,0x010a,0x0100,(n<<8),0x0000
478 #define writePCMChannelConfigurationProgramSurround2LwRwATMOS_2(n) 0xce00+STD_BETA_PCM,0x1808,0x020a,0x0100,(n<<8),0x0000
479 #define wrotePCMChannelConfigurationProgramSurround2LwRwATMOSMono_0(n) 0xce00+STD_BETA_PCM,0x1808,0x000a,0x0103,(n<<8),0x0000
480 #define wrotePCMChannelConfigurationProgramSurround2LwRwATMOSMono_1(n) 0xce00+STD_BETA_PCM,0x1808,0x010a,0x0103,(n<<8),0x0000
481 #define wrotePCMChannelConfigurationProgramSurround2LwRwATMOSMono_2(n) 0xce00+STD_BETA_PCM,0x1808,0x020a,0x0103,(n<<8),0x0000
483 #define writePCMChannelConfigurationProgramSurround4ATMOS_0(n) 0xce00+STD_BETA_PCM,0x1808,0x000c,0x0000,(n<<8),0x0000
484 #define writePCMChannelConfigurationProgramSurround4ATMOS_1(n) 0xce00+STD_BETA_PCM,0x1808,0x010c,0x0000,(n<<8),0x0000
485 #define writePCMChannelConfigurationProgramSurround4ATMOS_2(n) 0xce00+STD_BETA_PCM,0x1808,0x020c,0x0000,(n<<8),0x0000
486 #define wrotePCMChannelConfigurationProgramSurround4ATMOSMono_0(n) 0xce00+STD_BETA_PCM,0x1808,0x000c,0x0003,(n<<8),0x0000
487 #define wrotePCMChannelConfigurationProgramSurround4ATMOSMono_1(n) 0xce00+STD_BETA_PCM,0x1808,0x010c,0x0003,(n<<8),0x0000
488 #define wrotePCMChannelConfigurationProgramSurround4ATMOSMono_2(n) 0xce00+STD_BETA_PCM,0x1808,0x020c,0x0003,(n<<8),0x0000
490 #define writePCMChannelConfigurationProgramSurround4LwRwATMOS_0(n) 0xce00+STD_BETA_PCM,0x1808,0x000a,0x0100,(n<<8),0x0000
491 #define writePCMChannelConfigurationProgramSurround4LwRwATMOS_1(n) 0xce00+STD_BETA_PCM,0x1808,0x010a,0x0100,(n<<8),0x0000
492 #define writePCMChannelConfigurationProgramSurround4LwRwATMOS_2(n) 0xce00+STD_BETA_PCM,0x1808,0x020a,0x0100,(n<<8),0x0000
493 #define wrotePCMChannelConfigurationProgramSurround4LwRwATMOSMono_0(n) 0xce00+STD_BETA_PCM,0x1808,0x000c,0x0103,(n<<8),0x0000
494 #define wrotePCMChannelConfigurationProgramSurround4LwRwATMOSMono_1(n) 0xce00+STD_BETA_PCM,0x1808,0x010c,0x0103,(n<<8),0x0000
495 #define wrotePCMChannelConfigurationProgramSurround4LwRwATMOSMono_2(n) 0xce00+STD_BETA_PCM,0x1808,0x020c,0x0103,(n<<8),0x0000
497 #define writePCMChannelConfigurationProgramSurround2LtfRtfLtrRtr_0 writePCMChannelConfigurationProgramSurround2ATMOS_0(0xA)
498 #define writePCMChannelConfigurationProgramSurround2LtfRtfLtrRtr_1 writePCMChannelConfigurationProgramSurround2ATMOS_1(0xA)
499 #define writePCMChannelConfigurationProgramSurround2LtfRtfLtrRtr_2 writePCMChannelConfigurationProgramSurround2ATMOS_2(0xA)
500 #define wrotePCMChannelConfigurationProgramSurround2LtfRtfLtrRtr_0 wrotePCMChannelConfigurationProgramSurround2ATMOSMono_0(0xA)
501 #define wrotePCMChannelConfigurationProgramSurround2LtfRtfLtrRtr_1 wrotePCMChannelConfigurationProgramSurround2ATMOSMono_1(0xA)
502 #define wrotePCMChannelConfigurationProgramSurround2LtfRtfLtrRtr_2 wrotePCMChannelConfigurationProgramSurround2ATMOSMono_2(0xA)
504 #define writePCMChannelConfigurationProgramSurround4LtmRtm_0 writePCMChannelConfigurationProgramSurround4ATMOS_0(0x4)
505 #define writePCMChannelConfigurationProgramSurround4LtmRtm_1 writePCMChannelConfigurationProgramSurround4ATMOS_1(0x4)
506 #define writePCMChannelConfigurationProgramSurround4LtmRtm_2 writePCMChannelConfigurationProgramSurround4ATMOS_2(0x4)
507 #define wrotePCMChannelConfigurationProgramSurround4LtmRtm_0 wrotePCMChannelConfigurationProgramSurround4ATMOSMono_0(0x4)
508 #define wrotePCMChannelConfigurationProgramSurround4LtmRtm_1 wrotePCMChannelConfigurationProgramSurround4ATMOSMono_1(0x4)
509 #define wrotePCMChannelConfigurationProgramSurround4LtmRtm_2 wrotePCMChannelConfigurationProgramSurround4ATMOSMono_2(0x4)
511 #define writePCMChannelConfigurationProgramSurround2LwRwLtfRtfLtrRtr_0 writePCMChannelConfigurationProgramSurround2LwRwATMOS_0(0xA)
512 #define writePCMChannelConfigurationProgramSurround2LwRwLtfRtfLtrRtr_1 writePCMChannelConfigurationProgramSurround2LwRwATMOS_1(0xA)
513 #define writePCMChannelConfigurationProgramSurround2LwRwLtfRtfLtrRtr_2 writePCMChannelConfigurationProgramSurround2LwRwATMOS_2(0xA)
514 #define wrotePCMChannelConfigurationProgramSurround2LwRwLtfRtfLtrRtr_0 wrotePCMChannelConfigurationProgramSurround2LwRwATMOSMono_0(0xA)
515 #define wrotePCMChannelConfigurationProgramSurround2LwRwLtfRtfLtrRtr_1 wrotePCMChannelConfigurationProgramSurround2LwRwATMOSMono_1(0xA)
516 #define wrotePCMChannelConfigurationProgramSurround2LwRwLtfRtfLtrRtr_2 wrotePCMChannelConfigurationProgramSurround2LwRwATMOSMono_2(0xA)
518 #define writePCMChannelConfigurationProgramSurround4LtfRtfLtrRtr_0 writePCMChannelConfigurationProgramSurround4ATMOS_0(0xA)
519 #define writePCMChannelConfigurationProgramSurround4LtfRtfLtrRtr_1 writePCMChannelConfigurationProgramSurround4ATMOS_1(0xA)
520 #define writePCMChannelConfigurationProgramSurround4LtfRtfLtrRtr_2 writePCMChannelConfigurationProgramSurround4ATMOS_2(0xA)
521 #define wrotePCMChannelConfigurationProgramSurround4LtfRtfLtrRtr_0 wrotePCMChannelConfigurationProgramSurround4ATMOSMono_0(0xA)
522 #define wrotePCMChannelConfigurationProgramSurround4LtfRtfLtrRtr_1 wrotePCMChannelConfigurationProgramSurround4ATMOSMono_1(0xA)
523 #define wrotePCMChannelConfigurationProgramSurround4LtfRtfLtrRtr_2 wrotePCMChannelConfigurationProgramSurround4ATMOSMono_2(0xA)
525 #define writePCMChannelConfigurationProgramSurround4LwRwLtfRtfLtrRtr_0 writePCMChannelConfigurationProgramSurround4LwRwATMOS_0(0xA)
526 #define writePCMChannelConfigurationProgramSurround4LwRwLtfRtfLtrRtr_1 writePCMChannelConfigurationProgramSurround4LwRwATMOS_1(0xA)
527 #define writePCMChannelConfigurationProgramSurround4LwRwLtfRtfLtrRtr_2 writePCMChannelConfigurationProgramSurround4LwRwATMOS_2(0xA)
528 #define wrotePCMChannelConfigurationProgramSurround4LwRwLtfRtfLtrRtr_0 wrotePCMChannelConfigurationProgramSurround4LwRwATMOSMono_0(0xA)
529 #define wrotePCMChannelConfigurationProgramSurround4LwRwLtfRtfLtrRtr_1 wrotePCMChannelConfigurationProgramSurround4LwRwATMOSMono_1(0xA)
530 #define wrotePCMChannelConfigurationProgramSurround4LwRwLtfRtfLtrRtr_2 wrotePCMChannelConfigurationProgramSurround4LwRwATMOSMono_2(0xA)
532 #define writePCMChannelConfigurationProgramPhantom4LwRwATMOS_0(n) 0xce00+STD_BETA_PCM,0x1808,0x0007,0x0100,(n<<8),0x0000
533 #define writePCMChannelConfigurationProgramPhantom4LwRwATMOS_1(n) 0xce00+STD_BETA_PCM,0x1808,0x0107,0x0100,(n<<8),0x0000
534 #define writePCMChannelConfigurationProgramPhantom4LwRwATMOS_2(n) 0xce00+STD_BETA_PCM,0x1808,0x0207,0x0100,(n<<8),0x0000
535 #define writePCMChannelConfigurationProgramPhantom4LwRwLctRct_0 writePCMChannelConfigurationProgramPhantom4LwRwATMOS_0(0x20)
536 #define writePCMChannelConfigurationProgramPhantom4LwRwLctRct_1 writePCMChannelConfigurationProgramPhantom4LwRwATMOS_1(0x20)
537 #define writePCMChannelConfigurationProgramPhantom4LwRwLctRct_2 writePCMChannelConfigurationProgramPhantom4LwRwATMOS_2(0x20)
538 #define writePCMChannelConfigurationProgramPhantom4LwRwLtfRtfLtmRtmLctRct_0 writePCMChannelConfigurationProgramPhantom4LwRwATMOS_0(0x26)
539 #define writePCMChannelConfigurationProgramPhantom4LwRwLtfRtfLtmRtmLctRct_1 writePCMChannelConfigurationProgramPhantom4LwRwATMOS_1(0x26)
540 #define writePCMChannelConfigurationProgramPhantom4LwRwLtfRtfLtmRtmLctRct_2 writePCMChannelConfigurationProgramPhantom4LwRwATMOS_2(0x26)
542 // Reference: pafcc.h: PAFCC_SIX_CHANNEL_CONFIG_FULL "5.1" 6 channel config
543 // PAF_ChannelConfiguration [sub][sat],[extMask][aux],[extMask3][extMask2],[reserved2][reserved1]
544 // PAF_ChannelConfiguration 0x010a,0x0000,0x0000,0x0000
545 #define writePCMChannelConfigurationProgramSurround2_5_1 0xce00+STD_BETA_PCM,0x1808,0x010a,0x0000,0x0000,0x0000
547 // Reference: pafcc.h: PAFCC_EIGHT_CHANNEL_CONFIG_FULL "7.1" 8 channel config
548 // PAF_ChannelConfiguration [sub][sat],[extMask][aux],[extMask3][extMask2],[reserved2][reserved1]
549 // PAF_ChannelConfiguration 0x010c,0x0000,0x0000,0x0000
550 #define writePCMChannelConfigurationProgramSurround4_7_1 0xce00+STD_BETA_PCM,0x1808,0x010c,0x0000,0x0000,0x0000
552 // Reference: pafcc.h: PAFCC_TWELVE_CHANNEL_ATMOS_CONFIG_FULL "11.1" 12 channel mask (ATMOS version)
553 // PAF_LEFT,PAF_RGHT,PAF_CNTR,PAF_LTRR,PAF_RTRR,PAF_LSUR,PAF_RSUR,PAF_LBAK,PAF_RBAK,PAF_SUBW,PAF_LTFT,PAF_RTFT,
554 // PAF_ChannelConfiguration [sub][sat],[extMask][aux],[extMask3][extMask2],[reserved2][reserved1]
555 // PAF_ChannelConfiguration 0x010c,0x0000,0x0a00,0x0000
556 #define writePCMChannelConfigurationProgramSurround4LtfRtfLtrRtr_11_1 writePCMChannelConfigurationProgramSurround4LtfRtfLtrRtr_1
558 // Reference: pafcc.h: PAFCC_TWELVE_CHANNEL_CONFIG_FULL "11.1" 12 channel mask (non ATMOS version)
559 // PAF_LEFT,PAF_RGHT,PAF_CNTR,PAF_LWID,PAF_RWID,PAF_LSUR,PAF_RSUR,PAF_LBAK,PAF_RBAK,PAF_SUBW,PAF_LHED,PAF_RHED
560 // PAF_ChannelConfiguration [sub][sat],[extMask][aux],[extMask3][extMask2],[reserved2][reserved1]
561 // PAF_ChannelConfiguration 0x010c,0x0500,0x0000,0x0000
562 #define writePCMChannelConfigurationProgramSurround4LhRhLwRw_11_1 0xce00+STD_BETA_PCM,0x1808,0x010c,0x0500,0x0000,0x0000
563  
564 // Reference: pafcc.h: PAFCC_SIXTEEN_CHANNEL_CONFIG_FULL "14.2" 14 channel mask
565 // PAF_ChannelConfiguration [sub][sat],[extMask][aux],[extMask3][extMask2],[reserved2][reserved1]
566 // PAF_ChannelConfiguration 0x0207,0x0100,0x2600,0x0000
567 #define writePCMChannelConfigurationProgramPhantom4LwRwLtfRtfLtmRtmLctRct_14_2 writePCMChannelConfigurationProgramPhantom4LwRwLtfRtfLtmRtmLctRct_2
568 #define writePCMChannelConfigurationProgram16Channels writePCMChannelConfigurationProgramPhantom4LwRwLtfRtfLtmRtmLctRct_14_2
570 // Reference: pafcc.h: PAFCC_THIRTYTWO_CHANNEL_CONFIG_FULL 32 channel mask
571 // PAF_ChannelConfiguration [sub][sat],[extMask][aux],[extMask3][extMask2],[reserved2][reserved1]
572 // PAF_ChannelConfiguration 0x0207,0x0100,0xe67f,0x0000
573 #define writePCMChannelConfigurationProgramPhantom4LwRwLtfRtfLtmRtmLctRctLhbkRhbkChbk_30_2 0xce00+STD_BETA_PCM,0x1808,0x0207,0x0100,0xe67f,0x0000
574 // Obsolete: #define writePCMChannelConfigurationProgram32Channels 0xce00+STD_BETA_PCM,0x1808,0x020c,0xff00,0x3fff,0x0000
575 #define writePCMChannelConfigurationProgram32Channels writePCMChannelConfigurationProgramPhantom4LwRwLtfRtfLtmRtmLctRctLhbkRhbkChbk_30_2
577 #define readPCMChannelConfigurationProgramATMOSChan         0xc200+STD_BETA_PCM,0x3d00
578 #define readPCMChannelConfigurationProgramATMOSMask         readPCMChannelConfigurationProgramATMOSChan
579 #define writePCMChannelConfigurationProgramATMOSChanNone     0xca00+STD_BETA_PCM,0x3d00
580 #define writePCMChannelConfigurationProgramATMOSChanLfhRfhLrhRrh     0xca00+STD_BETA_PCM,(0x3d11)//PAF_CC_EXTMASK_LfhRfh|PAF_CC_EXTMASK_LrhRrh
581 #define writePCMChannelConfigurationProgramATMOSChanLtfRtfLtrRtr     0xca00+STD_BETA_PCM,(0x3d0a)//PAF_CC_EXTMASK_LtfRtf|PAF_CC_EXTMASK_LtrRtr
582 #define writePCMChannelConfigurationProgramATMOSChanLtmRtm 0xca00+STD_BETA_PCM,(0x3d04)//PAF_CC_EXTMASK_LtmRtm
584 //-------------------------------------------------------------------------------------------------------------
585 #define  readPCMCenterMixLevel 0xc300+STD_BETA_PCM,0x000C
586 #define writePCMCenterMixLevelN(NN) 0xcb00+STD_BETA_PCM,0x000C,(0xFFFF&(NN))
587 #define wrotePCMCenterMixLevel 0xcb00+STD_BETA_PCM,0x000C
589 #define  readPCMSurroundMixLevel 0xc300+STD_BETA_PCM,0x000E
590 #define writePCMSurroundMixLevelN(NN) 0xcb00+STD_BETA_PCM,0x000E,(0xFFFF&(NN))
591 #define wrotePCMSurroundMixLevel 0xcb00+STD_BETA_PCM,0x000E
593 #define  readPCMLFEDownmixInclude 0xc200+STD_BETA_PCM,0x1000
594 #define writePCMLFEDownmixIncludeNo 0xca00+STD_BETA_PCM,0x1000
595 #define writePCMLFEDownmixIncludeYes 0xca00+STD_BETA_PCM,0x1001
598 #define  readPCMStatus 0xc508,STD_BETA_PCM
599 #define  readPCMControl \
600          readPCMMode, \
601          readPCMRamp, \
602          readPCMScaleVolume, \
603          readPCMLFEDownmixVolume, \
604          readPCMChannelConfigurationProgram, \
605          readPCMCenterMixLevel, \
606          readPCMSurroundMixLevel, \
607          readPCMLFEDownmixInclude         
609 #endif /* _PCM_A */