File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,20 @@ static void video_esp32_cam_ctrl_init(const struct device *dev)
374
374
cam_ll_enable_invert_hsync (data -> hal .hw , cfg -> invert_hsync );
375
375
}
376
376
377
+ static int video_esp32_set_frmival (const struct device * dev , struct video_frmival * frmival )
378
+ {
379
+ const struct video_esp32_config * cfg = dev -> config ;
380
+
381
+ return video_set_frmival (cfg -> source_dev , frmival );
382
+ }
383
+
384
+ static int video_esp32_get_frmival (const struct device * dev , struct video_frmival * frmival )
385
+ {
386
+ const struct video_esp32_config * cfg = dev -> config ;
387
+
388
+ return video_get_frmival (cfg -> source_dev , frmival );
389
+ }
390
+
377
391
static int video_esp32_init (const struct device * dev )
378
392
{
379
393
const struct video_esp32_config * cfg = dev -> config ;
@@ -432,6 +446,8 @@ static DEVICE_API(video, esp32_driver_api) = {
432
446
.flush = video_esp32_flush ,
433
447
.set_selection = video_esp32_set_selection ,
434
448
.get_selection = video_esp32_get_selection ,
449
+ .set_frmival = video_esp32_set_frmival ,
450
+ .get_frmival = video_esp32_get_frmival ,
435
451
#ifdef CONFIG_POLL
436
452
.set_signal = video_esp32_set_signal ,
437
453
#endif
You can’t perform that action at this time.
0 commit comments