From be1957420976b11c26bb0d4cf25f9a53f2f3dc11 Mon Sep 17 00:00:00 2001 From: "neethu.arambilsunny@sky.uk" Date: Tue, 8 Apr 2025 07:14:11 +0100 Subject: [PATCH 1/4] dgd --- rpc/include/dsMgr.h | 1 + 1 file changed, 1 insertion(+) diff --git a/rpc/include/dsMgr.h b/rpc/include/dsMgr.h index 98ae9fb6..4e26492b 100755 --- a/rpc/include/dsMgr.h +++ b/rpc/include/dsMgr.h @@ -57,6 +57,7 @@ typedef enum _DSMgr_EventId_t { 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 */ From e189822d3393baf15638e6d19a85ba63ec2678ec Mon Sep 17 00:00:00 2001 From: apatel859 <48992974+apatel859@users.noreply.github.com> Date: Mon, 14 Apr 2025 09:50:41 -0400 Subject: [PATCH 2/4] RDKEMW-2279: get the required display and use that in dsRegisterDisplayEventCallback (#45) (#46) * RDKEMW-2279: get the required display and use that in dsRegisterDisplayEventCallback * RDKEMW-2279: pass the retrieved handle * RDKEMW-2279: fix the error, 'IARM_RESULT_FAILURE' was not declared in this scope Co-authored-by: Arun P Madhavan <54109113+arun-madhavan-013@users.noreply.github.com> --- rpc/srv/dsDisplay.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/rpc/srv/dsDisplay.c b/rpc/srv/dsDisplay.c index 714d0497..2168206d 100644 --- a/rpc/srv/dsDisplay.c +++ b/rpc/srv/dsDisplay.c @@ -101,10 +101,19 @@ IARM_Result_t _dsDisplayInit(void *arg) IARM_BUS_Lock(lock); if (!m_isInitialized) { + /* Register appropriate dsRegisterDisplayEventCallback here*/ + intptr_t handle = NULL; + dsError_t eReturn = dsGetDisplay(dsVIDEOPORT_TYPE_HDMI, 0, &handle); + if (dsERR_NONE != eReturn) { + INT_INFO("dsGetDisplay for dsVIDEOPORT_TYPE_HDMI failed; trying dsVIDEOPORT_TYPE_INTERNAL.\r\n"); + eReturn = dsGetDisplay(dsVIDEOPORT_TYPE_INTERNAL, 0, &handle); + if (dsERR_NONE != eReturn) { + INT_ERROR("dsGetDisplay for dsVIDEOPORT_TYPE_INTERNAL also failed.\r\n"); + return IARM_RESULT_INVALID_PARAM; + } + } + dsRegisterDisplayEventCallback(handle, _dsDisplayEventCallback); - /* Register appropriate dsRegisterDisplayEventCallback here*/ - dsRegisterDisplayEventCallback(NULL,_dsDisplayEventCallback); - IARM_Bus_RegisterCall(IARM_BUS_DSMGR_API_dsGetDisplay,_dsGetDisplay); IARM_Bus_RegisterCall(IARM_BUS_DSMGR_API_dsGetDisplayAspectRatio,_dsGetDisplayAspectRatio); IARM_Bus_RegisterCall(IARM_BUS_DSMGR_API_dsGetEDID,_dsGetEDID); From 409637aee6b5096c221f4fd6d3a4fe4ff09f85ac Mon Sep 17 00:00:00 2001 From: apatel859 <48992974+apatel859@users.noreply.github.com> Date: Mon, 14 Apr 2025 09:51:28 -0400 Subject: [PATCH 3/4] RDKEMW-2279: get the required display and use that in dsRegisterDisplayEventCallback (#45) (#47) * RDKEMW-2279: get the required display and use that in dsRegisterDisplayEventCallback * RDKEMW-2279: pass the retrieved handle * RDKEMW-2279: fix the error, 'IARM_RESULT_FAILURE' was not declared in this scope Co-authored-by: Arun P Madhavan <54109113+arun-madhavan-013@users.noreply.github.com> From 4dcdf63610cc516e6335af3c5b079b0efda904bb Mon Sep 17 00:00:00 2001 From: neethuas379 Date: Fri, 25 Apr 2025 13:10:26 +0530 Subject: [PATCH 4/4] Update dsMgr.h --- rpc/include/dsMgr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/include/dsMgr.h b/rpc/include/dsMgr.h index 4e26492b..9839c761 100755 --- a/rpc/include/dsMgr.h +++ b/rpc/include/dsMgr.h @@ -17,7 +17,7 @@ * limitations under the License. */ - +//test /** * @defgroup devicesettings