OSDN Git Service

GMINL-7944: Introduce internal sensor types for ALS
authorPatrick Porlan <patrick.porlan@intel.com>
Fri, 10 Apr 2015 17:06:05 +0000 (19:06 +0200)
committerAdriana Reus <adriana.reus@intel.com>
Wed, 15 Apr 2015 14:42:25 +0000 (17:42 +0300)
commit3068a3668fbb4961f531df01b5bcb644e959f8a2
tree6641bffcaac904554bc2395667e0dc95121c5624
parent823fab6b5d92a8433d80687d9c16755b4c09be60
GMINL-7944: Introduce internal sensor types for ALS

Decouple the sensor type retrieved from the catalog from the one
that is exposed to Android. This allows us to tailor processing
to specific iio sensor types. Start with the ALS, which comes in
several variants that we will want to arbitrate (i.e. if a sensor
exposes both illuminance and intensity, we'll keep illuminance).

This could enable finer processing per iio type, such as intensity
to lux conversions.

The type field in the sensor array becomes the internal type. The
type field on the sensor_desc array is the one exposed to Android.

Change-Id: Ie3a001d389af50f88732f71a3b06afc752255f4c
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
control.c
description.c
enumeration.c
enumeration.h
transform.c