Skip to content

Commit 114118f

Browse files
tamilselvanakababu250
authored andcommitted
Fix HAL test suite L1 failing
Reason for change: Set Picturemode camel case Signed-off-by: Tamilselvan <[email protected]>
1 parent 91e402c commit 114118f

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

AVOutput/AVOutputTV.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2716,11 +2716,9 @@ namespace Plugin {
27162716
returnResponse(false);
27172717
}
27182718

2719-
std::string local = value;
2720-
transform(local.begin(), local.end(), local.begin(), ::tolower);
27212719
if( isSetRequired("Current",source,format) ) {
27222720
LOGINFO("Proceed with SetTVPictureMode\n");
2723-
ret = SetTVPictureMode(local.c_str());
2721+
ret = SetTVPictureMode(value.c_str());
27242722
}
27252723
if(ret != tvERROR_NONE) {
27262724
returnResponse(false);
@@ -2832,13 +2830,9 @@ namespace Plugin {
28322830
current_format = VIDEO_FORMAT_SDR;
28332831
}
28342832

2835-
//as hal using lower across converting to lower
2836-
std::string setparam = param.value;
2837-
transform(setparam.begin(), setparam.end(), setparam.begin(), ::tolower);
2838-
28392833
if (current_source == sourceType && current_format == formatType) {
28402834

2841-
tvError_t ret = SetTVPictureMode(setparam.c_str());
2835+
tvError_t ret = SetTVPictureMode(param.value);
28422836
if(ret != tvERROR_NONE) {
28432837
LOGWARN("Picture Mode set failed: %s\n",getErrorString(ret).c_str());
28442838
returnResponse(false);

AVOutput/AVOutputTVHelper.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,7 @@ namespace Plugin {
678678
tr181_param_name += "."+convertSourceIndexToString(current_source)+"."+"Format."+convertVideoFormatToString(current_format)+"."+"PictureModeString";
679679
tr181ErrorCode_t err = getLocalParam(rfc_caller_id, tr181_param_name.c_str(), &param);
680680
if ( tr181Success == err ) {
681-
std::string local = param.value;
682-
transform(local.begin(), local.end(), local.begin(), ::tolower);
683-
ret = SetTVPictureMode(local.c_str());
681+
ret = SetTVPictureMode(param.value);
684682

685683
if(ret != tvERROR_NONE) {
686684
LOGWARN("Picture Mode set failed: %s\n",getErrorString(ret).c_str());

0 commit comments

Comments
 (0)