Hi igor,
Our requirement is we are getting data from gstreamer pipelines .we are not getting data from gstreamer that time only our camera will be going into sleep mode.
How to control camera standby mode api by using sysfs entry .In driver source code we added standby mode sysfs entry stuff.
static ssize_t ov5640_mipi_standby(struct device *dev, struct device_attribute *attr, char *buf,size_t size)
{
unsigned long val;
pr_info("ov5640_mipi_standby\n");
if (strict_strtoul(buf, 10, &val))
return -EINVAL;
switch(val){
case 0 : ov5640_write_reg(0x3008, 0x42);
break;
case 1 : ov5640_write_reg(0x3008, 0x82);
break;
default : pr_err("Standby invalid range request: %lu, discarded\n", val);
return -EINVAL;
}
pr_info("VEERA:%s\n",__func__);
return size;
}
static struct kobj_attribute standby =
__ATTR(saturation_ctrl, 0666, NULL, ov5640_mipi_standby);
static struct attribute *attributes_ov5640_mipi[] = {
&brightness.attr,
&contrast.attr,
&hue.attr,
&saturation.attr,
&standby.attr,
NULL,
};
like that previous we have control camera brightness and saturation ,hue etc by using sysfs entrys through test application.