-
Notifications
You must be signed in to change notification settings - Fork 8.1k
STM32 VENC driver fixes and cleanup #97927
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
base: main
Are you sure you want to change the base?
Conversation
24f5f47
to
2c37e09
Compare
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.
LGTM, thanks.
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.
LGTM.
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.
For the 3 commits: could you add stm32
in the commit messages header lines? E.g.:
drivers: video: stm32_venc: fix return value
drivers: video: stm32_venc: log an error in case of hardware timeout
drivers: video: stm32_venc: fix coding style
For commit "drivers: video: venc: fix coding style", that are a few other camel case variable names to fix:
in encoder_start()
, encoder_end()
and encode_frame()
:
H264EncIn encIn = {0};
H264EncOut encOut = {0};
In EWLWaitHwRdy()
:
uint32_t prevSlicesReady = 0;
(...)
uint32_t clrByWrite1 = ...
45d9bf9
45d9bf9
to
d0d150d
Compare
Fix Etienne's remarks about remaining CamelCase and commit header. |
Avoid mixing encoder library return code and driver return value to fix wrong value returned by enqueue() in nominal case. Signed-off-by: Hugues Fruchet <[email protected]>
Log an error in case of hardware timeout. Signed-off-by: Hugues Fruchet <[email protected]>
Fix coding style issues in venc video driver. Signed-off-by: Hugues Fruchet <[email protected]>
d0d150d
to
4a90372
Compare
|
Fix some wrong return code in nominal case, add some error logging in case of timeout and fixes some camel-case coding style issues reported when reviewing #92884.