How to power-up/down camera with V4L2?
Hi!
I'm trying to find a way to power-up an OV5645 image sensor in my system (Dragonboard 410c running Linaro Linux R.19.01). In its driver (ov5645.c) there are code like: static int ov5645_s_power(struct v4l2_subdev *sd, int on) { : } : static const struct v4l2_subdev_core_ops ov5645_core_ops = { .s_power = ov5645_s_power, }; Calling ov5645_s_power() will power-up or power-down this OV5645. And I found that the program gst-launch-1.0 may call ov5645_s_power() internally, but I just don't know how it can do this. I'm wondering whether there is anyway I can use any V4L2 control (maybe something like V4L2_CID_***?) to get ov5645_s_power() to be called, so I can arbitrarily power this OV5645 up/down? I'm not sure whether this question is a proper one for this forum or not. If not, could anyone advice a better place where I can post this question? |
What do you get with
Code:
v4l2-ctl --all? |
Hi Zeebra,
First thank you for your reply. By Code:
v4l2-ctl --all Code:
linaro@linaro-developer:~$ v4l2-ctl --all |
Finally I've found how to power-up this camera module:
1. Configure the Media Controller pipeline like: sudo media-ctl -d /dev/media0 -l '"msm_csiphy0":1->"msm_csid0":0[1],"msm_csid0":1->"msm_ispif0":0[1],"msm_ispif0":1->"msm_vfe0_rdi0":0[1]' 2. Open its corresponding /dev/video* Then ov5645_s_power() will be call to power this OV5645 up. FYR. |
All times are GMT -5. The time now is 11:41 PM. |