    sub.id = 2; // should use boot time for sof
    ret = ioctl(s->video0_fd, VIDIOC_SUBSCRIBE_EVENT, &sub);
    printf("req mgr subscribe: %d\n", ret);
  
    camera_open(&s->rear);
    printf("rear opened \n");
    camera_open(&s->wide);
    printf("wide opened \n");
    camera_open(&s->front);
    printf("front opened \n");
  }
  
  static void camera_close(CameraState *s) {
    int ret;
  
 
</s> remove   printf("wide initted \n");
  camera_init(v, &s->front, CAMERA_ID_AR0231, 2, 20, device_id, ctx,
 </s> add   printf("wide road camera initted \n");
  camera_init(v, &s->driver_cam, CAMERA_ID_AR0231, 2, 20, device_id, ctx, </s> remove   printf("front initted \n");
 </s> add   printf("driver camera initted \n"); </s> remove   printf("rear initted \n");
  camera_init(v, &s->wide, CAMERA_ID_AR0231, 0, 20, device_id, ctx,
 </s> add   printf("road camera initted \n");
  camera_init(v, &s->wide_road_cam, CAMERA_ID_AR0231, 0, 20, device_id, ctx, </s> remove   camera_init(v, &s->rear, CAMERA_ID_AR0231, 1, 20, device_id, ctx,
 </s> add   camera_init(v, &s->road_cam, CAMERA_ID_AR0231, 1, 20, device_id, ctx, </s> remove   front_start(&s->front);
  rear_start(&s->rear);
 </s> add   driver_camera_start(&s->driver_cam);
  road_camera_start(&s->road_cam);
  camera_open(&s->road_cam);
  printf("road camera opened \n");
  camera_open(&s->wide_road_cam);
  printf("wide road camera opened \n");
  camera_open(&s->driver_cam);
  printf("driver camera opened \n");
    sub.id = 2; // should use boot time for sof
    ret = ioctl(s->video0_fd, VIDIOC_SUBSCRIBE_EVENT, &sub);
    printf("req mgr subscribe: %d\n", ret);
  
  camera_open(&s->road_cam);
  printf("road camera opened \n");
  camera_open(&s->wide_road_cam);
  printf("wide road camera opened \n");
  camera_open(&s->driver_cam);
  printf("driver camera opened \n");
  camera_open(&s->road_cam);
  printf("road camera opened \n");
  camera_open(&s->wide_road_cam);
  printf("wide road camera opened \n");
  camera_open(&s->driver_cam);
  printf("driver camera opened \n");
  camera_open(&s->road_cam);
  printf("road camera opened \n");
  camera_open(&s->wide_road_cam);
  printf("wide road camera opened \n");
  camera_open(&s->driver_cam);
  printf("driver camera opened \n");
  camera_open(&s->road_cam);
  printf("road camera opened \n");
  camera_open(&s->wide_road_cam);
  printf("wide road camera opened \n");
  camera_open(&s->driver_cam);
  printf("driver camera opened \n");
  camera_open(&s->road_cam);
  printf("road camera opened \n");
  camera_open(&s->wide_road_cam);
  printf("wide road camera opened \n");
  camera_open(&s->driver_cam);
  printf("driver camera opened \n");
  camera_open(&s->road_cam);
  printf("road camera opened \n");
  camera_open(&s->wide_road_cam);
  printf("wide road camera opened \n");
  camera_open(&s->driver_cam);
  printf("driver camera opened \n");
  }
  
  static void camera_close(CameraState *s) {
    int ret;
  
keep keep keep keep replace replace replace replace replace replace keep keep keep keep keep
 camerad: rename variables&functions to follow new convention (#20096)

* rename CameraState variables to follow new convention

* continue

* rename camera_process functions

* qcom:rename exposure related variables

* continue

* update commments

* bool real -> bool is_road_cam

* rename sm_front -> sm

* remove paramater tname from start_process_thread

* rename rhd_front to is_rhd

* remove unused varialble name from struct CameraInfo

* rename env_send_xxx

* rename cap_front to cap_driver,cap_rear to cap_road

* rename xxx_camera_process to process_xxx_camera

* update snapshot.py 
selfdrive/camerad/cameras/camera_qcom2.cc