Skip to content

Conversation

hfruchet-st
Copy link
Contributor

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.

josuah
josuah previously approved these changes Oct 20, 2025
avolmat-st
avolmat-st previously approved these changes Oct 20, 2025
Copy link

@avolmat-st avolmat-st left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

ngphibang
ngphibang previously approved these changes Oct 20, 2025
Copy link
Contributor

@ngphibang ngphibang left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@etienne-lms etienne-lms left a 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 = ...

@hfruchet-st hfruchet-st dismissed stale reviews from ngphibang and avolmat-st via 45d9bf9 October 22, 2025 12:52
@hfruchet-st hfruchet-st force-pushed the pr-venc-fixes branch 2 times, most recently from 45d9bf9 to d0d150d Compare October 22, 2025 12:58
@hfruchet-st
Copy link
Contributor Author

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]>
@sonarqubecloud
Copy link

@mathieuchopstm mathieuchopstm added this to the v4.3.0 milestone Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Video Video subsystem platform: STM32 ST Micro STM32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants