0f445a8eea965fc09cf3b8cab6f7aa537e96adf6 |
|
28-Jun-2012 |
Veeren Mandalia <v.mandalia@sta.samsung.com> |
manta: sensors: add light sensor multiplier to Light Sensor HAL Change-Id: Ib66b6f211bf6cca0a2943231c9f51b9dcd90789a Signed-off-by: Veeren Mandalia <v.mandalia@sta.samsung.com>
/device/samsung/manta/libsensors/LightSensor.cpp
|
db7bdef236921293302fdc3952dfe6a495a963a0 |
|
22-Jun-2012 |
JP Abgrall <jpa@google.com> |
libsensors: fix poll event that would use 100% CPU The new MPLSensor.cpp's readEvents() does not really read events :( it just ignores the data field and always return 0 no matter what. But it does mess around with some MPLSensor internal data and reads iio buffers. The MPLSensor's executeOnData() reads events and returns data. Based on the comments of that function it should be called after reading an event. It was placed in the code such that it would always return an available event even of the poll didn't return anything. This would cause poll(,,0) and nothing ever waited. Switch the sensor logging back to verbose to avoid polluting logcat. Bug: 6686148 Change-Id: Ibcd525c6a678c4acff51755eb057dd0553c523c2
/device/samsung/manta/libsensors/LightSensor.cpp
|
5dcc6c98e287eb1a1215778ce075950531624436 |
|
01-Jun-2012 |
JP Abgrall <jpa@google.com> |
manta: senors: add HAL for light and pressure sensors This HAL supports sensors using Industrial I/O subsystem. These sensor devices will be located in /sys/bus/iio/devices. Light Sensor: IIO device name: lightsensor-level chan_type: IIO_LIGHT channel: in_illuminance0_input event: /dev/iio:device? (assigned dynamically) Pressure Sensor: IIO device name: barometer chan_type: IIO_PRESSURE (This is not yet defined in main stream.) channel: in_pressure0_input event: /dev/iio:device? (assigned dynamically) TODO: iio/events.h and iio/types.h should be moved to external/kernel-headers/original. Change-Id: Ifbeb2f8e7ef7ac09f5b0727a2376c652e5f9e800 Signed-off-by: Won Hyoung Lee <whlee@sta.samsung.com>
/device/samsung/manta/libsensors/LightSensor.cpp
|