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

PR: Interface changes to support AIDL changes #33

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

Conversation

bhanucbp
Copy link

No description provided.

@CLAassistant
Copy link

CLAassistant commented Apr 29, 2024

CLA assistant check
All committers have signed the CLA.

@Ulrond Ulrond changed the title Interface changes to support AIDL changes dsDisplay: Interface changes to support AIDL changes May 16, 2024
@Ulrond Ulrond changed the title dsDisplay: Interface changes to support AIDL changes Interface changes to support AIDL changes May 16, 2024
@Ulrond Ulrond linked an issue May 16, 2024 that may be closed by this pull request
@Ulrond Ulrond changed the title Interface changes to support AIDL changes PR: Interface changes to support AIDL changes May 16, 2024
@srinivasgtl srinivasgtl added the AIDL All AIDL work elements label Jun 6, 2024
@Ulrond Ulrond added this to the AIDL Upgrades milestone Jun 7, 2024
@Ulrond Ulrond added the enhancement New feature or request label Jun 7, 2024
Copy link

@Ulrond Ulrond left a 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
Copy link

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
Copy link

@Ulrond Ulrond Jul 26, 2024

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.
Copy link

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.
Copy link

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.
Copy link

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
Copy link

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?

Copy link

@Ulrond Ulrond left a 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.
Copy link

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
Copy link

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AIDL All AIDL work elements enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dsSettings - device settings interface changes to support AIDL changes
4 participants