AnsweredAssumed Answered

ov5640_mipi camera sleep mode issue

Question asked by veeranjaneyulu g on Mar 23, 2016
Latest reply on Mar 28, 2016 by igorpadykov

Hi every one ,

we are using linux kernel 3.14.28 and yocto to put camera into standby mode by using application.

how to set ov5640_mipi camera put into sleep/standby mode at the time of video streaming .Can you any body guide me.


        case VIDIOC_S_POWER :

                pr_debug("   case VIDIOC_S_POWER\n");

                retval = vidioc_int_s_power_num(cam->sensor,arg);




ioctl support added below mentioned file


static struct v4l2_int_ioctl_desc ov5640_ioctl_desc[] = {

        {vidioc_int_dev_init_num, (v4l2_int_ioctl_func *) ioctl_dev_init},

        {vidioc_int_dev_exit_num, ioctl_dev_exit},

        {vidioc_int_s_power_num, (v4l2_int_ioctl_func *) ioctl_s_power},

we added the above mentioned support code



vidioc_s_power ();



Thanks &Regards