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?
Last edited by OliverChen; 08-16-2019 at 09:50 AM.
|