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 setup.how 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.

./drivers/media/platform/mxc/capture/mxc_v4l2_capture.c

        case VIDIOC_S_POWER :

                pr_debug("   case VIDIOC_S_POWER\n");

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

                break;

 

 

ioctl support added below mentioned file

./drivers/media/platform/mxc/capture/ov5640_mipi.c

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

 

include/uapi/linux/videodev2.h

vidioc_s_power ();

 

 

Thanks &Regards

veeranjaneyulu

Outcomes