-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
@@ -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. |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Removed : @pre - HdmiCecAddLogicalAddress in Get Physical Address Physical address will be acquired first and then only Logical Address will be updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shipit
There was a problem hiding this 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
5816606
Add Logical Address - @pre condition for CEC HAL APIs after HdmiCecOpen()
Remove Logical Address - @pre condition for CEC HAL APIs for HdmiCecClose()