Skip to content

Commit

Permalink
Merge pull request rdkcentral#2112 from YNM03/sprint/2201
Browse files Browse the repository at this point in the history
RDKTV-13711 User has to reboot the TV/Soundbar to hear the audio from…
  • Loading branch information
anand-ky authored Jan 13, 2022
2 parents 452069e + ae6fca9 commit 216bdc0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions DisplaySettings/DisplaySettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,12 +755,17 @@ namespace WPEFramework {
}
else if(types & dsAUDIOARCSUPPORT_ARC) {
{
//No need to check the ARC routing state. Request ARC initiation irrespective of state
if (isCecEnabled == true)
{
//No need to check the ARC routing state. Request ARC initiation irrespective of state
LOGINFO("%s: Send ARC initiation request... \n", __FUNCTION__);
std::lock_guard<std::mutex> lock(DisplaySettings::_instance->m_arcRoutingStateMutex);
DisplaySettings::_instance->m_currentArcRoutingState = ARC_STATE_REQUEST_ARC_INITIATION;
DisplaySettings::_instance->m_cecArcRoutingThreadRun = true;
DisplaySettings::_instance->arcRoutingCV.notify_one();
}else {
LOGINFO("%s: cec is disabled, ARC initiation not possible \n", __FUNCTION__);
}
}
}
else {
Expand Down Expand Up @@ -802,13 +807,17 @@ namespace WPEFramework {
else if (types & dsAUDIOARCSUPPORT_ARC) {
//Dummy ARC intiation request
{
if (isCecEnabled == true)
{
//No need to check the ARC routing state. Request ARC initiation irrespective of state
LOGINFO("%s: Send dummy ARC initiation request... \n", __FUNCTION__);
LOGINFO("%s: cecEnabled is true, Send dummy ARC initiation request... \n", __FUNCTION__);
std::lock_guard<std::mutex> lock(DisplaySettings::_instance->m_arcRoutingStateMutex);
DisplaySettings::_instance->m_currentArcRoutingState = ARC_STATE_REQUEST_ARC_INITIATION;
DisplaySettings::_instance->m_cecArcRoutingThreadRun = true;
DisplaySettings::_instance->arcRoutingCV.notify_one();

}else {
LOGINFO("%s: cec is disabled, ARC initiation not possible \n", __FUNCTION__);
}
}
}
else {
Expand Down

0 comments on commit 216bdc0

Please sign in to comment.