Skip to content

Commit

Permalink
RDKTV-32644: Remove ODM specific apis from tvsettings HAL to make it …
Browse files Browse the repository at this point in the history
…generic- phase1
  • Loading branch information
arjunbinusky committed Oct 28, 2024
1 parent 358e55f commit 5460911
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion AVOutput/AVOutputTV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2293,8 +2293,9 @@ namespace Plugin {
return tvERROR_GENERAL;
}

// Point the first element of dvModesArray to dvModes
// Point the first element of dvModesArray to dolbyModes and set the indicator
dvModesArray[0] = dvModes;
dvModesArray[0][0] = tvDolbyMode_Dark; // Set an initial value to indicate the mode type
tvError_t ret = GetTVSupportedDolbyVisionModes(dvModesArray, &totalAvailable);
if(ret != tvERROR_NONE) {
if (dvModes != NULL) {
Expand Down
7 changes: 4 additions & 3 deletions AVOutput/AVOutputTVHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,10 @@ namespace Plugin {
return tvERROR_GENERAL;
}

// Point the first element of dolbyModesArray to dolbyModes
dolbyModesArray[0] = dolbyModes;
tvError_t ret = GetTVSupportedDolbyVisionModes(dolbyModesArray, &totalAvailable);
// Point the first element of dolbyModesArray to dolbyModes and set the indicator
dolbyModesArray[0] = dolbyModes;
dolbyModesArray[0][0] = tvDolbyMode_Dark; // Set an initial value to indicate the mode type
tvError_t ret = GetTVSupportedDolbyVisionModes(dolbyModesArray, &totalAvailable);
if(ret == tvERROR_NONE) {
for(int count = 0;count <totalAvailable;count++ ) {
if(strncasecmp(dolbyMode, getDolbyModeStringFromEnum(dolbyModes[count]).c_str(), strlen(dolbyMode))==0) {
Expand Down

0 comments on commit 5460911

Please sign in to comment.