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 #46 Remove ODM specific apis - phase1 #47

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

arjunbinu
Copy link
Contributor

@arjunbinu arjunbinu commented Nov 21, 2024

L1 and L2 PR
rdkcentral/rdkv-halif-test-tvsettings#57

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 21, 2024

CLA assistant check
All committers have signed the CLA.

@arjunbinu arjunbinu self-assigned this Nov 25, 2024
@arjunbinu arjunbinu force-pushed the feature/gh46_odm_api_removal_phase1 branch from 6ac9995 to 974f0b1 Compare November 25, 2024 16:13
@arjunbinu arjunbinu added documentation Improvements or additions to documentation enhancement New feature or request and removed documentation Improvements or additions to documentation labels Nov 25, 2024
Copy link

@lucienkennedylamb lucienkennedylamb left a comment

Choose a reason for hiding this comment

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

Looks OK.

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

include/tvSettings.h Show resolved Hide resolved
Copy link
Contributor

@hari22yuva hari22yuva left a comment

Choose a reason for hiding this comment

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

Please check the review comments

include/tvSettingsODM.h Show resolved Hide resolved
include/tvSettings.h Show resolved Hide resolved
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 believe I have addressed your review comments. Please let me know if you have any questions.

include/tvSettings.h Show resolved Hide resolved
include/tvSettings.h Show resolved Hide resolved
include/tvSettingsODM.h Show resolved Hide resolved
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

include/tvSettingsODM.h Show resolved Hide resolved
include/tvSettingsODM.h Show resolved Hide resolved
include/tvSettingsODM.h Show resolved Hide resolved
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
Contributor

@hari22yuva hari22yuva left a comment

Choose a reason for hiding this comment

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

looks ok

@hari22yuva hari22yuva force-pushed the feature/gh46_odm_api_removal_phase1 branch from 974f0b1 to aa1eb12 Compare November 28, 2024 14:37
@hari22yuva hari22yuva merged commit 841a28c into develop Dec 2, 2024
3 checks passed
@hari22yuva hari22yuva deleted the feature/gh46_odm_api_removal_phase1 branch December 2, 2024 12:09
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.

Remove ODM specific apis from tvsettings HAL to make it generic - Phase 1
6 participants