AnsweredAssumed Answered

ov5640 ioctl_s_ctrl is not happening

Question asked by Ganesh Biradar on Jan 12, 2016
Latest reply on Jan 20, 2016 by alejandrolozano

Hi Guys,

                   i'm trying to create a c application which will change brightness value of ov5640.

i have modified the following things:

1-> i have added support for brightness in ioctl_s_ctrl in ov5640_mipi.c

     pr_debug("In ov5640:ioctl_s_ctrl %d\n", vc->id);

       switch (vc->id) {

       case V4L2_CID_BRIGHTNESS:

       pr_debug("GB : %s in V4L2_CID_BRIGHTNESS\n",__FUNCTION__);

       ov5640_brightness(vc->value);  //--> this function hold sitch case for different brightness levels.

2-> in c application i'm opening /dev/video1

      struct v4l2_control control;

      control.value = seek;//-> seek is range say -4 to +4 from user input.

      with help of ioctl(fd,VIDIOC_S_CTRL,&control)

 

well so far so good.

i have added some debug statement also at regular interval in probe, s_ctrl and g_ctrl also.

but when i'm trying to run application and try to set ctrl value it is not changing. i have checked kernel log also it is not displaying debug statement also.

 

any help very useful.

regards,

Ganesh 

Outcomes