Khadas and Mipi camera

It is IRCUT function, you can follow the sample code to control it.

  • 0 - off
  • 1 - on
static void do_sensor_ir_cut(int videofd, int ircut_state)
{
    struct v4l2_control ctrl;
    ctrl.id = ISP_V4L2_CID_CUSTOM_SENSOR_IR_CUT;          
    ctrl.value = ircut_state;
    if (-1 == ioctl (videofd, VIDIOC_S_CTRL, &ctrl)) {
        printf("do_sensor_ir_cut failed\n");
    }
}

Why not doesn’t work, please check here, it works well.

Please check here: