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 #11 Pre and Post condition update for CEC HAL APIs #12

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

krishna-1809
Copy link
Contributor

Add Logical Address - @pre condition for CEC HAL APIs after HdmiCecOpen()
Remove Logical Address - @pre condition for CEC HAL APIs for HdmiCecClose()

Copy link

@akhilbhas akhilbhas left a comment

Choose a reason for hiding this comment

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

HI @krishna-1809 ,
Can you clarify the doubts I have in the changes ?

include/hdmi_cec_driver.h Outdated Show resolved Hide resolved
@@ -159,7 +159,7 @@ HDMI_CEC_STATUS HdmiCecOpen(int *handle);
* @retval HDMI_CEC_IO_NOT_OPENED - Module is not initialised
* @retval HDMI_CEC_IO_INVALID_HANDLE - An invalid handle argument has been passed
*
* @pre HdmiCecOpen() must be called before calling this API.
* @pre HdmiCecOpen(), HdmiCecRemoveLogicalAddress() must be called before calling this API.

Choose a reason for hiding this comment

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

HdmiCecRemoveLogicAddresse is required only if HdmiCecAddLogicAddress() is called , right ?

Choose a reason for hiding this comment

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

Discussed, this change is required

Copy link
Contributor

@hari22yuva hari22yuva Jan 8, 2025

Choose a reason for hiding this comment

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

no need to add pre condition of HdmiCecRemoveLogicAddresse () for close
check this https://github.com/rdkcentral/rdk-halif-hdmi_cec/blob/main/include/hdmi_cec_driver.h#L152

@srinivasgtl srinivasgtl added enhancement New feature or request documentation Improvements or additions to documentation labels Jan 8, 2025
@srinivasgtl srinivasgtl linked an issue Jan 8, 2025 that may be closed by this pull request
Removed :

@pre - HdmiCecAddLogicalAddress in Get Physical Address

Physical address will be acquired first and then only Logical Address will be updated
akhilbhas
akhilbhas previously approved these changes Jan 8, 2025
Copy link

@akhilbhas akhilbhas left a comment

Choose a reason for hiding this comment

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

Changes looks good.

srinivasgtl
srinivasgtl previously approved these changes Jan 8, 2025
Copy link

@srinivasgtl srinivasgtl left a comment

Choose a reason for hiding this comment

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

shipit

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.

is these changes are taking in Test case also
if so please share the PR

@krishna-1809 krishna-1809 dismissed stale reviews from srinivasgtl and akhilbhas via 5816606 January 8, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Pre and Post condition update for CEC HAL APIs
4 participants