RDK Documentation (Open Sourced RDK Components)
dsRpc.h
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 
21 
22 /**
23 * @defgroup devicesettings
24 * @{
25 * @defgroup rpc
26 * @{
27 **/
28 
29 
30 #ifndef _IARM_RPDS_H_
31 #define _IARM_RPDS_H_
32 
33 #include "dsTypes.h"
34 #include "dsError.h"
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40 
41 
42 /*
43  * Declare RPC dsAudio API names
44  */
45 #define IARM_BUS_DSMGR_API_dsAudioPortInit "dsAudioPortInit"
46 #define IARM_BUS_DSMGR_API_dsGetAudioPort "dsGetAudioPort"
47 #define IARM_BUS_DSMGR_API_dsSetStereoMode "dsSetStereoMode"
48 #define IARM_BUS_DSMGR_API_dsGetStereoMode "dsGetStereoMode"
49 #define IARM_BUS_DSMGR_API_dsSetStereoAuto "dsSetStereoAuto"
50 #define IARM_BUS_DSMGR_API_dsGetStereoAuto "dsGetStereoAuto"
51 #define IARM_BUS_DSMGR_API_dsGetEncoding "dsGetEncoding"
52 #define IARM_BUS_DSMGR_API_dsGetAudioFormat "dsGetAudioFormat"
53 #define IARM_BUS_DSMGR_API_dsSetAudioMute "dsSetAudioMute"
54 #define IARM_BUS_DSMGR_API_dsIsAudioMute "dsIsAudioMute"
55 #define IARM_BUS_DSMGR_API_dsIsAudioMSDecode "dsIsAudioMSDecode"
56 #define IARM_BUS_DSMGR_API_dsIsAudioMS12Decode "dsIsAudioMS12Decode"
57 #define IARM_BUS_DSMGR_API_dsGetSupportedARCTypes "dsGetSupportedARCTypes"
58 #define IARM_BUS_DSMGR_API_dsAudioSetSAD "dsAudioSetSAD"
59 #define IARM_BUS_DSMGR_API_dsAudioEnableARC "dsAudioEnableARC"
60 
61 #define IARM_BUS_DSMGR_API_dsIsAudioPortEnabled "dsIsAudioPortEnabled"
62 #define IARM_BUS_DSMGR_API_dsEnableAudioPort "dsEnableAudioPort"
63 
64 #define IARM_BUS_DSMGR_API_dsGetEnablePersist "getPortEnablePersistVal"
65 #define IARM_BUS_DSMGR_API_dsSetEnablePersist "setPortEnablePersistVal"
66 
67 #define IARM_BUS_DSMGR_API_dsAudioPortTerm "dsAudioPortTerm"
68 #define IARM_BUS_DSMGR_API_dsEnableMS12Config "dsEnableMS12Config"
69 #define IARM_BUS_DSMGR_API_dsEnableLEConfig "dsEnableLEConfig"
70 #define IARM_BUS_DSMGR_API_dsGetLEConfig "dsGetLEConfig"
71 #define IARM_BUS_DSMGR_API_dsSetAudioDelay "dsSetAudioDelay"
72 #define IARM_BUS_DSMGR_API_dsGetAudioDelay "dsGetAudioDelay"
73 #define IARM_BUS_DSMGR_API_dsSetAudioDelayOffset "dsSetAudioDelayOffset"
74 #define IARM_BUS_DSMGR_API_dsGetAudioDelayOffset "dsGetAudioDelayOffset"
75 #define IARM_BUS_DSMGR_API_dsGetSinkDeviceAtmosCapability "dsGetSinkDeviceAtmosCapability"
76 #define IARM_BUS_DSMGR_API_dsSetAudioAtmosOutputMode "dsSetAudioAtmosOutputMode"
77 #define IARM_BUS_DSMGR_API_dsSetAudioDucking "dsSetAudioDucking"
78 #define IARM_BUS_DSMGR_API_dsSetAudioLevel "dsSetAudioLevel"
79 #define IARM_BUS_DSMGR_API_dsGetAudioLevel "dsGetAudioLevel"
80 #define IARM_BUS_DSMGR_API_dsSetAudioGain "dsSetAudioGain"
81 #define IARM_BUS_DSMGR_API_dsGetAudioGain "dsGetAudioGain"
82 
83 #define IARM_BUS_DSMGR_API_dsSetAudioCompression "dsSetAudioCompression"
84 #define IARM_BUS_DSMGR_API_dsGetAudioCompression "dsGetAudioCompression"
85 #define IARM_BUS_DSMGR_API_dsSetDialogEnhancement "dsSetDialogEnhancement"
86 #define IARM_BUS_DSMGR_API_dsGetDialogEnhancement "dsGetDialogEnhancement"
87 #define IARM_BUS_DSMGR_API_dsSetDolbyVolumeMode "dsSetDolbyVolumeMode"
88 #define IARM_BUS_DSMGR_API_dsGetDolbyVolumeMode "dsGetDolbyVolumeMode"
89 #define IARM_BUS_DSMGR_API_dsSetIntelligentEqualizerMode "dsSetIntelligentEqualizerMode"
90 #define IARM_BUS_DSMGR_API_dsGetIntelligentEqualizerMode "dsGetIntelligentEqualizerMode"
91 #define IARM_BUS_DSMGR_API_dsGetVolumeLeveller "dsGetVolumeLeveller"
92 #define IARM_BUS_DSMGR_API_dsSetVolumeLeveller "dsSetVolumeLeveller"
93 #define IARM_BUS_DSMGR_API_dsGetBassEnhancer "dsGetBassEnhancer"
94 #define IARM_BUS_DSMGR_API_dsSetBassEnhancer "dsSetBassEnhancer"
95 #define IARM_BUS_DSMGR_API_dsIsSurroundDecoderEnabled "dsIsSurroundDecoderEnabled"
96 #define IARM_BUS_DSMGR_API_dsEnableSurroundDecoder "dsEnableSurroundDecoder"
97 #define IARM_BUS_DSMGR_API_dsGetDRCMode "dsGetDRCMode"
98 #define IARM_BUS_DSMGR_API_dsSetDRCMode "dsSetDRCMode"
99 #define IARM_BUS_DSMGR_API_dsGetSurroundVirtualizer "dsGetSurroundVirtualizer"
100 #define IARM_BUS_DSMGR_API_dsSetSurroundVirtualizer "dsSetSurroundVirtualizer"
101 #define IARM_BUS_DSMGR_API_dsGetMISteering "dsGetMISteering"
102 #define IARM_BUS_DSMGR_API_dsSetMISteering "dsSetMISteering"
103 #define IARM_BUS_DSMGR_API_dsSetGraphicEqualizerMode "dsSetGraphicEqualizerMode"
104 #define IARM_BUS_DSMGR_API_dsGetGraphicEqualizerMode "dsGetGraphicEqualizerMode"
105 #define IARM_BUS_DSMGR_API_dsGetMS12AudioProfileList "dsGetMS12AudioProfileList"
106 #define IARM_BUS_DSMGR_API_dsGetMS12AudioProfile "dsGetMS12AudioProfile"
107 #define IARM_BUS_DSMGR_API_dsSetMS12AudioProfile "dsSetMS12AudioProfile"
108 #define IARM_BUS_DSMGR_API_dsSetMS12SetttingsOverride "dsSetMS12SetttingsOverride"
109 
110 #define IARM_BUS_DSMGR_API_dsSetAssociatedAudioMixing "dsSetAssociatedAudioMixing"
111 #define IARM_BUS_DSMGR_API_dsGetAssociatedAudioMixing "dsGetAssociatedAudioMixing"
112 #define IARM_BUS_DSMGR_API_dsSetFaderControl "dsSetFaderControl"
113 #define IARM_BUS_DSMGR_API_dsGetFaderControl "dsGetFaderControl"
114 #define IARM_BUS_DSMGR_API_dsSetPrimaryLanguage "dsSetPrimaryLanguage"
115 #define IARM_BUS_DSMGR_API_dsGetPrimaryLanguage "dsGetPrimaryLanguage"
116 #define IARM_BUS_DSMGR_API_dsSetSecondaryLanguage "dsSetSecondaryLanguage"
117 #define IARM_BUS_DSMGR_API_dsGetSecondaryLanguage "dsGetSecondaryLanguage"
118 
119 #define IARM_BUS_DSMGR_API_dsAudioOutIsConnected "dsAudioOutIsConnected"
120 #define IARM_BUS_DSMGR_API_dsGetHDMIARCPortId "dsGetHDMIARCPortId"
121 
122 /*
123  * Declare RPC dsAudio Device API names
124  */
125 #define IARM_BUS_DSMGR_API_dsGetAudioCapabilities "dsGetAudioCapabilities"
126 #define IARM_BUS_DSMGR_API_dsGetMS12Capabilities "dsGetMS12Capabilities"
127 
128 /*
129  * Declare RPC dsDisplay API names
130  */
131 #define IARM_BUS_DSMGR_API_dsDisplayInit "dsDisplayInit"
132 #define IARM_BUS_DSMGR_API_dsGetDisplay "dsGetDisplay"
133 #define IARM_BUS_DSMGR_API_dsGetDisplayAspectRatio "dsGetDisplayAspectRatio"
134 #define IARM_BUS_DSMGR_API_dsGetEDID "dsGetEDID"
135 #define IARM_BUS_DSMGR_API_dsGetEDIDBytes "dsGetEDIDBytes"
136 #define IARM_BUS_DSMGR_API_dsDisplayTerm "dsDisplayTerm"
137 
138 
139 /*
140  * Declare RPC dsVideo Device API names
141  */
142 #define IARM_BUS_DSMGR_API_dsVideoDeviceInit "dsVideoDeviceInit"
143 #define IARM_BUS_DSMGR_API_dsGetVideoDevice "dsGetVideoDevice"
144 #define IARM_BUS_DSMGR_API_dsSetDFC "dsSetDFC"
145 #define IARM_BUS_DSMGR_API_dsGetDFC "dsGetDFC"
146 #define IARM_BUS_DSMGR_API_dsVideoDeviceTerm "dsVideoDeviceTerm"
147 #define IARM_BUS_DSMGR_API_dsSetFRFMode "dsSetFRFMode"
148 #define IARM_BUS_DSMGR_API_dsGetFRFMode "dsGetFRFMode"
149 #define IARM_BUS_DSMGR_API_dsGetCurrentDisframerate "dsGetCurrentDisframerate"
150 #define IARM_BUS_DSMGR_API_dsSetDisplayframerate "dsSetDisplayframerate"
151 /*
152  * Declare RPC dsVideo Port API names
153  */
154 
155 #define IARM_BUS_DSMGR_API_dsVideoPortInit "dsVideoPortInit"
156 #define IARM_BUS_DSMGR_API_dsGetVideoPort "dsGetVideoPort"
157 #define IARM_BUS_DSMGR_API_dsIsVideoPortEnabled "dsIsVideoPortEnabled"
158 #define IARM_BUS_DSMGR_API_dsIsDisplayConnected "dsIsDisplayConnected"
159 #define IARM_BUS_DSMGR_API_dsIsDisplaySurround "dsIsDisplaySurround"
160 #define IARM_BUS_DSMGR_API_dsGetSurroundMode "dsGetSurroundMode"
161 #define IARM_BUS_DSMGR_API_dsEnableVideoPort "dsEnableVideoPort"
162 #define IARM_BUS_DSMGR_API_dsSetResolution "dsSetResolution"
163 #define IARM_BUS_DSMGR_API_dsGetResolution "dsGetResolution"
164 #define IARM_BUS_DSMGR_API_dsColorDepthCapabilities "dsColorDepthCapabilities"
165 #define IARM_BUS_DSMGR_API_dsGetPreferredColorDepth "dsGetPreferredColorDepth"
166 #define IARM_BUS_DSMGR_API_dsSetPreferredColorDepth "dsSetPreferredColorDepth"
167 #define IARM_BUS_DSMGR_API_dsVideoPortTerm "dsVideoPortTerm"
168 #define IARM_BUS_DSMGR_API_dsEnableHDCP "dsEnableHDCP"
169 #define IARM_BUS_DSMGR_API_dsIsHDCPEnabled "dsIsHDCPEnabled"
170 #define IARM_BUS_DSMGR_API_dsGetHDCPStatus "dsGetHDCPStatus"
171 #define IARM_BUS_DSMGR_API_dsGetHDCPProtocol "dsGetHDCPProtocol"
172 #define IARM_BUS_DSMGR_API_dsGetHDCPReceiverProtocol "dsGetHDCPReceiverProtocol"
173 #define IARM_BUS_DSMGR_API_dsGetHDCPCurrentProtocol "dsGetHDCPCurrentProtocol"
174 #define IARM_BUS_DSMGR_API_dsIsVideoPortActive "dsIsVideoPortActive"
175 #define IARM_BUS_DSMGR_API_dsGetHDRCapabilities "dsGetHDRCapabilities"
176 #define IARM_BUS_DSMGR_API_dsGetTVHDRCapabilities "dsGetTVHDRCapabilities"
177 #define IARM_BUS_DSMGR_API_dsGetSupportedTVResolution "dsGetSupportedTVResolution"
178 #define IARM_BUS_DSMGR_API_dsGetSupportedVideoCodingFormats "dsGetSupportedVideoCodingFormats"
179 #define IARM_BUS_DSMGR_API_dsGetVideoCodecInfo "dsGetVideoCodecInfo"
180 #define IARM_BUS_DSMGR_API_dsSetForceDisableHDR "dsForceDisableHDR"
181 #define IARM_BUS_DSMGR_API_dsSetForceDisable4K "dsSetForceDisable4K"
182 #define IARM_BUS_DSMGR_API_dsGetForceDisable4K "dsGetForceDisable4K"
183 #define IARM_BUS_DSMGR_API_dsIsOutputHDR "dsIsOutputHDR"
184 #define IARM_BUS_DSMGR_API_dsResetOutputToSDR "dsResetOutputToSDR"
185 #define IARM_BUS_DSMGR_API_dsSetHdmiPreference "dsSetHdmiPreference"
186 #define IARM_BUS_DSMGR_API_dsGetHdmiPreference "dsGetHdmiPreference"
187 #define IARM_BUS_DSMGR_API_dsSetScartParameter "dsSetScartParameter"
188 #define IARM_BUS_DSMGR_API_dsGetVideoEOTF "dsGetVideoEOTF"
189 #define IARM_BUS_DSMGR_API_dsGetMatrixCoefficients "dsGetMatrixCoefficients"
190 #define IARM_BUS_DSMGR_API_dsGetColorDepth "dsGetColorDepths"
191 #define IARM_BUS_DSMGR_API_dsGetColorSpace "dsGetColorSpace"
192 #define IARM_BUS_DSMGR_API_dsGetQuantizationRange "dsGetQuantizationRange"
193 #define IARM_BUS_DSMGR_API_dsGetCurrentOutputSettings "dsGetCurrentOutputSettings"
194 #define IARM_BUS_DSMGR_API_dsSetBackgroundColor "dsSetBackgroundColor"
195 #define IARM_BUS_DSMGR_API_dsSetForceHDRMode "dsSetForceHDRMode"
196 /*
197  * Declare RPC FP API names
198  */
199 
200 #define IARM_BUS_DSMGR_API_dsFPInit "dsFPInit"
201 #define IARM_BUS_DSMGR_API_dsFPTerm "dsFPTerm"
202 #define IARM_BUS_DSMGR_API_dsSetFPText "dsSetFPText"
203 #define IARM_BUS_DSMGR_API_dsSetFPTime "dsSetFPTime"
204 #define IARM_BUS_DSMGR_API_dsSetFPScroll "dsSetFPScroll"
205 #define IARM_BUS_DSMGR_API_dsSetFPBlink "dsSetFPBlink"
206 #define IARM_BUS_DSMGR_API_dsGetFPBrightness "dsGetFPBrightness"
207 #define IARM_BUS_DSMGR_API_dsSetFPBrightness "dsSetFPBrightness"
208 #define IARM_BUS_DSMGR_API_dsGetFPState "dsGetFPState"
209 #define IARM_BUS_DSMGR_API_dsSetFPState "dsSetFPState"
210 #define IARM_BUS_DSMGR_API_dsSetFPColor "dsSetFPColor"
211 #define IARM_BUS_DSMGR_API_dsGetFPColor "dsGetFPColor"
212 #define IARM_BUS_DSMGR_API_dsGetFPTextBrightness "dsGetFPTextBrightness"
213 #define IARM_BUS_DSMGR_API_dsSetFPTextBrightness "dsSetFPTextBrightness"
214 #define IARM_BUS_DSMGR_API_dsFPEnableCLockDisplay "dsFPEnableCLockDisplay"
215 #define IARM_BUS_DSMGR_API_dsGetTimeFormat "dsGetTimeFormat"
216 #define IARM_BUS_DSMGR_API_dsSetTimeFormat "dsSetTimeFormat"
217 #define IARM_BUS_DSMGR_API_dsSetFPDMode "dsSetFPDMode"
218 
219 
220 /*
221  * Declare RPC HDMI API names
222  */
223 #define IARM_BUS_DSMGR_API_dsHdmiInInit "dsHdmiInInit"
224 #define IARM_BUS_DSMGR_API_dsHdmiInTerm "dsHdmiInTerm"
225 #define IARM_BUS_DSMGR_API_dsHdmiInGetNumberOfInputs "dsHdmiInGetNumberOfInputs"
226 #define IARM_BUS_DSMGR_API_dsHdmiInGetStatus "dsHdmiInGetStatus"
227 #define IARM_BUS_DSMGR_API_dsHdmiInSelectPort "dsHdmiInSelectPort"
228 #define IARM_BUS_DSMGR_API_dsHdmiInScaleVideo "dsHdmiInScaleVideo"
229 #define IARM_BUS_DSMGR_API_dsHdmiInSelectZoomMode "dsHdmiInSelectZoomMode"
230 #define IARM_BUS_DSMGR_API_dsHdmiInPauseAudio "dsHdmiInPauseAudio"
231 #define IARM_BUS_DSMGR_API_dsHdmiInResumeAudio "dsHdmiInResumeAudio"
232 #define IARM_BUS_DSMGR_API_dsHdmiInGetCurrentVideoMode "dsHdmiInGetCurrentVideoMode"
233 #define IARM_BUS_DSMGR_API_dsGetEDIDBytesInfo "dsGetEDIDBytesInfo"
234 #define IARM_BUS_DSMGR_API_dsGetHDMISPDInfo "dsGetHDMISPDInfo"
235 #define IARM_BUS_DSMGR_API_dsSetEdidVersion "dsSetEdidVersion"
236 #define IARM_BUS_DSMGR_API_dsGetEdidVersion "dsGetEdidVersion"
237 #define IARM_BUS_DSMGR_API_dsGetAllmStatus "dsGetAllmStatus"
238 #define IARM_BUS_DSMGR_API_dsGetSupportedGameFeaturesList "dsGetSupportedGameFeaturesList"
239 
240 /*
241  * Declare RPC COMPOSITE INPUT API names
242  */
243 #define IARM_BUS_DSMGR_API_dsCompositeInInit "dsCompositeInInit"
244 #define IARM_BUS_DSMGR_API_dsCompositeInTerm "dsCompositeInTerm"
245 #define IARM_BUS_DSMGR_API_dsCompositeInGetNumberOfInputs "dsCompositeInGetNumberOfInputs"
246 #define IARM_BUS_DSMGR_API_dsCompositeInGetStatus "dsCompositeInGetStatus"
247 #define IARM_BUS_DSMGR_API_dsCompositeInSelectPort "dsCompositeInSelectPort"
248 #define IARM_BUS_DSMGR_API_dsCompositeInScaleVideo "dsCompositeInScaleVideo"
249 
250 /*
251  * Declare RPC Host Interface API names
252  */
253 
254 #define IARM_BUS_DSMGR_API_dsHostInit "dsHostInit"
255 #define IARM_BUS_DSMGR_API_dsHostTerm "dsHostTerm"
256 #define IARM_BUS_DSMGR_API_dsSetPreferredSleepMode "dsSetPreferredSleepMode"
257 #define IARM_BUS_DSMGR_API_dsGetPreferredSleepMode "dsGetPreferredSleepMode"
258 #define IARM_BUS_DSMGR_API_dsGetCPUTemperature "dsGetCPUTemperature"
259 #define IARM_BUS_DSMGR_API_dsGetVersion "dsGetVersion"
260 #define IARM_BUS_DSMGR_API_dsSetVersion "dsSetVersion"
261 #define IARM_BUS_DSMGR_API_dsGetSocIDFromSDK "dsGetSocIDFromSDK"
262 #define IARM_BUS_DSMGR_API_dsGetHostEDID "dsGetHostEDID"
263 
264 /*
265  * Declare Reset MS12 setting Interface API names
266  */
267 #define IARM_BUS_DSMGR_API_dsResetDialogEnhancement "dsResetDialogEnhancement"
268 #define IARM_BUS_DSMGR_API_dsResetBassEnhancer "dsResetBassEnhancer"
269 #define IARM_BUS_DSMGR_API_dsResetSurroundVirtualizer "dsResetSurroundVirtualizer"
270 #define IARM_BUS_DSMGR_API_dsResetVolumeLeveller "dsResetVolumeLeveller"
271 
272 #define IARM_BUS_DSMGR_API_SetStandbyVideoState "SetStandbyVideoState"
273 #define IARM_BUS_DSMGR_API_GetStandbyVideoState "GetStandbyVideoState"
274 #define IARM_BUS_DSMGR_API_SetAvPortState "SetAvPortState"
275 #define IARM_BUS_DSMGR_API_SetLEDStatus "SetLEDStatus"
276 #define IARM_BUS_DSMGR_API_SetRebootConfig "SetRebootConfig"
277 #define DSMGR_MAX_VIDEO_PORT_NAME_LENGTH 16
278 #define PWRMGR_MAX_REBOOT_REASON_LENGTH 100
279 
281  char port[DSMGR_MAX_VIDEO_PORT_NAME_LENGTH];
282  int isEnabled;
283  int result;
285 
287  char reboot_reason_custom[PWRMGR_MAX_REBOOT_REASON_LENGTH];
288  int powerState;
289  int result;
291 
293  int avPortPowerState;
294  int result;
296 
297 typedef struct _dsMgrLEDStatusParam_t{
298  int ledState;
299  int result;
301 
302 typedef struct _dsAudioGetHandleParam_t {
303  dsAudioPortType_t type;
304  int index;
305  intptr_t handle;
307 
309  intptr_t handle;
310  int types;
312 
313 typedef struct _dsAudioSetSADParam_t {
314  intptr_t handle;
315  dsAudioSADList_t list;
317 
318 typedef struct _dsAudioEnableARCParam_t {
319  intptr_t handle;
320  dsAudioARCStatus_t arcStatus;
322 
324  intptr_t handle;
325  dsAudioStereoMode_t mode;
326  dsError_t rpcResult;
327  bool toPersist;
329 
331  intptr_t handle;
332  int autoMode;
333  bool toPersist;
335 
336 typedef struct _dsAudioSetMutedParam_t {
337  intptr_t handle;
338  bool mute;
340 
341 typedef struct _dsEdidIgnoreParam_t {
342  intptr_t handle;
343  bool ignoreEDID;
345 
346 typedef struct _dsAudioSetLevelParam_t {
347  intptr_t handle;
348  float level;
350 
352  intptr_t handle;
353  dsAudioDuckingAction_t action;
355  unsigned char level;
357 
358 typedef struct _dsAudioGainParam_t {
359  intptr_t handle;
360  float gain;
362 
363 typedef struct _dsAudioFormatParam_t {
364  intptr_t handle;
365  dsAudioFormat_t audioFormat;
367 
369  intptr_t handle;
370  dsAudioEncoding_t encoding;
372 
373 typedef struct _dsAudioGetMS11Param_t {
374  intptr_t handle;
375  bool ms11Enabled;
377 
378 typedef struct _dsAudioGetMS12Param_t {
379  intptr_t handle;
380  bool ms12Enabled;
382 
383 typedef struct _dsGetAudioDelayParam_t {
384  intptr_t handle;
385  uint32_t audioDelayMs;
387 
389  intptr_t handle;
390  bool enable;
392 
394  intptr_t handle;
395  dsATMOSCapability_t capability;
397 
398 typedef struct _dsSetAudioDelayParam_t {
399  intptr_t handle;
400  uint32_t audioDelayMs;
402 
404  intptr_t handle;
405  uint32_t audioDelayOffsetMs;
407 
409  intptr_t handle;
410  int compression;
412 
414  intptr_t handle;
415  int enhancerLevel;
417 
418 typedef struct _dsSetDolbyVolumeParam_t {
419  intptr_t handle;
420  bool enable;
422 
424  intptr_t handle;
425  int mode;
427 
428 typedef struct _dsVolumeLevellerParam_t {
429  intptr_t handle;
430  dsVolumeLeveller_t volLeveller;
432 
433 typedef struct _dsBassEnhancerParam_t {
434  intptr_t handle;
435  int boost;
437 
439  intptr_t handle;
440  bool enable;
442 
443 typedef struct _dsDRCModeParam_t {
444  intptr_t handle;
445  int mode;
447 
449  intptr_t handle;
450  dsSurroundVirtualizer_t virtualizer;
452 
453 typedef struct _dsMISteeringParam_t {
454  intptr_t handle;
455  bool enable;
457 
459  intptr_t handle;
460  int mode;
462 
464  intptr_t handle;
465  bool mixing;
467 
468 typedef struct _dsFaderControlParam_t {
469  intptr_t handle;
470  int mixerbalance;
472 
474  intptr_t handle;
475  char primaryLanguage[MAX_LANGUAGE_LEN];
477 
479  intptr_t handle;
480  char secondaryLanguage[MAX_LANGUAGE_LEN];
482 
483 
484 #define MAX_PROFILE_STRING_LEN 32
486  intptr_t handle;
487  char profile [MAX_PROFILE_STRING_LEN];
489 
491  intptr_t handle;
492  char profileState[MAX_PROFILE_STRING_LEN];
493  char profileName[MAX_PROFILE_STRING_LEN];
494  char profileSettingsName[MAX_PROFILE_STRING_LEN];
495  char profileSettingValue[MAX_PROFILE_STRING_LEN];
497 
499  intptr_t handle;
500  dsMS12AudioProfileList_t profileList;
502 
504  dsVideoPortType_t type;
505  int index;
506  intptr_t handle;
508 
510  intptr_t handle;
511  bool enabled;
512  char portName [32];
514 
515 
517  intptr_t handle;
518  bool active;
519  dsError_t result;
521 
523  intptr_t handle;
524  dsHdcpStatus_t hdcpStatus;
526 
528  intptr_t handle;
529  dsHdcpProtocolVersion_t protocolVersion;
531 
533  intptr_t handle;
536 
538  intptr_t handle;
539  bool connected;
541 
543  intptr_t handle;
544  bool surround;
546 
548  intptr_t handle;
549  int surround;
551 
552 
554  intptr_t handle;
555  bool toPersist;
556  dsVideoPortResolution_t resolution;
558 
559 
561  dsError_t result;
562  intptr_t handle;
563  bool toPersist;
564  bool forceCompatible;
565  dsVideoPortResolution_t resolution;
567 
568 typedef struct {
569  dsError_t result;
570  intptr_t handle;
571  unsigned int colorDepthCapability;
573 
574 typedef struct {
575  dsError_t result;
576  intptr_t handle;
577  dsDisplayColorDepth_t colorDepth;
578  bool toPersist;
580 
582  int index;
583  intptr_t handle;
585 
587  intptr_t handle;
588  dsVideoZoom_t dfc;
590 
592  dsVideoPortType_t type;
593  int index;
594  intptr_t handle;
596 
598  intptr_t handle;
599  dsVideoAspectRatio_t aspectRatio;
601 
602 typedef struct _dsDisplayGetEDIDParam_t {
603  intptr_t handle;
604  dsDisplayEDID_t edid;
606 
608  dsError_t result;
609  intptr_t handle;
610  int resolutions;
612 
614  int result;
615  intptr_t handle;
616  int length;
617  unsigned char bytes[1024];
619 
620 typedef struct _dsFPDTimeParam
621 {
622  dsFPDTimeFormat_t eTime;
623  unsigned int nHours;
624  unsigned int nMinutes;
626 
627 
628 typedef struct _dsFPDTimeFormatParam
629 {
630  dsFPDTimeFormat_t eTime;
632 
633 typedef struct _dsFPDScrollParam
634 {
635  unsigned int nScrollHoldOnDur;
636  unsigned int nHorzScrollIterations;
637  unsigned int nVertScrollIterations;
639 
640 typedef struct _dsFPDBlinkParam
641 {
642  dsFPDIndicator_t eIndicator;
643  unsigned int nBlinkDuration;
644  unsigned int nBlinkIterations;
646 
647 typedef struct _dsFPDBrightParam
648 {
649  dsFPDIndicator_t eIndicator;
650  dsFPDBrightness_t eBrightness;
651  bool toPersist;
653 
654 
655 typedef struct _dsFPDTextBrightParam
656 {
657  dsFPDTextDisplay_t eIndicator;
658  dsFPDBrightness_t eBrightness;
660 
661 
662 typedef struct _dsFPDStateParam
663 {
664  dsFPDIndicator_t eIndicator;
665  dsFPDState_t state;
667 
668 typedef struct _dsFPDColorParam
669 {
670  dsFPDIndicator_t eIndicator;
671  dsFPDColor_t eColor;
672  bool toPersist;
674 
675 typedef struct _dsFPDModeParam
676 {
677  dsFPDMode_t eMode;
679 
680 typedef struct _dsEnableHDCPParam
681 {
682  intptr_t handle;
683  bool contentProtect;
684  char hdcpKey[HDCP_KEY_MAX_SIZE];
685  size_t keySize;
686  dsError_t rpcResult;
688 
689 typedef struct _dsPreferredSleepMode
690 {
691  dsSleepMode_t mode;
693 
694 typedef struct _dsCPUThermalParam
695 {
696  float temperature;
698 
699 typedef struct _dsVesrionParam
700 {
701  uint32_t versionNumber;
703 
704 typedef struct _dsVideoRect
705 {
706  int32_t x;
707  int32_t y;
708  int32_t width;
709  int32_t height;
710 } dsVideoRect_t;
711 
713 {
714  dsError_t result;
715  uint8_t numHdmiInputs;
717 
719 {
720  dsError_t result;
721  dsHdmiInStatus_t status;
723 
725 {
726  dsError_t result;
727  dsHdmiInPort_t port;
729 
731 {
732  dsError_t result;
735 
737 {
738  dsError_t result;
739  dsVideoZoom_t zoomMode;
741 
743 {
744  dsError_t result;
745  dsVideoPortResolution_t resolution;
747 
748 
750 {
751  dsError_t result;
752  uint8_t numCompositeInputs;
754 
756 {
757  dsError_t result;
758  dsCompositeInStatus_t status;
760 
762 {
763  dsError_t result;
764  dsCompositeInPort_t port;
766 
768 {
769  dsError_t result;
772 
773 
775 {
776  dsError_t result;
777  intptr_t handle;
778  int capabilities;
780 
782 {
783  dsError_t result;
784  intptr_t handle;
785  int videoFormats;
787 
789 {
790  dsError_t result;
791  intptr_t handle;
792  int capabilities;
794 
796 {
797  dsError_t result;
798  intptr_t handle;
799  int capabilities;
801 
802 typedef struct _dsMS12ConfigParam_t
803 {
804  intptr_t handle;
805  dsMS12FEATURE_t feature;
806  bool enable;
808 
809 typedef struct _dsLEConfigParam_t
810 {
811  intptr_t handle;
812  bool enable;
814 
815 typedef struct
816 {
817  dsError_t result;
818  intptr_t handle;
819  unsigned int supported_formats;
821 
822 typedef struct
823 {
824  dsError_t result;
825  intptr_t handle;
826  dsVideoCodingFormat_t format;
827  dsVideoCodecInfo_t info;
829 
830 typedef struct
831 {
832  dsError_t result;
833  intptr_t handle;
834  bool disable;
836 
837 typedef struct
838 {
839  dsError_t result;
840  intptr_t handle;
841  dsHDRStandard_t hdrMode;
843 
844 typedef struct
845 {
846  dsError_t result;
847  intptr_t handle;
848  bool disable;
850 
851 typedef struct _dsIsOutputHDRParam_t {
852  dsError_t result;
853  intptr_t handle;
854  bool hdr;
856 
858  dsError_t result;
859  intptr_t handle;
860  dsHdcpProtocolVersion_t hdcpCurrentProtocol;
862 
864  dsError_t result;
865  intptr_t handle;
866  dsHdcpProtocolVersion_t hdcpCurrentProtocol;
868 
869 typedef struct _dsGetLEConfigParam_t {
870  dsError_t result;
871  intptr_t handle;
872  bool enable;
874 
875 #define DS_DEVICEID_LEN_MAX 1024
876 
878  dsError_t result;
879  char socID[DS_DEVICEID_LEN_MAX];
881 
882 #define DSSCART_PARAM_LEN_MAX 1024
883 #define DSSCART_VALUE_LEN_MAX 1024
884 
885 typedef struct _dsScartParamParam_t {
886  int result;
887  intptr_t handle;
888  char param_bytes[DSSCART_PARAM_LEN_MAX];
889  char value_bytes[DSSCART_VALUE_LEN_MAX];
891 
892 typedef struct _dsEot_t {
893  dsError_t result;
894  intptr_t handle;
895  dsHDRStandard_t video_eotf;
896 } dsEot_t;
897 
898 typedef struct _dsMatrixCoefficients_t {
899  dsError_t result;
900  intptr_t handle;
901  dsDisplayMatrixCoefficients_t matrix_coefficients;
903 
904 typedef struct _dsColorDepth_t {
905  dsError_t result;
906  intptr_t handle;
907  uint32_t color_depth;
909 
910 typedef struct _dsColorSpace_t {
911  dsError_t result;
912  intptr_t handle;
913  dsDisplayColorSpace_t color_space;
915 
916 typedef struct _dsQuantizationRange_t {
917  dsError_t result;
918  intptr_t handle;
919  dsDisplayQuantizationRange_t quantization_range;
921 
923  dsError_t result;
924  intptr_t handle;
925  dsHDRStandard_t video_eotf;
926  dsDisplayMatrixCoefficients_t matrix_coefficients;
927  uint32_t color_depth;
928  dsDisplayColorSpace_t color_space;
929  dsDisplayQuantizationRange_t quantization_range;
931 
933 {
934  dsError_t result;
935  intptr_t handle;
936  bool isCon;
938 
940 {
941  dsError_t result;
942  int iHdmiPort;
943  unsigned char edid [MAX_EDID_BYTES_LEN];
944  int length;
946 
948 {
949  dsError_t result;
950  int iHdmiPort;
951  unsigned char spdInfo [1024];
953 
954 typedef struct
955 {
956  intptr_t handle;
957  int frfmode;
958 } dsFRFParam_t;
959 
960 typedef struct
961 {
962  intptr_t handle;
963  char framerate[20];
965 
966 typedef struct _dsEdidVersionParam_t
967 {
968  dsError_t result;
969  int iHdmiPort;
970  int iEdidVersion;
972 
974  dsError_t result;
975  int portId;
977 
978 typedef struct _dsAllmStatusParam_t
979 {
980  dsError_t result;
981  int iHdmiPort;
982  bool allmStatus;
984 
986 {
987  dsError_t result;
988  dsSupportedGameFeatureList_t featureList;
990 
991 #ifdef __cplusplus
992 }
993 #endif
994 
995 #endif /* RPDS_H_ */
996 
997 
998 /** @} */
999 /** @} */
_dsDisplayGetAspectRatioParam_t
Definition: dsRpc.h:597
_dsGrpahicEqualizerModeParam_t
Definition: dsRpc.h:458
_dsDRCModeParam_t
Definition: dsRpc.h:443
_dsSurroundDecoderParam_t
Definition: dsRpc.h:438
_dsVideoPortIsActiveParam_t
Definition: dsRpc.h:516
_dsFPDColorParam
Definition: dsRpc.h:668
_dsAudioARCStatus_t
Structure that defines ARC status for the HDMI ARC/EARC port.
Definition: dsTypes.h:307
_dsAudioSetLevelParam_t
Definition: dsRpc.h:346
_dsAudioSADList_t
Definition: dsTypes.h:299
_dsSupportedGameFeatureListParam_t
Definition: dsRpc.h:985
_dsAssociatedAudioMixingParam_t
Definition: dsRpc.h:463
_dsVideoPortGetSurroundModeParam_t
Definition: dsRpc.h:547
_dsSetDolbyVolumeParam_t
Definition: dsRpc.h:418
_dsAudioSetStereoAutoParam_t
Definition: dsRpc.h:330
_dsAudioCompressionParam_t
Definition: dsRpc.h:408
_dsVideoPortIsDisplaySurroundParam_t
Definition: dsRpc.h:542
_dsAudioEnableARCParam_t
Definition: dsRpc.h:318
_dsBassEnhancerParam_t
Definition: dsRpc.h:433
_dsCurrentOutputSettings_t
Definition: dsRpc.h:922
_dsMS12SetttingsOverrideParam_t
Definition: dsRpc.h:490
_dsMgrStandbyVideoStateParam_t
Definition: dsRpc.h:280
_dsAudioSetStereoModeParam_t
Definition: dsRpc.h:323
_dsCompositeInScaleVideoParam_t
Definition: dsRpc.h:767
dsVideoAspectRatio_t
enum _dsVideoAspectRatio_t dsVideoAspectRatio_t
_dsVolumeLevellerParam_t
Definition: dsRpc.h:428
_dsDisplayGetEDIDParam_t
Definition: dsRpc.h:602
_dsGetHDMISPDInfoParam_t
Definition: dsRpc.h:947
_dsGetAudioDelayParam_t
Definition: dsRpc.h:383
_dsGetSupportedARCTypesParam_t
Definition: dsRpc.h:308
_dsVolumeLeveller_t
Definition: dsTypes.h:352
_dsVideoPortGetHandleParam_t
Definition: dsRpc.h:503
dsAudioDuckingType_t
enum _dsAudioDuckingType_t dsAudioDuckingType_t
_dsSupportedGameFeatureList_t
Definition: dsTypes.h:1141
dsSleepMode_t
enum _dsSleepMode_t dsSleepMode_t
dsGetVideoCodecInfoParam_t
Definition: dsRpc.h:822
dsGetSupportedVideoCodingFormatsParam_t
Definition: dsRpc.h:815
dsAudioPortType_t
enum _dsAudioPortType_t dsAudioPortType_t
_dsMgrAVPortStateParam_t
Definition: dsRpc.h:292
dsTypes.h
Device Settings HAL types.
_dsAllmStatusParam_t
Definition: dsRpc.h:978
dsFPDTimeFormat_t
enum __dsFPDTimeFormat_t dsFPDTimeFormat_t
_dsIntelligentEqualizerModeParam_t
Definition: dsRpc.h:423
_dsVideoPortSetResolutionParam_t
Definition: dsRpc.h:560
dsFPDBrightness_t
uint32_t dsFPDBrightness_t
Definition: dsTypes.h:862
_dsVideoDeviceGetHandleParam_t
Definition: dsRpc.h:581
_dsMgrLEDStatusParam_t
Definition: dsRpc.h:297
dsColorDepthCapabilitiesParam_t
Definition: dsRpc.h:568
_dsAudioGetMS12Param_t
Definition: dsRpc.h:378
_dsGetLEConfigParam_t
Definition: dsRpc.h:869
_dsMatrixCoefficients_t
Definition: dsRpc.h:898
dsVideoPortType_t
enum _dsVideoPortType_t dsVideoPortType_t
_dsSetHdmiPreferenceParam_t
Definition: dsRpc.h:857
_dsSetAudioDelayParam_t
Definition: dsRpc.h:398
HDCP_KEY_MAX_SIZE
#define HDCP_KEY_MAX_SIZE
Definition: mfrMgr.h:114
_dsHdmiInSelectPortParam_t
Definition: dsRpc.h:724
dsMS12FEATURE_t
enum _dsMS12FEATURE_t dsMS12FEATURE_t
_dsCPUThermalParam
Definition: dsRpc.h:694
dsError.h
Device Settings HAL error codes.
_dsEdidVersionParam_t
Definition: dsRpc.h:966
dsPreferredColorDepthParam_t
Definition: dsRpc.h:574
_dsVideoPortGetResolutionParam_t
Definition: dsRpc.h:553
_dsVideoPortEnabledParam_t
Definition: dsRpc.h:509
_dsAudioGetHandleParam_t
Definition: dsRpc.h:302
_dsGetHdmiPreferenceParam_t
Definition: dsRpc.h:863
_dsColorSpace_t
Definition: dsRpc.h:910
_dsDialogEnhancementParam_t
Definition: dsRpc.h:413
_dsGetVideoFormatsParam_t
Definition: dsRpc.h:781
_dsSurroundVirtualizer_t
Definition: dsTypes.h:360
_dsHdmiInGetResolutionParam_t
Definition: dsRpc.h:742
dsFPDTextDisplay_t
enum __dsFPDTextDisplay_t dsFPDTextDisplay_t
_dsEdidIgnoreParam_t
Definition: dsRpc.h:341
_dsMISteeringParam_t
Definition: dsRpc.h:453
_dsAudioSetDuckingParam_t
Definition: dsRpc.h:351
dsVideoBackgroundColor_t
enum _dsVideoBackgroundColor_t dsVideoBackgroundColor_t
dsFPDState_t
enum __dsFPDState_t dsFPDState_t
_dsDisplayGetEDIDBytesParam_t
Definition: dsRpc.h:613
_dsFPDScrollParam
Definition: dsRpc.h:633
_dsCompositeInGetNumberOfInputsParam_t
Definition: dsRpc.h:749
_dsVideoPortIsDisplayConnectedParam_t
Definition: dsRpc.h:537
_dsAudioGetEncodingModeParam_t
Definition: dsRpc.h:368
_dsVideoDeviceSetDFCParam_t
Definition: dsRpc.h:586
_dsCompositeInStatus_t
Definition: dsTypes.h:1076
_dsIsOutputHDRParam_t
Definition: dsRpc.h:851
_dsFPDStateParam
Definition: dsRpc.h:662
_dsFaderControlParam_t
Definition: dsRpc.h:468
_dsAudioSetAtmosOutputModeParam_t
Definition: dsRpc.h:388
_dsEnableHDCPParam
Definition: dsRpc.h:680
_dsHdmiInGetStatusParam_t
Definition: dsRpc.h:718
_dsFPDModeParam
Definition: dsRpc.h:675
dsAudioStereoMode_t
enum StereoMode dsAudioStereoMode_t
dsFRFParam_t
Definition: dsRpc.h:954
dsVideoZoom_t
enum _dsVideoZoom_t dsVideoZoom_t
_dsHdmiInStatus_t
Definition: dsTypes.h:1029
_dsMgrRebootConfigParam_t
Definition: dsRpc.h:286
_dsEot_t
Definition: dsRpc.h:892
_dsMS12AudioProfileParam_t
Definition: dsRpc.h:485
_dsGetHDRCapabilitiesParam_t
Definition: dsRpc.h:774
_dsAudioGainParam_t
Definition: dsRpc.h:358
_dsDisplayEDID_t
Defines the structure that is used to get the EDID information of the video display.
Definition: dsTypes.h:901
dsForceDisableHDRParam_t
Definition: dsRpc.h:830
_dsGetEDIDBytesInfoParam_t
Definition: dsRpc.h:939
_dsSurroundVirtualizerParam_t
Definition: dsRpc.h:448
dsForceDisable4KParam_t
Definition: dsRpc.h:844
_dsPreferredSleepMode
Definition: dsRpc.h:689
dsHDRStandard_t
enum _dsHDRStandard_t dsHDRStandard_t
_dsVideoPortResolution_t
Structure that defines video port resolution settings of output video device.
Definition: dsTypes.h:642
_dsHdmiInScaleVideoParam_t
Definition: dsRpc.h:730
_dsHdmiInSelectZoomModeParam_t
Definition: dsRpc.h:736
_dsColorDepth_t
Definition: dsRpc.h:904
_dsSupportedResolutionParam_t
Definition: dsRpc.h:607
_dsFPDTimeFormatParam
Definition: dsRpc.h:628
_dsAudioSetSADParam_t
Definition: dsRpc.h:313
_dsDisplayGetHandleParam_t
Definition: dsRpc.h:591
_dsQuantizationRange_t
Definition: dsRpc.h:916
_dsSetBackgroundColorParam_t
Definition: dsRpc.h:532
_dsVideoRect
Definition: dsRpc.h:704
_dsFPDTextBrightParam
Definition: dsRpc.h:655
_dsLEConfigParam_t
Definition: dsRpc.h:809
_dsHdmiInGetNumberOfInputsParam_t
Definition: dsRpc.h:712
dsFPDMode_t
enum __dsFPDMode_t dsFPDMode_t
dsVideoCodecInfo_t
Definition: dsTypes.h:1111
videoRect
To store video rectangle properties.
Definition: priv_aamp.h:530
_dsVideoPortGetHDCPStatus_t
Definition: dsRpc.h:522
dsForceHDRModeParam_t
Definition: dsRpc.h:837
_dsSecondaryLanguageParam_t
Definition: dsRpc.h:478
_dsFPDTimeParam
Definition: dsRpc.h:620
_dsVesrionParam
Definition: dsRpc.h:699
_dsAudioOutIsConnectedParam_t
Definition: dsRpc.h:932
_dsAudioFormatParam_t
Definition: dsRpc.h:363
_dsGetMS12CapabilitiesParam_t
Definition: dsRpc.h:795
dsFramerateParam_t
Definition: dsRpc.h:960
_dsPrimaryLanguageParam_t
Definition: dsRpc.h:473
_dsCompositeInGetStatusParam_t
Definition: dsRpc.h:755
_dsCompositeInSelectPortParam_t
Definition: dsRpc.h:761
dsAudioFormat_t
enum _dsAudioFormat_t dsAudioFormat_t
_dsVideoPortGetHDCPProtocolVersion_t
Definition: dsRpc.h:527
_dsGetAudioCapabilitiesParam_t
Definition: dsRpc.h:788
_dsFPDBrightParam
Definition: dsRpc.h:647
_dsScartParamParam_t
Definition: dsRpc.h:885
_dsGetHDMIARCPortIdParam_t
Definition: dsRpc.h:973
dsAudioDuckingAction_t
enum _dsAudioDuckingAction_t dsAudioDuckingAction_t
_dsAudioSetMutedParam_t
Definition: dsRpc.h:336
dsError_t
dsError_t
Device Settings API Error return codes.
Definition: dsError.h:84
_dsMS12AudioProfileList_t
Definition: dsTypes.h:334
_dsMS12AudioProfileListParam_t
Definition: dsRpc.h:498
_dsAudioDelayOffsetParam_t
Definition: dsRpc.h:403
_dsGetSocIDFromSDKParam_t
Definition: dsRpc.h:877
_dsAudioGetMS11Param_t
Definition: dsRpc.h:373
_dsGetAudioAtmosCapabilityParam_t
Definition: dsRpc.h:393
_dsMS12ConfigParam_t
Definition: dsRpc.h:802
dsAudioEncoding_t
enum _dsAudioEncoding_t dsAudioEncoding_t