Skip to content
Commit 89672367 authored by Phi Bang Nguyen's avatar Phi Bang Nguyen Committed by Fabio Baltieri
Browse files

drivers: video: sw_generator: Fix stream_start return value



The stream_start() callback needs to return 0 for success. However, to
indicate work has been successfully scheduled, k_work_schedule() could
return either 0 (already scheduled) or 1 (newly scheduled).

Due to this issue, the sw_generator could not start streaming. Fix it.

Signed-off-by: default avatarPhi Bang Nguyen <phibang.nguyen@nxp.com>
parent e1ade02b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment