52 #include "dsclientlogger.h"
60 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
63 (
char *)IARM_BUS_DSMGR_API_dsHdmiInInit,
67 if (IARM_RESULT_SUCCESS == rpcRet)
69 printf(
"%s:%d - dsERR_NONE\n", __PRETTY_FUNCTION__,__LINE__);
73 printf(
"%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__);
82 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
84 (
char *)IARM_BUS_DSMGR_API_dsHdmiInTerm,
88 if (IARM_RESULT_SUCCESS == rpcRet)
90 printf(
"%s:%d - dsERR_NONE\n", __PRETTY_FUNCTION__,__LINE__);
94 printf(
"%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__);
105 param.numHdmiInputs = 0;
107 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
110 (
char *)IARM_BUS_DSMGR_API_dsHdmiInGetNumberOfInputs,
114 if (IARM_RESULT_SUCCESS == rpcRet)
116 *pNumHdmiInputs = param.numHdmiInputs;
117 printf(
"%s:%d - %d\n", __PRETTY_FUNCTION__,__LINE__, param.result);
121 printf(
"%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__);
132 memset (¶m, 0,
sizeof(param));
134 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
137 (
char *)IARM_BUS_DSMGR_API_dsHdmiInGetStatus,
141 if (IARM_RESULT_SUCCESS == rpcRet)
143 *pStatus = param.status;
144 printf(
"%s:%d - %d\n", __PRETTY_FUNCTION__,__LINE__, param.result);
148 printf(
"%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__);
159 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
162 (
char *)IARM_BUS_DSMGR_API_dsHdmiInSelectPort,
166 if (IARM_RESULT_SUCCESS == rpcRet)
168 printf(
"%s:%d - %d\n", __PRETTY_FUNCTION__,__LINE__, param.result);
172 printf(
"%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__);
181 param.videoRect.x = x;
182 param.videoRect.y = y;
183 param.videoRect.width = width;
184 param.videoRect.height = height;
185 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
188 (
char *)IARM_BUS_DSMGR_API_dsHdmiInScaleVideo,
192 if (IARM_RESULT_SUCCESS == rpcRet)
194 printf(
"%s:%d - %d\n", __PRETTY_FUNCTION__,__LINE__, param.result);
198 printf(
"%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__);
207 param.zoomMode = requestedZoomMode;
208 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
211 (
char *)IARM_BUS_DSMGR_API_dsHdmiInSelectZoomMode,
215 if (IARM_RESULT_SUCCESS == rpcRet)
217 printf(
"%s:%d - %d\n", __PRETTY_FUNCTION__,__LINE__, param.result);
221 printf(
"%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__);
230 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
233 (
char *)IARM_BUS_DSMGR_API_dsHdmiInPauseAudio,
237 if (IARM_RESULT_SUCCESS == rpcRet)
239 printf(
"%s:%d - %d\n", __PRETTY_FUNCTION__,__LINE__, param);
243 printf(
"%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__);
252 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
255 (
char *)IARM_BUS_DSMGR_API_dsHdmiInResumeAudio,
259 if (IARM_RESULT_SUCCESS == rpcRet)
261 printf(
"%s:%d - %d\n", __PRETTY_FUNCTION__,__LINE__, param);
265 printf(
"%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__);
276 param.resolution = *resolution;
278 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
281 (
char *)IARM_BUS_DSMGR_API_dsHdmiInGetCurrentVideoMode,
285 if (IARM_RESULT_SUCCESS == rpcRet)
287 *resolution = param.resolution;
288 printf(
"%s:%d - %d\n", __PRETTY_FUNCTION__,__LINE__, param.result);
292 printf(
"%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__);
296 dsError_t dsGetEDIDBytesInfo (
int iHdmiPort,
unsigned char **edid,
int *length)
304 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
305 param.iHdmiPort = iHdmiPort;
307 (
char *)IARM_BUS_DSMGR_API_dsGetEDIDBytesInfo,
311 if (IARM_RESULT_SUCCESS == rpcRet)
313 *length = param.length;
315 printf(
"[cli] %s: dsGetEDIDBytesInfo eRet: %d data len: %d \r\n", __FUNCTION__, param.result, *length);
318 printf(
"%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__);
322 dsError_t dsGetHDMISPDInfo (
int iHdmiPort,
unsigned char **spdInfo)
326 printf(
"[cli] %s: dsGetHDMISPDInfo \r\n", __FUNCTION__);
330 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
331 param.iHdmiPort = iHdmiPort;
333 (
char *)IARM_BUS_DSMGR_API_dsGetHDMISPDInfo,
337 if (IARM_RESULT_SUCCESS == rpcRet)
339 *spdInfo = param.spdInfo;
340 printf(
"[cli] %s: dsGetHDMISPDInfo eRet: %d \r\n", __FUNCTION__, param.result);
343 printf(
"%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__);
347 dsError_t dsSetEdidVersion (
int iHdmiPort,
int iEdidVersion)
352 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
353 param.iHdmiPort = iHdmiPort;
354 param.iEdidVersion = iEdidVersion;
356 (
char *)IARM_BUS_DSMGR_API_dsSetEdidVersion,
360 if (IARM_RESULT_SUCCESS == rpcRet)
362 printf (
"[cli] %s: dsSetEdidVersion eRet: %d \r\n", __FUNCTION__, param.result);
365 printf(
"%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__);
369 dsError_t dsGetEdidVersion (
int iHdmiPort,
int *iEdidVersion)
374 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
375 param.iHdmiPort = iHdmiPort;
377 (
char *)IARM_BUS_DSMGR_API_dsGetEdidVersion,
381 if (IARM_RESULT_SUCCESS == rpcRet)
383 *iEdidVersion = param.iEdidVersion;
384 printf (
"[cli] %s: dsGetEdidVersion EdidVersion: %d \r\n", __FUNCTION__, param.iEdidVersion);
387 printf(
"%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__);
391 dsError_t dsGetAllmStatus (
int iHdmiPort,
bool *allmStatus)
396 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
397 param.iHdmiPort = iHdmiPort;
399 (
char *)IARM_BUS_DSMGR_API_dsGetAllmStatus,
403 if (IARM_RESULT_SUCCESS == rpcRet)
405 *allmStatus = param.allmStatus;
406 printf (
"[cli] %s: dsGetAllmStatus ALLM Status: %d \r\n", __FUNCTION__, param.allmStatus);
409 printf(
"%s:%d - dsERR_GENERAL\n", __FUNCTION__,__LINE__);
418 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
420 (
char *)IARM_BUS_DSMGR_API_dsGetSupportedGameFeaturesList,
424 if (IARM_RESULT_SUCCESS == rpcRet)
426 feature->gameFeatureCount = param.featureList.gameFeatureCount;
428 printf (
"[cli] %s: dsGetSupportedGameFeaturesList: %s count:%d \r\n",
429 __FUNCTION__, param.featureList.gameFeatureList, param.featureList.gameFeatureCount);
432 printf(
"%s:%d - dsERR_GENERAL\n", __FUNCTION__,__LINE__);