1 From a807b9f107bdcfbc9ba54ee4e67960f2e9912912 Mon Sep 17 00:00:00 2001
2 From: Sergio Aguirre <saaguirre@ti.com>
3 Date: Mon, 19 Jul 2010 17:45:38 -0500
4 Subject: [PATCH 71/75] mt9t112: Trigger autofocus at the end of context switch
6 Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
8 drivers/media/video/mt9t112.c | 4 ++--
9 1 files changed, 2 insertions(+), 2 deletions(-)
11 diff --git a/drivers/media/video/mt9t112.c b/drivers/media/video/mt9t112.c
12 index 8528417..0769f66 100644
13 --- a/drivers/media/video/mt9t112.c
14 +++ b/drivers/media/video/mt9t112.c
15 @@ -1080,8 +1080,6 @@ static int mt9t112_v4l2_int_s_power(struct v4l2_int_device *s,
16 mt9t112_pixfmt_to_order(priv->pix.pixelformat));
17 mt9t112_mcu_write(ret, client, VAR8(1, 0), 0x06);
19 - ECHECKER(ret, mt9t112_auto_focus_trigger(client));
21 ECHECKER(ret, mt9t112_goto_preview(client));
23 if ((priv->pix.width == MAX_WIDTH) &&
24 @@ -1089,6 +1087,8 @@ static int mt9t112_v4l2_int_s_power(struct v4l2_int_device *s,
25 ECHECKER(ret, mt9t112_goto_capture(client));
28 + ECHECKER(ret, mt9t112_auto_focus_trigger(client));
30 dev_dbg(&client->dev, "format : %d\n", priv->pix.pixelformat);
31 dev_dbg(&client->dev, "size : %d x %d\n",