Skip to content

Commit deffc51

Browse files
authored
Merge pull request #198 from rdkcentral/feature/RDKTV-37015
RDKEMW-6325: platfromSupport is missing from dimmingMode capabilities
2 parents 024be52 + 7b417c6 commit deffc51

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

AVOutput/AVOutputTV.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,6 +2016,10 @@ namespace Plugin {
20162016
returnResponse(false);
20172017
}
20182018

2019+
if (isPlatformSupport("DimmingMode") != 0) {
2020+
returnResponse(false);
2021+
}
2022+
20192023
if (getParamIndex("DimmingMode",inputInfo,indexInfo) == -1) {
20202024
LOGERR("%s: getParamIndex failed to get \n", __FUNCTION__);
20212025
returnResponse(false);
@@ -2072,6 +2076,10 @@ namespace Plugin {
20722076
returnResponse(false);
20732077
}
20742078

2079+
if (isPlatformSupport("DimmingMode") != 0) {
2080+
returnResponse(false);
2081+
}
2082+
20752083
if( !isCapablityCheckPassed( "DimmingMode" , inputInfo )) {
20762084
LOGERR("%s: CapablityCheck failed for DimmingMode\n", __FUNCTION__);
20772085
returnResponse(false);
@@ -2118,6 +2126,10 @@ namespace Plugin {
21182126
returnResponse(false);
21192127
}
21202128

2129+
if (isPlatformSupport("DimmingMode") != 0) {
2130+
returnResponse(false);
2131+
}
2132+
21212133
int retval= updateAVoutputTVParam("reset","DimmingMode", inputInfo,PQ_PARAM_DIMMINGMODE,dMode);
21222134

21232135
if(retval != 0 ) {
@@ -2171,6 +2183,8 @@ namespace Plugin {
21712183
returnResponse(false);
21722184
}
21732185
else {
2186+
response["platformSupport"] = (info.isPlatformSupportVector[0].compare("true") == 0) ? true : false;
2187+
21742188
for (index = 0; index < info.rangeVector.size(); index++) {
21752189
supportedDimmingModeArray.Add(info.rangeVector[index]);
21762190
}

AVOutput/AVOutputTVHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2302,7 +2302,7 @@ namespace Plugin {
23022302

23032303
}
23042304

2305-
if ((param == "DolbyVisionMode") || (param == "Backlight") || (param == "CMS") || (param == "CustomWhiteBalance") || (param == "HDRMode") || (param == "BacklightControl")) {
2305+
if ((param == "DolbyVisionMode") || (param == "Backlight") || (param == "CMS") || (param == "CustomWhiteBalance") || (param == "HDRMode") || (param == "BacklightControl") || (param == "DimmingMode")) {
23062306
configString = param + ".platformsupport";
23072307
info.isPlatformSupport = inFile.Get<std::string>(configString);
23082308
printf(" platformsupport : %s\n",info.isPlatformSupport.c_str() );

0 commit comments

Comments
 (0)