-
Notifications
You must be signed in to change notification settings - Fork 9
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
PR: Interface changes to support AIDL changes #33
base: develop
Are you sure you want to change the base?
PR: Interface changes to support AIDL changes #33
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.
what's holding this from being merged specifically?
* | ||
* @pre dsDisplayInit() and dsGetDisplay() must be called before calling this API | ||
* | ||
* @warning This API is Not thread safe |
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.
remove this everywhere, it's not required. You’ve stated it in your markdown overview.
Threading Model
This interface is not required to be thread safe
* @param[out] length - length of the EDID buffer data. Min value is 0 | ||
* @param[in] handle - Handle of the display device | ||
* @param[out] edid - Pointer to raw EDID buffer | ||
* @param[in] maxEDIDSize - length of the EDID buffer data. Min value is 0 |
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.
invalid value surely would be zero? You should be stating a reasonable value here, that's defined by a #define, otherwise the client doesn't know how much of a default buffer would cover a valid EDID.
* | ||
* @pre dsHdmiInInit() must be called before calling this API | ||
* | ||
* @warning This API is Not thread safe. |
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.
remove as unrequired.
/** | ||
* @brief Gets the maximum size of EDID data corresponds to the given input port | ||
* | ||
* For Sink devices this function gets the maximum size of EDID data corresponds to the given input port. |
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.
then the function should be stated as
dsGetSinkEDIDBytesMaxSize
surely?
* | ||
* @pre dsHostInit() must be called before this function | ||
* | ||
* @warning This API is Not thread safe. |
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.
remove everwhere.
* @retval dsERR_NONE - Success | ||
* @retval dsERR_NOT_INITIALIZED - Module is not initialised | ||
* @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid | ||
* @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported |
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.
under what condition would it be not supported? can't see this as a valid return code?
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.
some odd things defined in this.
* | ||
* @pre dsHostInit() must be called before this function | ||
* | ||
* @warning This API is Not thread safe. |
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.
remove warning everywhere.
* @param[out] edid - host EDID. | ||
* @param[out] length - length of host EDID. Min value of 0. Max value of 2048 | ||
* @param[out] edid - host EDID. | ||
* @param[in] maxEDIDLength - length of host EDID. Min value of 0. Max value of 2048 |
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.
can't be zero... You need to set a #define with a reasonable buffer size so that it's used here and the documention should state that.
* @retval dsERR_NONE - Success | ||
* @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid | ||
* @retval dsERR_NOT_INITIALIZED - Module is not initialised | ||
* @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported |
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.
why would this occur? dsERR_OPERATION_NOT_SUPPORTED
? Was this added to all functions due to AIDL?
No description provided.