Skip to content

Commit 086bdae

Browse files
ngphibangjhedberg
authored andcommitted
drivers: video: sw_generator: Fix min buffers count
The driver needs at least one buffer to be able to start. Signed-off-by: Phi Bang Nguyen <[email protected]>
1 parent 5d8cf55 commit 086bdae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/video_sw_generator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ static int video_sw_generator_flush(const struct device *dev, bool cancel)
363363
static int video_sw_generator_get_caps(const struct device *dev, struct video_caps *caps)
364364
{
365365
caps->format_caps = fmts;
366-
caps->min_vbuf_count = 0;
366+
caps->min_vbuf_count = 1;
367367

368368
/* SW generator produces full frames */
369369
caps->min_line_count = caps->max_line_count = LINE_COUNT_HEIGHT;

0 commit comments

Comments
 (0)