This patch adds configuration changes for Proximity Sensor for BDW-WSB.
Change-Id: I3cc84d66c2a2adebcc6bd16e371937ca51202c9c
Signed-off-by: Archana Patni <archana.patni@intel.com>
Reviewed-on: https://android.intel.com/162379
Reviewed-by: Sesha, Subramony <subramony.sesha@intel.com>
Tested-by: Sesha, Subramony <subramony.sesha@intel.com>
Reviewed-by: Lilja, Ola <ola.lilja@intel.com>
$(common_src_path)/HidSensor_Gyro3D.cpp \
$(common_src_path)/HidSensor_Compass3D.cpp \
$(common_src_path)/HidSensor_ALS.cpp \
$(common_src_path)/HidSensor_Gyro3D.cpp \
$(common_src_path)/HidSensor_Compass3D.cpp \
$(common_src_path)/HidSensor_ALS.cpp \
+ $(common_src_path)/HidSensor_Proximity.cpp \
$(common_src_path)/RotVecSensor.cpp \
$(common_src_path)/SynthCompassSensor.cpp \
$(common_src_path)/OrientationSensor.cpp \
$(common_src_path)/RotVecSensor.cpp \
$(common_src_path)/SynthCompassSensor.cpp \
$(common_src_path)/OrientationSensor.cpp \
#include "HidSensor_Gyro3D.h"
#include "HidSensor_Compass3D.h"
#include "HidSensor_ALS.h"
#include "HidSensor_Gyro3D.h"
#include "HidSensor_Compass3D.h"
#include "HidSensor_ALS.h"
+#include "HidSensor_Proximity.h"
#include "OrientationSensor.h"
#include "RotVecSensor.h"
#include "SynthCompassSensor.h"
#include "OrientationSensor.h"
#include "RotVecSensor.h"
#include "SynthCompassSensor.h"
GyroSensor::sSensorInfo_gyro3D,
SynthCompassSensor::sSensorInfo_compass,
ALSSensor::sSensorInfo_als,
GyroSensor::sSensorInfo_gyro3D,
SynthCompassSensor::sSensorInfo_compass,
ALSSensor::sSensorInfo_als,
+ ProximitySensor::sSensorInfo_proximity,
RotVecSensor::sSensorInfo_rotvec,
OrientationSensor::sSensorInfo_orientation,
};
RotVecSensor::sSensorInfo_rotvec,
OrientationSensor::sSensorInfo_orientation,
};
sensors[gyro] = new GyroSensor();
sensors[compass] = new CompassSensor();
sensors[light] = new ALSSensor();
sensors[gyro] = new GyroSensor();
sensors[compass] = new CompassSensor();
sensors[light] = new ALSSensor();
+ sensors[proximity] = new ProximitySensor();
sensors[rotvec] = new RotVecSensor();
sensors[syncompass] = new SynthCompassSensor();
sensors[orientation] = new OrientationSensor();
sensors[rotvec] = new RotVecSensor();
sensors[syncompass] = new SynthCompassSensor();
sensors[orientation] = new OrientationSensor();
return syncompass;
case ID_O:
return orientation;
return syncompass;
case ID_O:
return orientation;
+ case ID_P:
+ return proximity;
default:
return -EINVAL;
}
default:
return -EINVAL;
}
rotvec,
syncompass,
orientation,
rotvec,
syncompass,
orientation,
numSensorDrivers,
numFds,
};
numSensorDrivers,
numFds,
};