drivers: video: esp32s3

Add the missing calls to the sensors`video_stream_start()`
and `video_stream_stop()` functions.

Signed-off-by: Armin Kessler <ake@espros.com>
This commit is contained in:
Armin Kessler 2024-09-12 11:47:57 +02:00 committed by Fabio Baltieri
parent 5af3fbadfd
commit 2ba893e0cb

View file

@ -194,6 +194,10 @@ static int video_esp32_stream_start(const struct device *dev)
cam_hal_start_streaming(&data->hal);
if (video_stream_start(cfg->source_dev)) {
return -EIO;
}
data->is_streaming = true;
return 0;
@ -207,6 +211,10 @@ static int video_esp32_stream_stop(const struct device *dev)
LOG_DBG("Stop streaming");
if (video_stream_stop(cfg->source_dev)) {
return -EIO;
}
data->is_streaming = false;
ret = dma_stop(cfg->dma_dev, cfg->rx_dma_channel);
if (ret) {