Set bridge resolution when setting the mode (MR 31)

sun6i-csi-bridge will return EINVAL if the resolution it is configured
with is different than the resolution the camera is configured with. So
we have to set it's resolution when changing the camera resolution.
This commit is contained in:
ArenM
2023-05-25 20:17:40 -04:00
parent ebfcf10fa6
commit f43fcdb241
4 changed files with 54 additions and 4 deletions

View File

@@ -115,7 +115,7 @@ main(int argc, char *argv[])
printf("Opening the device took %fms\n", (open_end - find_end) * 1000);
MPCamera *camera = mp_camera_new(video_fd, subdev_fd);
MPCamera *camera = mp_camera_new(video_fd, subdev_fd, -1);
MPControlList *controls = mp_camera_list_controls(camera);