camera: oneframe v0.1.f

This commit is contained in:
dalon.zhang
2015-02-14 18:18:09 +08:00
parent a28c78a443
commit 495e499bf8
2 changed files with 7 additions and 3 deletions

View File

@@ -1278,7 +1278,9 @@ int generic_sensor_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
static void sensor_af_workqueue(struct work_struct *work)
{
struct rk_sensor_focus_work *sensor_work = container_of(work, struct rk_sensor_focus_work, dwork.work);
struct i2c_client *client = sensor_work->client;
struct i2c_client *client = sensor_work->client;
struct soc_camera_subdev_desc *ssdd = client->dev.platform_data;
struct soc_camera_device *icd = ssdd->socdev;
struct generic_sensor*sensor = to_generic_sensor(client);
//struct rk_sensor_focus_cmd_info cmdinfo;
int zone_tm_pos[4];
@@ -1298,7 +1300,7 @@ int generic_sensor_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
SENSOR_TR("WqCmd_af_init is failed in sensor_af_workqueue!");
} else {
if(sensor->sensor_focus.focus_delay != WqCmd_af_invalid) {
generic_sensor_af_workqueue_set(client->dev.platform_data,sensor->sensor_focus.focus_delay,0,false);
generic_sensor_af_workqueue_set(icd,sensor->sensor_focus.focus_delay,0,false);
sensor->sensor_focus.focus_delay = WqCmd_af_invalid;
}
sensor->sensor_focus.focus_state = FocusState_Inited;

View File

@@ -293,8 +293,10 @@ static u32 CHIP_NAME;
1. use of_find_node_by_name to get vpu node instead of of_find_compatible_node
*v0.1.e:
1. support focus mode.
*v0.1.f:
1. focus mode have some bug,fix it.
*/
#define RK_CAM_VERSION_CODE KERNEL_VERSION(0, 1, 0xe)
#define RK_CAM_VERSION_CODE KERNEL_VERSION(0, 1, 0xf)
static int version = RK_CAM_VERSION_CODE;
module_param(version, int, S_IRUGO);