summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhiruchi Birajdar <abiraj@codeaurora.org>2010-08-27 11:22:56 -0700
committerAbhiruchi Birajdar <abiraj@codeaurora.org>2010-09-03 10:20:25 -0700
commit9b6ea21f354e2c4fab87ff593f07ce9b57cfa96d (patch)
treedaa1cff948e940e8a963eed6b42daae71bfe4121
parenta91626e8deda068d59dc0aa5bb3b5545815b34a3 (diff)
downloadbionic-9b6ea21f354e2c4fab87ff593f07ce9b57cfa96d.zip
bionic-9b6ea21f354e2c4fab87ff593f07ce9b57cfa96d.tar.gz
bionic-9b6ea21f354e2c4fab87ff593f07ce9b57cfa96d.tar.bz2
bionic: Add support for Xenon Flash.
Add IOCTLs for Xenon flash support. Change-Id: I6eb63707b2de56266cd47e123e9439c122773ca7
-rw-r--r--libc/kernel/common/media/msm_camera.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/kernel/common/media/msm_camera.h b/libc/kernel/common/media/msm_camera.h
index 5a07ac9..6bcddcf 100644
--- a/libc/kernel/common/media/msm_camera.h
+++ b/libc/kernel/common/media/msm_camera.h
@@ -76,6 +76,9 @@
#define MSM_CAMERA_LED_LOW 1
#define MSM_CAMERA_LED_HIGH 2
+#define MSM_CAMERA_STROBE_FLASH_NONE 0
+#define MSM_CAMERA_STROBE_FLASH_XENON 1
+
#define MSM_CAM_IOCTL_FLASH_LED_CFG _IOW(MSM_CAM_IOCTL_MAGIC, 22, unsigned *)
#define MSM_CAM_IOCTL_UNBLOCK_POLL_FRAME _IO(MSM_CAM_IOCTL_MAGIC, 23)
@@ -85,6 +88,12 @@
#define MSM_CAM_IOCTL_AF_CTRL _IOR(MSM_CAM_IOCTL_MAGIC, 25, struct msm_ctrl_cmt_t *)
#define MSM_CAM_IOCTL_AF_CTRL_DONE _IOW(MSM_CAM_IOCTL_MAGIC, 26, struct msm_ctrl_cmt_t *)
+#define MSM_CAM_IOCTL_STROBE_FLASH_CFG _IOW(MSM_CAM_IOCTL_MAGIC, 29, uint32_t *)
+
+#define MSM_CAM_IOCTL_STROBE_FLASH_CHARGE _IOW(MSM_CAM_IOCTL_MAGIC, 30, uint32_t *)
+
+#define MSM_CAM_IOCTL_STROBE_FLASH_RELEASE _IO(MSM_CAM_IOCTL_MAGIC, 31)
+
#define MAX_SENSOR_NUM 3
#define MAX_SENSOR_NAME 32