Skip to content

UAC2: fix feedback EP buffer alignment.#1965

Merged
hathach merged 1 commit intohathach:masterfrom
HiFiPhile:align
Mar 21, 2023
Merged

UAC2: fix feedback EP buffer alignment.#1965
hathach merged 1 commit intohathach:masterfrom
HiFiPhile:align

Conversation

@HiFiPhile
Copy link
Copy Markdown
Collaborator

Describe the PR
Which cause error in get_buf_offset() of lpc_ip3511.

}compute;

} feedback;
CFG_TUSB_MEM_ALIGN uint32_t feedback_value; // Feedback value for asynchronous mode (in 16.16 format).
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

we can put the CFG_TUSB_MEM_ALIGN to the struct feedback, which will make the value as 1st member to be aligned correctly ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes that will work. I was thinking to avoid aligment on struct member so I moved value outside, but it should be ok.

Copy link
Copy Markdown
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

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

look great, thank you

@hathach hathach merged commit ec9c666 into hathach:master Mar 21, 2023
@HiFiPhile HiFiPhile deleted the align branch March 31, 2023 06:50
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.

2 participants