Skip to content

Commit e76a0b1

Browse files
committed
drivers: video: esp32_dvp: add missing capability property
In the ESP32 video driver, set the caps.min_vbuf_count field to indicate that a single buffer is enough. Fix use of un-initialized memory breaking the samples in some situations. Signed-off-by: Josuah Demangeon <me@josuah.net>
1 parent e4efcc8 commit e76a0b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/video/video_esp32_dvp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ static int video_esp32_get_caps(const struct device *dev, struct video_caps *cap
245245
{
246246
const struct video_esp32_config *config = dev->config;
247247

248+
/* A single buffer is enough to perform a transfer */
249+
caps->min_vbuf_count = 1;
250+
248251
/* ESP32 produces full frames */
249252
caps->min_line_count = caps->max_line_count = LINE_COUNT_HEIGHT;
250253

0 commit comments

Comments
 (0)