Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions HdmiCecSink/HdmiCecSink.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**

Check failure on line 1 in HdmiCecSink/HdmiCecSink.cpp

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'HdmiCecSink/HdmiCecSink.cpp' (Match: rdkcentral/rdkservices/866, 3531 lines, url: https://github.com/rdkcentral/rdkservices/archive/AML_BSP_VERSION_866.tar.gz, file: HdmiCecSink/HdmiCecSink.cpp)

Check failure on line 1 in HdmiCecSink/HdmiCecSink.cpp

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'HdmiCecSink/HdmiCecSink.cpp' (Match: rdkcentral/rdkservices/1, 3568 lines, url: https://github.com/rdkcentral/rdkservices/archive/GRT_v1.tar.gz, file: HdmiCecSink/HdmiCecSink.cpp)
* If not stated otherwise in this file or this component's LICENSE
* file the following copyright and licenses apply:
*
Expand Down Expand Up @@ -3531,15 +3531,25 @@
{
int err;
dsGetHDMIARCPortIdParam_t param;
err = IARM_Bus_Call(IARM_BUS_DSMGR_NAME,
(char *)IARM_BUS_DSMGR_API_dsGetHDMIARCPortId,
(void *)&param,
sizeof(param));
if (IARM_RESULT_SUCCESS == err)
{
LOGINFO("HDMI ARC port ID HdmiArcPortID=[%d] \n", param.portId);
HdmiArcPortID = param.portId;
}
unsigned int retryCount = 1;
do {
usleep(50000); // Sleep for 50ms before retrying
param.portId = -1; // Initialize to an invalid port ID
err = IARM_Bus_Call(IARM_BUS_DSMGR_NAME,
(char *)IARM_BUS_DSMGR_API_dsGetHDMIARCPortId,
(void *)&param,
sizeof(param));
if (IARM_RESULT_SUCCESS == err)
{
LOGINFO("HDMI ARC port ID HdmiArcPortID[%d] on retry count[%d]", param.portId, retryCount);
HdmiArcPortID = param.portId;
break;
}
else
{
LOGWARN("IARM_Bus_Call failed with error[%d], retry count[%d]", err, retryCount);
}
} while(retryCount++ <= 6);
}

void HdmiCecSink::getCecVersion()
Expand Down
Loading