-
Notifications
You must be signed in to change notification settings - Fork 4
RDKEMW-3526 - VRR support Devicesettings #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -463,6 +463,72 @@ dsError_t dsGetEdid2AllmSupport (dsHdmiInPort_t iHdmiPort, bool *allm_support) | |
| return dsERR_GENERAL; | ||
| } | ||
|
|
||
| dsError_t dsHdmiInSetVRRSupport (dsHdmiInPort_t iHdmiPort, bool vrr_support) | ||
| { | ||
| _DEBUG_ENTER(); | ||
|
|
||
| dsVRRSupportParam_t param; | ||
| IARM_Result_t rpcRet = IARM_RESULT_SUCCESS; | ||
| param.iHdmiPort = iHdmiPort; | ||
| param.vrrSupport = vrr_support; | ||
| rpcRet = IARM_Bus_Call (IARM_BUS_DSMGR_NAME, | ||
| (char *)IARM_BUS_DSMGR_API_dsSetVRRSupport, | ||
| (void *)¶m, | ||
| sizeof(param)); | ||
|
|
||
| printf("[cli]: dsSetVRRSupport port :%d, vrrsupport :%d\n",param.iHdmiPort,param.vrrSupport); | ||
|
||
| if (IARM_RESULT_SUCCESS == rpcRet) | ||
| { | ||
| printf ("[cli] %s: dsSetVRRSupport eRet: %d \r\n", __FUNCTION__, param.result); | ||
| return param.result; | ||
| } | ||
| printf("%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__); | ||
| return dsERR_GENERAL; | ||
| } | ||
|
|
||
| dsError_t dsHdmiInGetVRRSupport (dsHdmiInPort_t iHdmiPort, bool *vrr_support) | ||
| { | ||
| _DEBUG_ENTER(); | ||
|
|
||
| dsVRRSupportParam_t param; | ||
| IARM_Result_t rpcRet = IARM_RESULT_SUCCESS; | ||
| param.iHdmiPort = iHdmiPort; | ||
| rpcRet = IARM_Bus_Call (IARM_BUS_DSMGR_NAME, | ||
| (char *)IARM_BUS_DSMGR_API_dsGetVRRSupport, | ||
| (void *)¶m, | ||
| sizeof(param)); | ||
|
|
||
| if (IARM_RESULT_SUCCESS == rpcRet) | ||
| { | ||
| *vrr_support = param.vrrSupport; | ||
| printf ("[cli] %s: dsGetVRRSupport: %d \r\n", __FUNCTION__, param.vrrSupport); | ||
| return param.result; | ||
| } | ||
| printf("%s:%d - dsERR_GENERAL\n", __PRETTY_FUNCTION__,__LINE__); | ||
| return dsERR_GENERAL; | ||
| } | ||
|
|
||
| dsError_t dsHdmiInGetVRRStatus (dsHdmiInPort_t iHdmiPort, dsVRRType_t *vrrStatus) | ||
| { | ||
| _DEBUG_ENTER(); | ||
| dsVRRStatusParam_t param; | ||
| IARM_Result_t rpcRet = IARM_RESULT_SUCCESS; | ||
| param.iHdmiPort = iHdmiPort; | ||
| rpcRet = IARM_Bus_Call (IARM_BUS_DSMGR_NAME, | ||
| (char *)IARM_BUS_DSMGR_API_dsGetVRRStatus, | ||
| (void *)¶m, | ||
| sizeof(param)); | ||
|
|
||
| if (IARM_RESULT_SUCCESS == rpcRet) | ||
| { | ||
| *vrrStatus = param.vrrStatus; | ||
| printf ("[cli] %s: dsGetVRRStatus VRR Status: %d \r\n", __FUNCTION__, param.vrrStatus); | ||
| return param.result; | ||
| } | ||
| printf("%s:%d - dsERR_GENERAL\n", __FUNCTION__,__LINE__); | ||
| return dsERR_GENERAL; | ||
| } | ||
|
|
||
| dsError_t dsGetHdmiVersion (dsHdmiInPort_t iHdmiPort, dsHdmiMaxCapabilityVersion_t *capversion) | ||
| { | ||
| _DEBUG_ENTER(); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| /* | ||
| * If not stated otherwise in this file or this component's LICENSE file the | ||
| * following copyright and licenses apply: | ||
|
Check failure on line 3 in rpc/include/dsMgr.h
|
||
| * | ||
| * Copyright 2016 RDK Management | ||
| * | ||
|
|
@@ -57,6 +57,7 @@ | |
| IARM_BUS_DSMGR_EVENT_HDMI_IN_STATUS, /*!< HDMI IN status change event */ | ||
| IARM_BUS_DSMGR_EVENT_HDMI_IN_VIDEO_MODE_UPDATE, /*!< HDMI IN video mode update event */ | ||
| IARM_BUS_DSMGR_EVENT_HDMI_IN_ALLM_STATUS, /*!< HDMI IN ALLM mode update event */ | ||
| IARM_BUS_DSMGR_EVENT_HDMI_IN_VRR_STATUS, /*!< HDMI IN VRR mode update event */ | ||
| IARM_BUS_DSMGR_EVENT_COMPOSITE_IN_HOTPLUG, /*!< COMPOSITE IN HPD change event */ | ||
| IARM_BUS_DSMGR_EVENT_COMPOSITE_IN_SIGNAL_STATUS, /*!< COMPOSITE IN signal status change event */ | ||
| IARM_BUS_DSMGR_EVENT_COMPOSITE_IN_STATUS, /*!< COMPOSITE IN status change event */ | ||
|
|
@@ -86,7 +87,7 @@ | |
| dsAUDIOPORT_STATE_MAX | ||
| } dsAudioPortState_t; | ||
|
|
||
| /*! DS Manager Event Data */ | ||
|
Check failure on line 90 in rpc/include/dsMgr.h
|
||
| typedef struct _DSMgr_EventData_t { | ||
| union { | ||
| struct _RESOLUTION_DATA{ | ||
|
|
@@ -230,6 +231,12 @@ | |
| bool allm_mode; | ||
| }hdmi_in_allm_mode; /*HDMI in ALLM Mode change*/ | ||
|
|
||
| struct _HDMI_IN_VRR_MODE_DATA{ | ||
| /* Declare HDMI In VRR Mode*/ | ||
| dsHdmiInPort_t port; | ||
| dsVRRType_t vrr_type; | ||
| }hdmi_in_vrr_mode; /*HDMI in VRR Mode change*/ | ||
|
|
||
| struct _HDMI_IN_CONTENT_TYPE_DATA{ | ||
| /* Declare HDMI In ALLM Mode*/ | ||
| dsHdmiInPort_t port; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We dont need two print in same function