summaryrefslogtreecommitdiffstats
path: root/libsensors/LightSensor.h
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2011-10-25 17:54:35 -0700
committerArve Hjønnevåg <arve@android.com>2011-11-01 20:09:10 -0700
commitdbc6da918cb77f4d96df97fd8f7c326f2783699a (patch)
tree72b193222661dd1e514967be0b8ec9f71ebe21ac /libsensors/LightSensor.h
parentde47e22bfed40584093220c7e35351e0340864fe (diff)
downloaddevice_samsung_tuna-dbc6da918cb77f4d96df97fd8f7c326f2783699a.zip
device_samsung_tuna-dbc6da918cb77f4d96df97fd8f7c326f2783699a.tar.gz
device_samsung_tuna-dbc6da918cb77f4d96df97fd8f7c326f2783699a.tar.bz2
sensors: Return a calculated lux value instead using the current 8 entry table
The light sensor now uses the lux to current formula in the datasheet, I = 10 * log(Ev) uA, and multiplies the result by 4 as an attempt to correct for the glass in front of the sensor. Also update the config_autoBrightnessLevels table so the auto brightness change occurs at the same adc values as before (or close for 7.2 lux). Change-Id: I121ce0f23dca093c9607ac9447b9263f48507a09
Diffstat (limited to 'libsensors/LightSensor.h')
-rw-r--r--libsensors/LightSensor.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/libsensors/LightSensor.h b/libsensors/LightSensor.h
index ed3b435..f5f8af0 100644
--- a/libsensors/LightSensor.h
+++ b/libsensors/LightSensor.h
@@ -32,10 +32,7 @@ struct input_event;
class LightSensor:public SamsungSensorBase {
- float mPreviousLight;
- virtual int handleEnable(int en);
virtual bool handleEvent(input_event const * event);
- float indexToValue(size_t index) const;
public:
LightSensor();
};