History log of /device/samsung/manta/libsensors/SensorBase.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/SensorBase.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/SensorBase.cpp