dda88c4d4f71f992f4eb153e4ea68bd63c189a6c
[openembedded.git] /
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
5
6 Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 ---
8  drivers/media/video/mt9t112.c |    4 ++--
9  1 files changed, 2 insertions(+), 2 deletions(-)
10
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);
18  
19 -               ECHECKER(ret, mt9t112_auto_focus_trigger(client));
20 -
21                 ECHECKER(ret, mt9t112_goto_preview(client));
22  
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));
26                 }
27  
28 +               ECHECKER(ret, mt9t112_auto_focus_trigger(client));
29 +
30                 dev_dbg(&client->dev, "format : %d\n", priv->pix.pixelformat);
31                 dev_dbg(&client->dev, "size   : %d x %d\n",
32                         priv->pix.width,
33 -- 
34 1.6.6.1
35