video_flush()
called with VIDEO_EP_ALL
, unsupported by most drivers
#78712
Labels
area: Drivers
area: Video
Video subsystem
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
The video API calls
video_flush()
fromvideo_stream_stop()
withep=VIDEO_EP_ALL
to flush all endpoints before stopping the stream.Currently, most "data mover" drivers (not the sensors but MIPI/DVP ones) only filter
VIDEO_EP_OUT
https://github.com/zephyrproject-rtos/zephyr/blob/main/include/zephyr/drivers/video.h#L456
Expected behavior
Calling
video_stream_stop()
succeeds on all video drivers supporting it.Impact
The flush operation would fail upon calling
video_stream_stop()
for affected drivers.Environment (please complete the following information):
Additional context
if (ep != VIDEO_EP_OUT)
would need to be converted toif (ep != VIDEO_EP_OUT && ep != VIDEO_EP_ALL)
.A PR with macros integrating this will be opened.
The text was updated successfully, but these errors were encountered: