summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQinggang Zhou <qzhou@nvidia.com>2011-08-17 17:38:19 -0700
committerVarun Colbert <vcolbert@nvidia.com>2011-08-19 15:18:19 -0700
commit713b0fe85ab640016918062fed8b62486f88f92e (patch)
treeccb4cf260625b9e543387f2002359a221eaf4cc7
parent2cb89efe28976e45189004d1fbbbe92029663ebc (diff)
media: video: tegra: sh532u: remove focuser init_pos
AF sets the initial position for focuser. It's not required to set initial positions in the kernel. Removing them speeds up camera launch. bug 835634 Change-Id: I26b13c56ee4cd7e193493ed3c3bbd33c4c9bef4c Reviewed-on: http://git-master/r/47657 Tested-by: Qinggang Zhou <qzhou@nvidia.com> Reviewed-by: Qi Wang <qiw@nvidia.com> Reviewed-by: Gary Zhang <garyz@nvidia.com> Reviewed-by: Naren Bhat <nbhat@nvidia.com> Reviewed-by: Patrick Shehane <pshehane@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com>
-rw-r--r--drivers/media/video/tegra/sh532u.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/media/video/tegra/sh532u.c b/drivers/media/video/tegra/sh532u.c
index ee3e67f66914..0038359c79f4 100644
--- a/drivers/media/video/tegra/sh532u.c
+++ b/drivers/media/video/tegra/sh532u.c
@@ -300,19 +300,6 @@ get_rom_info_error:
info->config.pos_low = POS_LOW;
}
-static void init_hvca_pos(struct sh532u_sensor *info)
-{
- struct i2c_client *client = info->i2c_client;
- short sBottomLimit, sTopLimit;
-
- get_rom_info(info);
- sBottomLimit = (((int)info->config.limit_low * 5) >> 3) & 0xFFC0;
- lens_move_pulse(client, sBottomLimit);
- sTopLimit = (((int)info->config.limit_high * 5) >> 3) & 0xFFC0;
- lens_move_pulse(client, sTopLimit);
- lens_move_pulse(client, info->config.pos_high);
-}
-
static unsigned int a2buf[] = {
0x0018019c,
0x0018019d,
@@ -476,9 +463,6 @@ static void init_driver(struct sh532u_sensor *info)
}
}
}
- msleep(300);
-
- init_hvca_pos(info);
}