diff options
author | Dan Murphy <D.Murphy@motorola.com> | 2009-07-21 08:56:12 -0500 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2009-07-28 08:48:37 -0700 |
commit | e00013c4957e24b14f0751af40492bbdf2b332e0 (patch) | |
tree | 22395e539c8bb0449c5ccc72f750a4b8f8065bc7 /include/hardware/lights.h | |
parent | 24a9a66dbab8ab3b1b08495f55f79c36bacaec2d (diff) | |
download | hardware_libhardware-e00013c4957e24b14f0751af40492bbdf2b332e0.zip hardware_libhardware-e00013c4957e24b14f0751af40492bbdf2b332e0.tar.gz hardware_libhardware-e00013c4957e24b14f0751af40492bbdf2b332e0.tar.bz2 |
lights: Header file updates for ALS support codes
These changes adds ALS support to the lighting system
Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include/hardware/lights.h')
-rwxr-xr-x[-rw-r--r--] | include/hardware/lights.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/hardware/lights.h b/include/hardware/lights.h index bb89c89..a660b2d 100644..100755 --- a/include/hardware/lights.h +++ b/include/hardware/lights.h @@ -65,6 +65,15 @@ __BEGIN_DECLS */ #define LIGHT_FLASH_TIMED 1 +/** + * Use these definitions for the Ambient Light sensing modes. Manual will + * force the display brightness based on the slider bar. Automatic mode will + * force the system to control the lighting regions. + */ + +#define ALS_MODE_MANUAL 0 +#define ALS_MODE_AUTOMATIC 1 + /** * The parameters that can be set for a given light. @@ -107,6 +116,12 @@ struct light_device_t { */ int (*set_light)(struct light_device_t* dev, struct light_state_t const* state); + /** + * Set the global ambient light sensing value. + * + * Returns: 0 on succes, error code on failure. + */ + int (*set_als_mode)(int mode); }; |