Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh #56 L1 and L2 changes for ODM API removal - Phase 1 #57

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

arjunbinu
Copy link
Contributor

@arjunbinu arjunbinu commented Nov 26, 2024

HAL Header PR
rdkcentral/rdkv-halif-tvsettings#47

Main Objective
The current activity focuses on removing soon-to-be deprecated ODM APIs and types from the TvSettings HAL headers, particularly those exposed to plugins and factory code.

APIs Removed
From include/tvSettingsExtODM.h:
int ReadCapabilitiesFromConfODM(...)
Defintion moved to the plugin.

From include/tvSettingsODM.h:
tvError_t GetSupportedVideoFormatsODM(unsigned int *videoFormats, unsigned short *numberOfFormats)
tvVideoHDRFormat_t GetCurrentVideoFormatODM(void)
tvError_t GetTVSupportedDimmingModesODM(char **dimmingModes, unsigned short *numDimmingModes)
Stubbed replacements are now present in tvSettings.h.
Conversion APIs like ConvertVideoFormatToHDRFormatODM and ConvertHDRFormatToContentFormatODM
Removed due to the deprecation of types like tvhdr_type_t and tvVideoHDRFormat_t.
int GetPanelIDODM(char *panelid)
Moved definition to the plugin. Further updates will encapsulate Panel ID retrieval in Phase 2.
tvError_t TvSyncCalibrationInfoODM()
Removed as the calibration data will now be handled differently.
tvError_t GetTVSupportedDolbyVisionModesODM(pic_modes_t *dvModes[],unsigned short *count)
tvError_t SetWakeupConfig(const tvWakeupSrcType_t src_type, const bool value);
tvError_t SetTVDolbyVisionModeODM(const char * dolbyMode);
int GetCMSDefault(tvComponentType_t component_type);

Note:
Additional function removals are included in preparation for Phase 2.

Modified APIs
In include/tvSettings.h:
tvError_t GetCurrentVideoSource(int *currentSource)
Updated to: tvError_t GetCurrentVideoSource(tvVideoSrcType_t *currentSource)
Rationale: To align with the expected type, ensuring consistency in API usage.

These changes are foundational for the overall API clean-up and ensure the TvSettings HAL interfaces are maintainable, and aligned with the upcoming architectural requirements.

@CLAassistant
Copy link

CLAassistant commented Nov 26, 2024

CLA assistant check
All committers have signed the CLA.

@arjunbinu arjunbinu self-assigned this Nov 26, 2024
@arjunbinu arjunbinu added the enhancement New feature or request label Nov 26, 2024
@arjunbinu arjunbinu force-pushed the feature/gh56_L1_L2_ODM_removal_phase1 branch 2 times, most recently from d9c25c2 to 25cc93e Compare November 26, 2024 09:13
Copy link
Contributor

@Anbukannadhasan Anbukannadhasan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added review comment

Copy link
Contributor

@Anbukannadhasan Anbukannadhasan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added review comments

Copy link
Contributor Author

@arjunbinu arjunbinu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am making the changes as per the review comment.

Copy link
Contributor

@Anbukannadhasan Anbukannadhasan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added review comments

src/test_l2_tvSettings.c Outdated Show resolved Hide resolved
@arjunbinu arjunbinu force-pushed the feature/gh56_L1_L2_ODM_removal_phase1 branch from 7af2e4d to d9f9e71 Compare November 28, 2024 10:56
@rdkcentral rdkcentral deleted a comment from arjunbinu Nov 28, 2024
@rdkcentral rdkcentral deleted a comment from arjunbinu Nov 28, 2024
Copy link
Contributor

@Anbukannadhasan Anbukannadhasan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

Copy link

@bhanucbp bhanucbp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ship it

Copy link
Contributor

@Anbukannadhasan Anbukannadhasan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@hari22yuva hari22yuva force-pushed the feature/gh56_L1_L2_ODM_removal_phase1 branch from 86b7bec to 92dd129 Compare December 2, 2024 12:10
@hari22yuva hari22yuva merged commit 60b69a0 into develop Dec 2, 2024
3 checks passed
@hari22yuva hari22yuva deleted the feature/gh56_L1_L2_ODM_removal_phase1 branch December 2, 2024 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Resolved
Development

Successfully merging this pull request may close these issues.

L1 and L2 - TvSettings test cases - Remove ODM specific APIs from tvsettings HAL - Phase 1
6 participants