Skip to content

dsHdmiIn HAL API Documentation Improvements and Specification Clarifications - #206

Open
KarthikeyanR470 wants to merge 2 commits into
developfrom
feature/dsHdmiIn_req_doc_changes
Open

dsHdmiIn HAL API Documentation Improvements and Specification Clarifications#206
KarthikeyanR470 wants to merge 2 commits into
developfrom
feature/dsHdmiIn_req_doc_changes

Conversation

@KarthikeyanR470

Copy link
Copy Markdown

Goal
Improve HAL API specification clarity, consistency, and usability by addressing ambiguous documentation, refining parameter descriptions, and explicitly defining expected API behavior to prevent implementation and integration inconsistencies.

API: dsHdmiInGetNumberOfInputs()

Issue Description
The current specification states that source devices without HDMI input support "return 0", which is ambiguous. It is unclear whether this means:

The API returns dsERR_NONE and sets *NoOfinputs = 0, or
The API returns dsERR_OPERATION_NOT_SUPPORTED.

The specification should explicitly define the expected return status and output parameter behavior.

API: dsGetHDMISPDInfo()

Issue Description
The API uses unsigned char *data as the output parameter, while the documentation refers to dsSpd_infoframe_st and its size. This creates ambiguity regarding expected buffer size and data format. The specification should update the API to use dsSpd_infoframe_st * as the output parameter and document that the SPD information is returned through this structure.

API: dsGetAllmStatus()

Issue Description
The current documentation describes allmStatus as a "Flag to control the ALLM status". Since this is a getter API, the parameter does not control ALLM; it reports the current ALLM state. The specification should update the parameter description to indicate that it returns the current ALLM status of the specified HDMI input port.

@KarthikeyanR470
KarthikeyanR470 requested a review from a team as a code owner July 16, 2026 10:50
Copilot AI review requested due to automatic review settings July 16, 2026 10:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to improve the HDMI-In HAL specification clarity by refining parameter documentation and clarifying expected API behavior to reduce integration ambiguity.

Changes:

  • Updates dsGetHDMISPDInfo() to return SPD info via a dedicated SPD infoframe structure pointer (instead of a raw byte buffer).
  • Clarifies dsGetAllmStatus() documentation to describe it as reporting current ALLM state (getter semantics).
  • Adjusts SPD-related parameter documentation to reference dsSpd_infoframe_st.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread include/dsHdmiIn.h
*
*/
dsError_t dsGetHDMISPDInfo (dsHdmiInPort_t iHdmiPort, unsigned char *data);
dsError_t dsGetHDMISPDInfo(dsHdmiInPort_t iHdmiPort, dsSpd_infoframe_st *spdInfo);
Comment thread include/dsHdmiIn.h
Comment on lines 615 to 618
* @param[in] iHdmiPort - HDMI input port. Please refer ::dsHdmiInPort_t
* @param[out] data - HDMI SPD info data
* Should not exceed sizeof(dsSpd_infoframe_st). Please refer ::dsSpd_infoframe_st
* Please refer ::dsSpd_infoframe_st.
*
Comment thread include/dsHdmiIn.h
Comment on lines +684 to 687
* @brief Gets the current ALLM status for the specified HDMI input port
*
* For sink devices, this function checks whether ALLM status is enabled or disabled for the specific HDMI input port.
* For sink devices, this function checks whether ALLM status is enabled or disabled for the specified HDMI input port.
* For source devices, this function returns dsERR_OPERATION_NOT_SUPPORTED always.
Comment thread include/dsHdmiIn.h

/**
* @brief Checks whether ALLM status is enabled or disabled for the specific HDMI input port
* @brief Gets the current ALLM status for the specified HDMI input port
Copilot AI review requested due to automatic review settings July 17, 2026 09:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread include/dsHdmiIn.h
Comment on lines 155 to 159
* @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; e.g: source devices
* @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported
* @retval dsERR_OPERATION_FAILED - The attempted operation has failed
Comment thread include/dsHdmiIn.h
Comment on lines 615 to +617
* @param[in] iHdmiPort - HDMI input port. Please refer ::dsHdmiInPort_t
* @param[out] data - HDMI SPD info data
* Should not exceed sizeof(dsSpd_infoframe_st). Please refer ::dsSpd_infoframe_st
* Please refer ::dsSpd_infoframe_st.
Comment thread include/dsHdmiIn.h
*
*/
dsError_t dsGetHDMISPDInfo (dsHdmiInPort_t iHdmiPort, unsigned char *data);
dsError_t dsGetHDMISPDInfo(dsHdmiInPort_t iHdmiPort, dsSpd_infoframe_st *spdInfo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dsHdmiIn HAL API Documentation Improvements and Specification Clarifications

2 participants