msm: camera: Change mount angle of MT9M114 sensor
Change mount angle of MT9M114 sensor on 8064 CDP for proper
orientation of preview and snapshot
CRs-fixed: 343959
Change-Id: Ifba566212ef6bbf220296e5fa41b4d1672b694d3
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8064-camera.c b/arch/arm/mach-msm/board-8064-camera.c
index c7b3af5..5d1f3e8 100644
--- a/arch/arm/mach-msm/board-8064-camera.c
+++ b/arch/arm/mach-msm/board-8064-camera.c
@@ -602,9 +602,10 @@
msm_gpiomux_install(apq8064_cam_common_configs,
ARRAY_SIZE(apq8064_cam_common_configs));
- if (machine_is_apq8064_cdp())
+ if (machine_is_apq8064_cdp()) {
sensor_board_info_imx074.mount_angle = 0;
- else if (machine_is_apq8064_liquid())
+ sensor_board_info_mt9m114.mount_angle = 0;
+ } else if (machine_is_apq8064_liquid())
sensor_board_info_imx074.mount_angle = 180;
platform_device_register(&msm8960_device_i2c_mux_gsbi4);