int  YushanII_set_default_IQ(struct msm_sensor_ctrl_t *sensor)
{
	
	int channel_offset = 64;
	
	int tone_map = 46;
	
	int disable_defcor = 0;
	
	struct yushanii_cls cls;
	cls.cls_enable = 0;
	cls.color_temp = 5000;

	if (sensor->func_tbl->sensor_yushanII_set_IQ)
	    sensor->func_tbl->sensor_yushanII_set_IQ (sensor,&channel_offset,&tone_map,&disable_defcor,&cls);

    if (sensor->is_black_level_calibration_ongoing) {
        channel_offset=0;
        pr_info("[CAM] %s: force channel offset to 0 in black level ongoing mode.",__func__);
    }

	YushanII_set_channel_offset(channel_offset);
	YushanII_set_tone_mapping(tone_map);
	YushanII_set_defcor(disable_defcor);
	YushanII_set_cls(&cls);
	return 0;
}
示例#2
0
int YushanII_set_tone_mapping_debug(void __user *argp){
	int tone_map;

	if(copy_from_user(&tone_map, argp,
		sizeof(int))){
		pr_err("[CAM] copy from user error\n");
		return -EFAULT;
	}
	YushanII_set_tone_mapping(tone_map);

	return 0;
}
示例#3
0
int  YushanII_set_default_IQ(struct msm_sensor_ctrl_t *sensor)
{
	
	int channel_offset = 64;
	
	int tone_map = 46;
	
	int disable_defcor = 0;
	
	struct yushanii_cls cls;
	cls.cls_enable = 0;
	cls.color_temp = 5000;

	if (sensor->func_tbl->sensor_yushanII_set_IQ)
	    sensor->func_tbl->sensor_yushanII_set_IQ (sensor,&channel_offset,&tone_map,&disable_defcor,&cls);

	YushanII_set_channel_offset(channel_offset);
	YushanII_set_tone_mapping(tone_map);
	YushanII_set_defcor(disable_defcor);
	YushanII_set_cls(&cls);
	return 0;
}