ov5640_mipi camera sleep mode issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ov5640_mipi camera sleep mode issue

885 Views
veeranjaneyulug
Contributor III

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

Labels (5)
0 Kudos
1 Reply

549 Views
igorpadykov
NXP Employee
NXP Employee

Hi veeranjaneyulu

one can look at v4l2 api documentation and examples

http://linuxtv.org/downloads/v4l-dvb-apis/

http://linuxtv.org/downloads/v4l-utils/

and post question on v4l2 wiki

Developer Section - LinuxTVWiki

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos