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:
parent
5af3fbadfd
commit
2ba893e0cb
1 changed files with 8 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue