OSDN Git Service
Axel Fagerstedt [Tue, 5 May 2015 08:05:40 +0000 (01:05 -0700)]
Add errno includes
Change-Id: I5df3283ecedf52e36edd30c19a95d4b1fd0fb366
Viorel Suman [Tue, 16 Jun 2015 14:43:09 +0000 (17:43 +0300)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/mr1/sensors/master' into l-mr1-master
git log --pretty=format:"%h %ad | %s%d [%an]" origin/android/l/mr1/master..origin/abt/topic/gmin/l-dev/mr1/sensors/master:
2afc30f Tue Jun 16 17:36:30 2015 +0300 | hrtimer sampling frequency must be integral number (origin/abt/topic/gmin/l-dev/mr1/sensors/master, refs/published/sensors, sensors) [Viorel Suman]
git diff --stat origin/android/l/mr1/master..HEAD:
control.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Change-Id: If0bb79be6b9415e1aa2b49b799f7747c89514d40
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Viorel Suman [Tue, 16 Jun 2015 14:36:30 +0000 (17:36 +0300)]
hrtimer sampling frequency must be integral number
hrtimer sampling frequency must be an integral number,
so round to smallest integral value not less than the
passed frequency.
Change-Id: I0e7ca644dee3f679b1e26f422e3d87eedf7c7482
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Viorel Suman [Thu, 11 Jun 2015 13:15:43 +0000 (16:15 +0300)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/mr1/sensors/master' into l-mr1-master
git log --pretty=format:"%h %ad | %s%d [%an]" origin/android/l/mr1/master..origin/abt/topic/gmin/l-dev/mr1/sensors/master:
a1f7794 Fri May 29 15:05:40 2015 +0300 | sens: add check_sample_rate function to verify if events frequency exceeds some rate per second (origin/abt/topic/gmin/l-dev/mr1/sensors/master, sensors) [Maria Constantin]
eb8eec1 Mon May 11 15:16:33 2015 +0300 | sens : add poll with params feature for time or event orientated polling [Razvan Stamate]
0aa1bbb Thu Apr 23 16:27:12 2015 +0300 | sens : add poll_stop function to stop the polling output stream [Razvan Stamate]
git diff --stat origin/android/l/mr1/master..HEAD:
sens.c | 122 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 116 insertions(+), 6 deletions(-)
Change-Id: I6e3ee7f8e4d4c2e4873a44279db85aae864e8fae
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Maria Constantin [Fri, 29 May 2015 12:05:40 +0000 (15:05 +0300)]
sens: add check_sample_rate function to verify if events frequency exceeds some rate per second
Allows passing the rate as parameter to the check_sample_rate method.
Starts polling for one second or until a number of events, equal with the
rate, is reached. Finally, verifies if the rate of events per second is
reached (if it is true, will print "test passed", otherwise will print
"test failed")
ex: sens check_sample_rate 100
Will print "test passed" if the number of events in 1 second exceeds 100,
otherwise will print "test failed".
Change-Id: Ic84e9fe13a577435bf55304b0aecafdd83b00f47
Signed-off-by: Maria Constantin <maria.p.constantin@intel.com>
Razvan Stamate [Mon, 11 May 2015 12:16:33 +0000 (15:16 +0300)]
sens : add poll with params feature for time or event orientated polling
Allows passing time and event number as parameters to the poll
method so that the polling will gracefully stop after an event exceeds
the targeted value or the timestamp exceeds the time allocated.
ex: sens poll
1000000000 22
Will print the number of events in 1 second or 22 events
Prints time remaining for the time orientated poll functions.
Change-Id: I77df6d9a0b6d35c5250747c1d149577894961a8e
Signed-off-by: Razvan Stamate <razvan.c.stamate@intel.com>
Signed-off-by: Maria Constantin <maria.p.constantin@intel.com>
Razvan Stamate [Thu, 23 Apr 2015 13:27:12 +0000 (16:27 +0300)]
sens : add poll_stop function to stop the polling output stream
Change-Id: Id332d8db8dda0098f422835e6e7c246933a44cf3
Signed-off-by: Razvan Stamate <razvan.c.stamate@intel.com>
Viorel Suman [Thu, 28 May 2015 12:26:30 +0000 (15:26 +0300)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/mr1/sensors/master' into v-master
git log --pretty=format:"%h %ad | %s%d [%an]" origin/abt/topic/gmin/l-dev/mr1/master..origin/abt/topic/gmin/l-dev/mr1/sensors/master:
c02faee Tue May 26 16:26:34 2015 +0300 | Enforce frequency setup for distinct hr trigger and sensor rates (origin/abt/topic/gmin/l-dev/mr1/sensors/master, m/abt/topic/gmin/l-dev/mr1/master, v1) [Viorel Suman]
6365d95 Fri May 29 10:57:17 2015 +0300 | Remove superfluous assignment [Adriana Reus]
git diff --stat origin/abt/topic/gmin/l-dev/mr1/master..HEAD:
control.c | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
Change-Id: If1abe320166c7d4cc77b8547dbe5cdf4a5a84642
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Viorel Suman [Tue, 26 May 2015 13:26:34 +0000 (16:26 +0300)]
Enforce frequency setup for distinct hr trigger and sensor rates
We need to enforce frequency update when current
software trigger rate and current sensor sampling rate
are different.
Change-Id: I951b7b68ffda888d51203f9f719e66ddf4d94eb4
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Adriana Reus [Fri, 29 May 2015 07:57:17 +0000 (10:57 +0300)]
Remove superfluous assignment
Change-Id: I47d9a71321485c4a141883e7f05e398614bd5c47
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Viorel Suman [Wed, 27 May 2015 13:38:06 +0000 (16:38 +0300)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/mr1/sensors/master' into v-master
git log --pretty=format:"%h %ad | %s%d [%an]" origin/abt/topic/gmin/l-dev/mr1/master..origin/abt/topic/gmin/l-dev/mr1/sensors/master:
6bfb9a8 Tue May 26 15:29:10 2015 +0300 | Increase the tolerance interval for Sofia StMicro gyro (origin/abt/topic/gmin/l-dev/mr1/sensors/master, m/abt/topic/gmin/l-dev/mr1/master, v-rebase) [Viorel Suman]
cea652e Tue May 26 15:21:33 2015 +0300 | Fix "hr" trigger index [Viorel Suman]
git diff --stat origin/abt/topic/gmin/l-dev/mr1/master..HEAD:
control.c | 2 +-
enumeration.c | 8 +++++---
2 files changed, 6 insertions(+), 4 deletions(-)
Change-Id: I256f8a46d6f275c959e4d22d4ce504df9c047cd9
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Viorel Suman [Tue, 26 May 2015 12:29:10 +0000 (15:29 +0300)]
Increase the tolerance interval for Sofia StMicro gyro
For Sofia StMicro gyro "95Hz" frequency option round error
goes to "0.0025", so increase the tolerance interval to +-0.01Hz;
Change-Id: I9413f9b833027657b07efa34e4f3909a268520d6
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Viorel Suman [Tue, 26 May 2015 12:21:33 +0000 (15:21 +0300)]
Fix "hr" trigger index
The current code uses the same "hr" trigger index thus
sampling frequency is changed for wrong "hr" trigger when
several sensors having own "hr" triggers are enabled.
Increase the "hr" trigger index in order to point to the
proper trigger when hr trigger sampling_frequency is changed.
Change-Id: I65558d765f7468bbcfd7d20c69c34cfbb9a6d4b9
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Viorel Suman [Wed, 20 May 2015 09:41:49 +0000 (12:41 +0300)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/mr1/sensors/master' into v-master
git log --pretty=format:"%h %ad | %s%d [%an]" origin/abt/topic/gmin/l-dev/mr1/master..origin/abt/topic/gmin/l-dev/mr1/sensors/master:
805aeba Wed May 20 15:58:02 2015 +0300 | Magnetometer: Convert Gauss to uT in the case of sensors exposing input path also. (origin/abt/topic/gmin/l-dev/mr1/sensors/master, m/abt/topic/gmin/l-dev/mr1/master, v0) [Adriana Reus]
980e611 Fri May 15 10:51:17 2015 +0200 | GMINL-8061: Disregard the 100 Hz floor rate for polling BMG160 [Patrick Porlan]
git diff --stat origin/abt/topic/gmin/l-dev/mr1/master..HEAD:
description.c | 53 ++++++++++++++++++++++++++++++++---------------------
transform.c | 5 ++++-
2 files changed, 36 insertions(+), 22 deletions(-)
Change-Id: I04614fe52a515e7b897d4ea90c96676b03fb8ee0
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Adriana Reus [Wed, 20 May 2015 12:58:02 +0000 (15:58 +0300)]
Magnetometer: Convert Gauss to uT in the case of sensors exposing input path also.
It seems the Gauss to uT conversion wasn't done in the case where we have input
paths for magnetometers.
Change-Id: I9c89004d18dff47ee0c2d75df744290c901dc226
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Patrick Porlan [Fri, 15 May 2015 08:51:17 +0000 (10:51 +0200)]
GMINL-8061: Disregard the 100 Hz floor rate for polling BMG160
We don't need to respect the list of supported sampling rates when
we are not relying on the trigger to send us samples.
Also, there is no relation between the minimum rate that we can
activate on a sensor and the minimum rate that we should support
according to the CDD. That specific one tells that the chip ought
to support at least N Hz if requested to do so, not that we should
drive it at this frequency always.
Change-Id: I3007e8c1a16765e04ccc2865c5187ec7cfbed26d
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Viorel Suman [Fri, 15 May 2015 11:14:01 +0000 (14:14 +0300)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/mr1/sensors/master' into v-master
git log --pretty=format:"%h %ad | %s%d [%an]" origin/abt/topic/gmin/l-dev/mr1/master..origin/abt/topic/gmin/l-dev/mr1/sensors/master:
7898225 Thu May 14 13:30:28 2015 +0300 | hrtimer: Use the new IIO hrtimer interface (origin/abt/topic/gmin/l-dev/mr1/sensors/master, v0) [Adriana Reus]
git diff --stat origin/abt/topic/gmin/l-dev/mr1/master..HEAD:
common.h | 4 +++-
control.c | 4 +++-
enumeration.c | 11 +++++++----
3 files changed, 13 insertions(+), 6 deletions(-)
Change-Id: I11a366f27af724920a23423b1de640539840e080
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Adriana Reus [Thu, 14 May 2015 10:30:28 +0000 (13:30 +0300)]
hrtimer: Use the new IIO hrtimer interface
After commit
bca4c7102b5 ("iio: hrtimer: Move sampling_frequency to trigger dir")
the IIO trigger interface moved the sampling_frequency attribute from:
/config/triggers/hrtimer-instanceX/sampling_frequency/
to
/sys/bus/iio/devices/triggerX/sampling_frequency
Change-Id: I0979568102f1f6e3190b84caa507aac67b04fabc
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Viorel Suman [Tue, 12 May 2015 09:08:24 +0000 (12:08 +0300)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/mr1/sensors/master' into v-master
git log --pretty=format:"%h %ad | %s%d [%an]" origin/abt/topic/gmin/l-dev/mr1/master..origin/abt/topic/gmin/l-dev/mr1/sensors/master:
3531d19 Tue Feb 3 14:48:11 2015 +0200 | Enable Gauss-2-uT conversion for interrupt mode magneto (origin/abt/topic/gmin/l-dev/mr1/sensors/master, m/abt/topic/gmin/l-dev/mr1/master, refs/published/v0, v0) [Viorel Suman]
7b6c078 Fri May 1 12:16:34 2015 +0300 | Add support for using a hrtimer trigger. [Adriana Reus]
git diff --stat origin/abt/topic/gmin/l-dev/mr1/master..HEAD:
common.h | 3 +++
control.c | 12 +++++++++++-
description.c | 3 +++
description.h | 1 +
enumeration.c | 44 ++++++++++++++++++++++++++++++++++++++++++--
transform.c | 11 +++++++----
6 files changed, 67 insertions(+), 7 deletions(-)
Change-Id: I9515c83c7c38f327986125a1a39e73ed40957305
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Viorel Suman [Tue, 3 Feb 2015 12:48:11 +0000 (14:48 +0200)]
Enable Gauss-2-uT conversion for interrupt mode magneto
Fix enables the Gauss-2-uT conversion for
magnetometers working in interrupt mode.
Change-Id: Icbcd19b38601991209a858136297318e94c01176
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Adriana Reus [Fri, 1 May 2015 09:16:34 +0000 (12:16 +0300)]
Add support for using a hrtimer trigger.
Add support for creating and using a hrtimer trigger
when we do not find any other suitable trigger exposed.
This may happen if for example we lack the appropriate interrupt
line for a platform.
We specify a "hrtimer" quirk to signal we allow creating one
for opne particular sensor. WE may not want this by default because
there are sensor drivers that do not specifically expose a trigger but
work if the traditional "-dev%d" one is setup.
Change-Id: I0c8a1f6c55b5258330370dc1ac77f8f6dae598cb
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Adriana Reus [Fri, 24 Apr 2015 12:17:54 +0000 (15:17 +0300)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/mr1/sensors/master' into mr1
git log --pretty=format:"%h %ad | %s%d [%an]" origin/abt/topic/gmin/l-dev/mr1/master..origin/abt/topic/gmin/l-dev/mr1/sensors/master:
cd36e6b Sun Apr 19 16:20:16 2015 -0700 | Add support for IIO mounting_matrix (origin/abt/topic/gmin/l-dev/mr1/sensors/master, m/abt/topic/gmin/l-dev/mr1/master, rebase, new, clean) [Octavian Purdila]
git diff --stat origin/abt/topic/gmin/l-dev/mr1/master..HEAD:
common.h | 7 +++++++
description.c | 35 +++++++++++++++++++++++++++++++++++
description.h | 2 ++
enumeration.c | 7 +++++--
transform.c | 13 +++++++++++++
5 files changed, 62 insertions(+), 2 deletions(-)
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-8497
Change-Id: I75abd86bb62a9901a85eccf192c015041aee55ac
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Octavian Purdila [Sun, 19 Apr 2015 23:20:16 +0000 (16:20 -0700)]
Add support for IIO mounting_matrix
The IIO mounting_matrix attribute offers information about the way the
sensor was mounted on the PCB. This patch reads this information and
uses it to correct the sample data.
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-8150
Change-Id: I3f60bfc13db1c1e305aa4456eb409db446c43bda
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Adriana Reus [Fri, 17 Apr 2015 12:58:39 +0000 (15:58 +0300)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/mr1/sensors/master' into mr1
git log --pretty=format:"%h %ad | %s%d [%an]" origin/abt/topic/gmin/l-dev/mr1/master..origin/abt/topic/gmin/l-dev/mr1/sensors/master:
f233632 Thu Apr 16 12:44:36 2015 +0300 | Add "shorthand" field to sensor_catalog (origin/abt/topic/gmin/l-dev/mr1/sensors/master) [Adriana Reus]
69ead50 Thu Apr 16 15:25:14 2015 +0300 | Clamp high proximity values to 1m [Adriana Reus]
git diff --stat origin/abt/topic/gmin/l-dev/mr1/master..HEAD:
common.h | 1 +
description.c | 11 +++++++++++
enumeration.c | 14 ++++++++++++++
transform.c | 17 ++++++++++++++---
4 files changed, 40 insertions(+), 3 deletions(-)
Change-Id: I4d533f572ade8cc366ef8be6fe8f5911c629df66
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Adriana Reus [Thu, 16 Apr 2015 09:44:36 +0000 (12:44 +0300)]
Add "shorthand" field to sensor_catalog
In case the property gets too long for a specific sensor,
example ro.iio.proximity.somesensorname.resolution, we may want
to use a shorthand instead or the entire prefix. For example:
"prox" instead of "proximity".
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-8217
Change-Id: I65460e3a57f936107236f807ae596a62abd15676
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Adriana Reus [Thu, 16 Apr 2015 12:25:14 +0000 (15:25 +0300)]
Clamp high proximity values to 1m
See iio spec for in_proximity* - depending on the device
this value is either in meters either unit-less and cannot
be translated to SI units. Where the translation is not possible
lower values indicate something is close and higher ones indicate distance.
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-8221
Change-Id: Ic88ff54692c3b0983aa46afe35498c83f7955e3a
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Adriana Reus [Wed, 15 Apr 2015 15:20:21 +0000 (18:20 +0300)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/mr1/sensors/master' into mr1
git log --pretty=format:"%h %ad | %s%d [%an]" origin/abt/topic/gmin/l-dev/mr1/master..origin/abt/topic/gmin/l-dev/mr1/sensors/master:
580f18a Tue Apr 14 14:21:58 2015 +0200 | GMINL-7944: Ignore ALS intensity if illuminance is available (origin/abt/topic/gmin/l-dev/mr1/sensors/master) [Patrick Porlan]
3068a36 Fri Apr 10 19:06:05 2015 +0200 | GMINL-7944: Introduce internal sensor types for ALS [Patrick Porlan]
823fab6 Mon Apr 13 17:05:17 2015 +0200 | GMINL-7944: Add quirks for disabling data acquisition methods [Patrick Porlan]
git diff --stat origin/abt/topic/gmin/l-dev/mr1/master..HEAD:
control.c | 9 ++++--
description.c | 17 ++++++++---
description.h | 5 +++-
enumeration.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++-----------
enumeration.h | 7 +++++
iio-sensors.txt | 3 ++
transform.c | 7 +++--
7 files changed, 112 insertions(+), 27 deletions(-)
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-8153
Change-Id: Ib7e6716884376698a91b3782e4fba94a9a1c9ded
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Patrick Porlan [Tue, 14 Apr 2015 12:21:58 +0000 (14:21 +0200)]
GMINL-7944: Ignore ALS intensity if illuminance is available
ALS drivers are increasing in sophistication and are now exposing
a variety of values, that we don't want to expose as different
sensors. Add arbitration code that will prioritize illuminance over
intensity.
Change-Id: I52fc3fb3e11be08ec62488a86bab7c04d06946f6
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Fri, 10 Apr 2015 17:06:05 +0000 (19:06 +0200)]
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>
Patrick Porlan [Mon, 13 Apr 2015 15:05:17 +0000 (17:05 +0200)]
GMINL-7944: Add quirks for disabling data acquisition methods
The current LTR-301 ALS driver is not exposing any events, but
expose channels, so we try to use it in trigger mode, only to
fail because it's not exposing any trigger name and doesn't
accept the default one (at least on ECS 10 edu, since no data
ready line is allocated). So let's force it to polling for now.
Change-Id: I910e0e52ebba536b81b0071dc9a201d11b846b35
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Adriana Reus [Sat, 11 Apr 2015 15:03:15 +0000 (18:03 +0300)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/mr1/sensors/master'
git log --pretty=format:"%h %ad | %s%d [%an]" origin/abt/topic/gmin/l-dev/mr1/master..origin/abt/topic/gmin/l-dev/mr1/sensors/master:
3c0ce56 Tue Apr 7 13:22:06 2015 +0300 | clean-up: minor formatting tweak (origin/abt/topic/gmin/l-dev/sensors/master, origin/abt/topic/gmin/l-dev/mr1/sensors/master, m/abt/topic/gmin/l-dev/mr1/master, sens, rebase, mytopic) [Adriana Reus]
git diff --stat origin/abt/topic/gmin/l-dev/mr1/master..HEAD:
enumeration.c | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-8023
Change-Id: Ifbb937dda4f35888f1a2cf22ab78a6d9f26be7af
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Adriana Reus [Tue, 7 Apr 2015 10:22:06 +0000 (13:22 +0300)]
clean-up: minor formatting tweak
Change-Id: I01a56ae70f05fe6f5e6da3f0faf58dfbb1c2bbbb
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Adriana Reus [Tue, 7 Apr 2015 11:08:34 +0000 (14:08 +0300)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/sensors/master' into l-dev/mr1/master
git log --pretty=format:"%h %ad | %s%d [%an]" origin/abt/topic/gmin/l-dev/mr1/master..origin/abt/topic/gmin/l-dev/sensors/master:
ef3a026 Fri Apr 3 18:30:17 2015 +0300 | include events.h instead of copying the defines (origin/abt/topic/gmin/l-dev/sensors/master, m/abt/topic/gmin/l-dev/master, newbranch) [Adriana Reus]
git diff --stat origin/abt/topic/gmin/l-dev/mr1/master..HEAD:
activity_event_entry.c | 1 +
common.h | 99 --------------------------------------------------
control.c | 2 +-
3 files changed, 2 insertions(+), 100 deletions(-)
Change-Id: I578ab4914c2e356c83f305fada95832ed29a7373
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Adriana Reus [Fri, 3 Apr 2015 15:30:17 +0000 (18:30 +0300)]
include events.h instead of copying the defines
Protex Ip is unhappy about GPL code in this component.
Depends-Change-Id: I1a875bd0571eda6886bba8f45804f9dcbe271015
Change-Id: I7901239eff3cb14795f187c79520b4d7814bc752
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Viorel Suman [Thu, 19 Mar 2015 11:44:25 +0000 (13:44 +0200)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/sensors/master' into mr1
git log --pretty=format:"%h %ad | %s%d [%an]" origin/abt/topic/gmin/l-dev/mr1/master..origin/abt/topic/gmin/l-dev/sensors/master:
6aafc79 Tue Mar 17 09:34:57 2015 +0100 | Add support for proximity sensor supporting events. (origin/abt/topic/gmin/l-dev/sensors/master, m/abt/topic/gmin/l-dev/master, s-new) [Adriana]
git diff --stat origin/abt/topic/gmin/l-dev/mr1/master..HEAD:
common.h | 2 +-
control.c | 15 ++++++++++++++-
enumeration.c | 36 ++++++++++++++++++++++++++++++++++++
3 files changed, 51 insertions(+), 2 deletions(-)
Change-Id: If8d3b238ff43d81f123f499b6f6c197ba5a5f694
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Adriana [Tue, 17 Mar 2015 08:34:57 +0000 (09:34 +0100)]
Add support for proximity sensor supporting events.
Added a new entry for a new event-based proximity sensor.
This is mostly targeted at the sofia sx9300 which exposes 4 channels
of different sensitivity levels.
Added handling of rising/falling events.
Change-Id: Ifd77a897a1a31092af09a8a29bb6df738d69b11b
Signed-off-by: Adriana <adriana.reus@intel.com>
Viorel Suman [Tue, 17 Mar 2015 13:05:58 +0000 (15:05 +0200)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/sensors/master' into mr1
git log --pretty=format:"%h %ad | %s%d [%an]" origin/abt/topic/gmin/l-dev/mr1/master..origin/abt/topic/gmin/l-dev/sensors/master:
a65a6ef Mon Mar 16 16:02:22 2015 +0100 | Use snprintf instead of sprintf (origin/abt/topic/gmin/l-dev/sensors/master, m/abt/topic/gmin/l-dev/master, v0) [Adriana]
git diff --stat origin/abt/topic/gmin/l-dev/mr1/master..HEAD:
description.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Change-Id: I468c88c975eb52371fd18c29107e95f1e19ad633
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Adriana [Mon, 16 Mar 2015 15:02:22 +0000 (16:02 +0100)]
Use snprintf instead of sprintf
Android has PROP_MAX_NAME defined to 32.
We'll truncate if we get past that.
Change-Id: I4d7e4637429cd71242a345e8af07a72e2ee87475
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Adriana Reus [Wed, 11 Mar 2015 11:29:04 +0000 (13:29 +0200)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/sensors/master' into gmin/l-dev/mr1/master
git log --pretty=format:"%h %ad | %s%d [%an]" origin/abt/topic/gmin/l-dev/mr1/master..origin/abt/topic/gmin/l-dev/sensors/master:
81202ad Thu Mar 5 16:56:27 2015 +0100 | Create some documentation for the iio sensors HAL component (origin/abt/topic/gmin/l-dev/sensors/master, m/abt/topic/gmin/l-dev/master, rebase) [Patrick Porlan]
d08bfa3 Fri Mar 6 14:22:49 2015 +0200 | Activity recognition lib name fix [Viorel Suman]
6e03c92 Wed Mar 4 09:57:38 2015 +0100 | Fix potentially improper fd usage [Patrick Porlan]
87a01bc Wed Mar 4 09:54:20 2015 +0100 | Looks like I inverted the parameters of a memset call [Patrick Porlan]
4430ef6 Tue Mar 3 15:30:28 2015 +0100 | Replace the USE_INTEL_SENSOR_HAL tag by USE_IIO_SENSOR_HAL for iio [Patrick Porlan]
5eddd1a Mon Mar 2 12:22:13 2015 +0100 | Add an informative trace about sensor activation time [Patrick Porlan]
5c2f795 Mon Mar 2 18:13:44 2015 +0200 | spring cleanup: Unify calibration parameters. [Adriana Reus]
53b3fe2 Mon Mar 2 17:45:05 2015 +0200 | Add quirk for passing timestamps [Adriana Reus]
6efc469 Tue Feb 24 17:49:18 2015 +0200 | Add version number to calibration data [Adriana Reus]
git diff --stat origin/abt/topic/gmin/l-dev/mr1/master..HEAD:
Android.mk | 6 +-
Makefile | 10 +-
accel-calibration.c | 9 +-
calibration.h | 12 +--
compass-calibration.c | 37 ++++---
control.c | 16 +--
description.c | 3 +
description.h | 1 +
entry.c | 20 +++-
gyro-calibration.c | 31 +++---
iio-sensors.txt | 274 ++++++++++++++++++++++++++++++++++++++++++++++++++
transform.c | 4 +-
12 files changed, 367 insertions(+), 56 deletions(-)
Change-Id: I32297be5553cfc3f43c51f8627d36df264113d32
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Tracked-by: https://jira01.devtools.intel.com/browse/GMINL-6920
Patrick Porlan [Thu, 5 Mar 2015 15:56:27 +0000 (16:56 +0100)]
Create some documentation for the iio sensors HAL component
That's a first draft.
Change-Id: I07a69d7b11c9909349722d78bd04b58d1bcfb12b
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Viorel Suman [Fri, 6 Mar 2015 12:22:49 +0000 (14:22 +0200)]
Activity recognition lib name fix
The patch fixes the activity recognition library name.
Change-Id: I3522de55dd444bbe3051966bdc499bd41b9896f3
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Patrick Porlan [Wed, 4 Mar 2015 08:57:38 +0000 (09:57 +0100)]
Fix potentially improper fd usage
Check for -1 after open
Change-Id: Icd29828a05f32155bc1a58432492976d5a6ad70b
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Wed, 4 Mar 2015 08:54:20 +0000 (09:54 +0100)]
Looks like I inverted the parameters of a memset call
I blame the Palm OS MemSet call for confusing me.
Change-Id: Id66b8c92d2367ac8a6f3190b8a077f5ed3eb674a
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Tue, 3 Mar 2015 14:30:28 +0000 (15:30 +0100)]
Replace the USE_INTEL_SENSOR_HAL tag by USE_IIO_SENSOR_HAL for iio
That avoids a namespace clash with the Intel Sensor Hub (CHT/BXT) HAL.
Change-Id: I4a6b4045ce7553029eba71c24783242f18f09901
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Mon, 2 Mar 2015 11:22:13 +0000 (12:22 +0100)]
Add an informative trace about sensor activation time
We have issues related to the time it takes to enable sensors
on certain hardware, so measure and print out this delay.
Change-Id: I02fc9dabb4219b3ba31674a644a5018c2d8ada3a
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Adriana Reus [Mon, 2 Mar 2015 16:13:44 +0000 (18:13 +0200)]
spring cleanup: Unify calibration parameters.
Change-Id: I96d4486407cb3575a2ca8f78b8846ad2bf9e2d71
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Adriana Reus [Mon, 2 Mar 2015 15:45:05 +0000 (17:45 +0200)]
Add quirk for passing timestamps
I'd like to pass the timestamps we get from the iio channel unmodified
and without covering up potential issues. As much as possible.
Change-Id: I12303cec2d333638ef037dbf9c95318c0ec5461e
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Adriana Reus [Tue, 24 Feb 2015 15:49:18 +0000 (17:49 +0200)]
Add version number to calibration data
Match the calibration data to the hal algorithm version
in case we change calibration code and push ota updates,
we want to make sure we don't use outdated data for biases.
Change-Id: I7e0802d315ad5ef29bc10f9cd40294fa0e40c2bb
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Adriana Reus [Fri, 27 Feb 2015 16:53:41 +0000 (18:53 +0200)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/sensors/master' into gmin/l-dev/master
44c2da6 Fri Feb 13 16:18:32 2015 +0100 | Experimental accelerometer calibration routine (origin/abt/topic/gmin/l-dev/sensors/master, m/abt/topic/gmin/l-dev/master, smth) [Patrick Po
89f2b9b Fri Feb 13 16:08:58 2015 +0100 | Fix type of recently introduced semi arbitrated sampling rate [Patrick Porlan]
d8886bb Tue Feb 10 18:50:43 2015 +0200 | [Activity HAL] Added activity HAL source files [Cristina Ciocan]
438c034 Thu Feb 12 15:35:39 2015 +0200 | [Activity HAL] Separation of common macros [Cristina Ciocan]
549f546 Tue Feb 10 18:32:31 2015 +0200 | [Activity HAL] Separation of common code [Cristina Ciocan]
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-6535
Change-Id: Ia81a834dba679c6da6e01de071415dc743b30d1b
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Patrick Porlan [Fri, 13 Feb 2015 15:18:32 +0000 (16:18 +0100)]
Experimental accelerometer calibration routine
Only activated if quirk=biased is specified.
Change-Id: Ie8faa11c62ba0d58e5529de4209e49a19075d4e6
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Reviewed-on: https://android.intel.com:443/332405
Patrick Porlan [Fri, 13 Feb 2015 15:08:58 +0000 (16:08 +0100)]
Fix type of recently introduced semi arbitrated sampling rate
Sammpling rates are not necessarily integers. Sure, they are in
the case of the MPU-6050, which is fortunately the only chip we
support at the moment with several interrupt driven sensors on
the same iio device, so this is not an issue for now, but still.
Change-Id: Id3fb9a9fb2c6fc2ae032f6484088f14a99e75670
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Cristina Ciocan [Tue, 10 Feb 2015 16:50:43 +0000 (18:50 +0200)]
[Activity HAL] Added activity HAL source files
The activity_event_entry file is the implementation of the activity recognition
HAL, as described in hardware/libhardware/include/hardware/activity_recognition.h .
In order to test the HAL, run the activity test program. Running activity
without parameters will list a summary of the program usage.
Change-Id: I1717c3882340ec40016f303880e55b0b9bba45f8
Signed-off-by: Cristina Ciocan <cristina.ciocan@intel.com>
Reviewed-on: https://android.intel.com:443/331750
Cristina Ciocan [Thu, 12 Feb 2015 13:35:39 +0000 (15:35 +0200)]
[Activity HAL] Separation of common macros
Moved in common.h all the DECLARE_* macros needed to define sensor catalog
entry, since we will be needing it in activity HAL's catalog as well.
Change-Id: I435d0a968980e6eb5e8414ddcf1b60f19476b894
Signed-off-by: Cristina Ciocan <cristina.ciocan@intel.com>
Reviewed-on: https://android.intel.com:443/331749
Cristina Ciocan [Tue, 10 Feb 2015 16:32:31 +0000 (18:32 +0200)]
[Activity HAL] Separation of common code
Separated in common-enumeration source file functions that participate both in
activity HAL discovery and in the sensor HAL discovery of event mode sensors.
Change-Id: I7578e2a5708b870269166f43ab9341a6f983b5a9
Signed-off-by: Cristina Ciocan <cristina.ciocan@intel.com>
Reviewed-on: https://android.intel.com:443/331748
Thierry Escande [Wed, 25 Feb 2015 13:01:18 +0000 (14:01 +0100)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/autodetect/master' into autodetect-merge-
20150225
git log --pretty=format:"%h %ad | %s%d [%an]" origin/abt/topic/gmin/l-dev/master..origin/abt/topic/gmin/l-dev/autodetect/master:
875a964 Tue Feb 24 18:00:30 2015 +0100 | Fix LOCAL_MODULE for auto-detected targets (origin/abt/topic/gmin/l-dev/autodetect/master, m/abt/topic/gmin/l-dev/art/master) [Thierry Escande]
git diff --stat origin/abt/topic/gmin/l-dev/master..origin/abt/topic/gmin/l-dev/autodetect/master:
Android.mk | 4 ++++
1 file changed, 4 insertions(+)
Change-Id: Iadd5af67100a54cb5935d019ea31b078afb19e18
Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com>
Thierry Escande [Tue, 24 Feb 2015 17:00:30 +0000 (18:00 +0100)]
Fix LOCAL_MODULE for auto-detected targets
On GMINL, the iio sensor HAL is named sensors-$(TARGET_BOARD_PLATFORM).
For coho targets with auto-detection enabled, this HAL name does not
match the existing sensor records since they are not platform
dependent.
As in IRDA, the iio sensor HAL module name will be iio-sensors-hal.so
if auto-detection is enabled.
Issue: GMINL-6376
Change-Id: I83e09e9422b3e38edf5485aec6622214850e8247
Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com>
Viorel Suman [Wed, 18 Feb 2015 13:54:49 +0000 (15:54 +0200)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/sensors/master' into gmin/l-dev/master
git log --pretty=format:"%h %ad | %s%d [%an]" origin/abt/topic/gmin/l-dev/master..origin/abt/topic/gmin/l-dev/sensors/master:
1616deb Tue Feb 17 15:20:13 2015 +0200 | [REVERTME] Revert "Pass iio provided timestamps without further processing." (origin/abt/topic/gmin/l-dev/sensors/master) [Constantin Musca]
git diff --stat origin/abt/topic/gmin/l-dev/master..HEAD:
control.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-6164
Change-Id: Ib5ab0a147dcf5dc89875f2be739fad54ca52b02e
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Constantin Musca [Tue, 17 Feb 2015 13:20:13 +0000 (15:20 +0200)]
[REVERTME] Revert "Pass iio provided timestamps without further processing."
Interrupts (events) are missed by the bmc150-accel & bmg160 drivers because it takes
too long to read from i2c. This might be caused by having three sensors on the same bus.
Process the timestamps in the HAL in order to make the CTSVerifier tests pass.
This commit reverts
58eef71e4b886632a7d51a6602fe8ef43b779d08 and it should be
reverted once the kernel problem is fixed.
Change-Id: Ieddd1e30253b9a79089740ca6a36e49b51c07d19
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-6031
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-6032
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-6033
Tracked-By: https://jira01.devtools.intel.com/browse/GMINL-4337
Signed-off-by: Constantin Musca <constantin.musca@intel.com>
Adriana Reus [Wed, 11 Feb 2015 11:59:31 +0000 (13:59 +0200)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/sensors/master' into gmin/l-dev/master
git log --pretty=format:"%h %ad | %s%d [%an]" m/abt/topic/gmin/l-dev/master..origin/abt/topic/gmin/l-dev/sensors/master:
80da20e Wed Feb 11 10:46:13 2015 +0100 | Lower MAX_EVENTS constant to save a little bit of RAM (origin/abt/topic/gmin/l-dev/sensors/master) [Patrick Porlan]
a80f4c9 Wed Feb 11 10:40:36 2015 +0100 | IRDA-3621: Fix a bug where accel and gyro get stuck at 200 Hz [Patrick Porlan]
5a6ab39 Wed Feb 11 10:20:10 2015 +0100 | Fix a warning [Patrick Porlan]
848c708 Tue Feb 10 10:33:11 2015 +0200 | Get max frequency from property if it's present. [Adriana Reus]
115f76c Mon Feb 9 18:52:24 2015 +0200 | Checking raw and input paths on enumeration [Viorel Suman]
9b8b896 Fri Feb 6 14:16:13 2015 +0200 | Utils review - numerical write functions [Viorel Suman]
8c85d63 Fri Feb 6 15:47:51 2015 +0200 | Utils review - numerical read functions [Viorel Suman]
9ef803b Fri Feb 6 11:20:47 2015 +0200 | Utils review - string read/write functions [Viorel Suman]
7953db2 Fri Feb 6 11:14:09 2015 +0200 | Utils review - introducing base read and write functions [Viorel Suman]
58eef71 Thu Feb 5 17:40:17 2015 +0200 | Pass iio provided timestamps without further processing. [Adriana Reus]
eb4520a Fri Feb 6 15:14:07 2015 +0100 | Unbreak branch [Patrick Porlan]
8c426f3 Fri Feb 6 14:43:06 2015 +0100 | Bulk-extend copyright headers to 2015 [Patrick Porlan]
93ec5a9 Tue Feb 3 18:13:03 2015 +0200 | iio-sensors: Add suport for STEP_DETECTOR sensor [Daniel Baluta]
7dd11cd Thu Jan 29 14:16:26 2015 +0200 | iio-sensors: Add infrastructure for IIO events [Daniel Baluta]
66e79fc Thu Jan 29 12:20:33 2015 +0200 | iio-sensors: Add support for STEP_COUNTER sensor [Daniel Baluta]
df5e4c7 Wed Jan 28 12:03:09 2015 +0200 | iio-sensors: Add sensor mode parameter [Daniel Baluta]
c4b636d Thu Dec 11 15:57:32 2014 +0200 | iio-sensors: Refactor sensor_catalog definition [Daniel Baluta]
69c468d Tue Jan 27 18:23:57 2015 +0200 | enumeration: Refactor discover sensors code [Daniel Baluta]
13789af Thu Oct 9 17:05:50 2014 +0300 | iio-sensors: Fix build warnings [Irina Tirdea]
5182797 Thu Oct 9 16:49:56 2014 +0300 | sens: enable build warnings [Irina Tirdea]
git diff --stat m/abt/topic/gmin/l-dev/master..HEAD:
Android.mk | 2 +-
Makefile | 2 +-
calibration.h | 2 +-
common.h | 48 +++++++-
compass-calibration.c | 2 +-
control.c | 257 +++++++++++++++++++++++++++++++++--------
control.h | 2 +-
description.c | 25 ++--
description.h | 2 +-
entry.c | 2 +-
enumeration.c | 284 +++++++++++++++++++++++++++++++++++-----------
enumeration.h | 74 ++++--------
filtering.c | 5 +-
filtering.h | 2 +-
gyro-calibration.c | 5 +-
linux/cutils/properties.h | 2 +-
linux/log.c | 2 +-
linux/utils/Atomic.h | 2 +-
linux/utils/Log.h | 2 +-
matrix-ops.c | 2 +-
matrix-ops.h | 2 +-
sens.c | 6 +-
transform.c | 58 ++++++++--
transform.h | 5 +-
utils.c | 201 +++++++++++++-------------------
utils.h | 4 +-
26 files changed, 665 insertions(+), 335 deletions(-)
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-5919
Change-Id: I646d5c0acdabaeef46287e8487b439431985694a
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Patrick Porlan [Wed, 11 Feb 2015 09:46:13 +0000 (10:46 +0100)]
Lower MAX_EVENTS constant to save a little bit of RAM
As of today none of the supported sensor types requires more
than two events ; let's adjust this constant down, as it can
easily be bumped up whenever we add support for more complex
sensor types.
Change-Id: I4916717aed5cd8cc0db6ef58bc703c6251965b27
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Wed, 11 Feb 2015 09:40:36 +0000 (10:40 +0100)]
IRDA-3621: Fix a bug where accel and gyro get stuck at 200 Hz
This is happening on Malata because the MPU-6050 driver exposes
both the accel and gyro on the same iio device, with a single
frequency knob for both. With the current code the accel would
be bumped up to 200 Hz if the gyro was configured at 200 Hz, but
would not go back when a lower sampling rate was selected because
the accel would appear to require 200 Hz.
Change-Id: Ied0c1c94c278be180a22fd537f8e82f0e8f7adbd
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Wed, 11 Feb 2015 09:20:10 +0000 (10:20 +0100)]
Fix a warning
Change-Id: Ic4aa8c634509f481d265c4729e9aa36a1e97df75
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Adriana Reus [Tue, 10 Feb 2015 08:33:11 +0000 (10:33 +0200)]
Get max frequency from property if it's present.
If we have a poll mode sensor and we don't have a list of
available frequencies, check out if we have a value specified in
the "max_freq" property. If we don't fall back to the cdd values.
Fixes Cts Verifier fail.
Tracked-On: https://jira01.devtools.intel.com/browse/IRDA-3195
Change-Id: Idb718bc792a2fb11c9dd62a3b99c8ed11083545f
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Viorel Suman [Mon, 9 Feb 2015 16:52:24 +0000 (18:52 +0200)]
Checking raw and input paths on enumeration
Raw and input path checks introduced on enumeration
in order to avoid continuous reading of these files
while acquiring immediate values.
Change-Id: Ia5c4b21a3c6d95f2c99ef60f17fd3a4b968f0c82
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Viorel Suman [Fri, 6 Feb 2015 12:16:13 +0000 (14:16 +0200)]
Utils review - numerical write functions
Numerical write functions updated in order to use
the just introduced basic file write function.
Change-Id: Id77bef1501b4f988929b7b06f44a6c8f2387d354
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Viorel Suman [Fri, 6 Feb 2015 13:47:51 +0000 (15:47 +0200)]
Utils review - numerical read functions
All numerical read functions decomposed
into two phases - "read" phase and "convert" phase.
The "read" phase is same for all types, the only
difference is the type specific conversion function.
Change-Id: I6358d593e3804c2a00a0252f0c3bd0e18c67b9b9
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Viorel Suman [Fri, 6 Feb 2015 09:20:47 +0000 (11:20 +0200)]
Utils review - string read/write functions
String read/write functions updated in order to
use the just introduced basic file read and write
functions.
Change-Id: I56103f7ae01d66259177dd0acd29bc48261882c0
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Viorel Suman [Fri, 6 Feb 2015 09:14:09 +0000 (11:14 +0200)]
Utils review - introducing base read and write functions
The patch introduces the basic file read and write
functions that will be used lately by type specific
read and write functions.
Change-Id: Ib06d7ca9104d6f3111f6f8796acd58e6959dcaa1
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Adriana Reus [Thu, 5 Feb 2015 15:40:17 +0000 (17:40 +0200)]
Pass iio provided timestamps without further processing.
Change-Id: Iebcca183362929fdd189eeb6ffe82b44edc90b9e
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Patrick Porlan [Fri, 6 Feb 2015 14:14:07 +0000 (15:14 +0100)]
Unbreak branch
Change-Id: I36fa31bc870354ac6f727b4140b0e158e6cb04aa
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Fri, 6 Feb 2015 13:43:06 +0000 (14:43 +0100)]
Bulk-extend copyright headers to 2015
Change-Id: I22221862ce66c9c84260d83cc9f238f41efda0b0
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Daniel Baluta [Tue, 3 Feb 2015 16:13:03 +0000 (18:13 +0200)]
iio-sensors: Add suport for STEP_DETECTOR sensor
The step detector is a sensor that will trigger an event every
time the user takes a step. More information on the step detector
can be found in Google's documentation:
http://source.android.com/devices/sensors/composite_sensors.html#detector.
The iio interface for the step detector is available with commit
a88bfe785 ("iio: core: Introduce STEPS channel, ENABLE mask and INSTANCE
event") soon to be found in linux kernel 3.20. Also the interface is
documented under Documentation/ABI/testing/sysfs-bus-iio
This is how the interface should be used:
- to enable the step detector, we need to write 1 to events/in_steps_instance_en
- each time a step is detected, an iio event will be generated
- to disable the step detector, we need to write 0 to events/in_steps_instance_en
This patch adds support for the step counter in the HAL:
- add helper functions for iio events
- add support for the step detector sensor
Change-Id: I658b537773c6d9a1cafe3a47f3804034b358a125
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Daniel Baluta [Thu, 29 Jan 2015 12:16:26 +0000 (14:16 +0200)]
iio-sensors: Add infrastructure for IIO events
This introduces event_descriptor_t to represent an event.
Each channel can have multiple events attached.
Activating a sensor of type EVENT implies:
* retrieving associated event_fd file descriptor (see. IIO_GET_EVENT_FD_IOCTL)
* adding event_fd to the watched fds poll set
* enabling IIO event, usually writing 1 to iio:deviceX/events/in_<event_name>_en
Deactivation does the above operations in reverse order.
Change-Id: I305f28456b43ea8a662e49c2c3aa8febd0d7d84f
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Daniel Baluta [Thu, 29 Jan 2015 10:20:33 +0000 (12:20 +0200)]
iio-sensors: Add support for STEP_COUNTER sensor
The step counter is a sensor that will count using a hardware
register the number of steps taken by the user since the last
reboot while activated. More information on the step counter in
Android can be found in Google's documentation:
http://source.android.com/devices/sensors/composite_sensors.html#counter.
The iio interface for the step counter is available with commit
a88bfe785 ("iio: core: Introduce STEPS channel, ENABLE mask and INSTANCE
event") soon to be found in linux kernel 3.20. Also the interface is
documented under Documentation/ABI/testing/sysfs-bus-iio
This is how the interface should be used:
- to enable the step counter, we need to write 1 to in_steps_en
- the current number of steps can be read from in_steps_input
- to disable the step counter, we need to write 0 to in_steps_en
This patch adds support for the step counter in the HAL.
The main difference from the other sensors is that the data
returned by the step counter is uint64_t, while other sensors
return float. This patch adds support for uint64_t return values
and adds the STEP_COUNTER in the supported sensors list.
Change-Id: I21a1288a9bf5ea02ae12176d1853dcd71e714bc9
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Daniel Baluta [Wed, 28 Jan 2015 10:03:09 +0000 (12:03 +0200)]
iio-sensors: Add sensor mode parameter
Currently the difference between a polled and a triggered sensor
is done using sensor_info[s].is_polling. If this is 1, the sensor
is polled, otherwise it is triggered.
If we need to handle more sensor types (e.g. sensors based on iio
events), this mode of differentiation is no longer sufficient.
Add a mode field to indicate the usage mode of the sensor: polled
or triggered. This will be later extended with other types (e.g.
event).
Change-Id: I3a6914a87413e6c8eb662e44f21b91a681e0643a
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Daniel Baluta [Thu, 11 Dec 2014 13:57:32 +0000 (15:57 +0200)]
iio-sensors: Refactor sensor_catalog definition
Next patches will introduce event support to IIO sensor catalog.
Following the current approach that uses DECLARE_SENSOR_X for
a sensor with X channels, we will have to introduce a macro like
DECLARE_SENSOR_X_Y for a sensor with X channels, each channel having
Y events. But this isn't scalable!
So, instead of using macros for sensor catalog entries lets keep it
simple and use inline definition for each channel. The same will be
done for events.
Change-Id: I12ac7ba07a3115ae85f7ebab835a73fd738bace2
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Daniel Baluta [Tue, 27 Jan 2015 16:23:57 +0000 (18:23 +0200)]
enumeration: Refactor discover sensors code
The functions for discovering poll sensors (discover_poll_sensors)
and trigger sensors (discover_trig_sensors) contain duplicate
code. If more sensor types need to be discovered (e.g. event sensors),
this would add even more duplicate code.
Refactor these two functions to minimize code duplication.
Change-Id: I92ac6f8c6a54afbce5a3ffb45d4b011204e8c754
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Irina Tirdea [Thu, 9 Oct 2014 14:05:50 +0000 (17:05 +0300)]
iio-sensors: Fix build warnings
This patch fixed the following build warnings:
enumeration.c: In function ‘setup_trigger_names’:
enumeration.c:687:6: warning: unused variable ‘len’ [-Wunused-variable]
control.c: In function ‘start_acquisition_thread’:
control.c:560:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
control.c: In function ‘reapply_sampling_rates’:
control.c:846:18: warning: unused variable ‘user’ [-Wunused-variable]
control.c: In function ‘sensor_poll’:
control.c:1348:6: warning: unused variable ‘uncal_start’ [-Wunused-variable]
gyro-calibration.c: In function ‘gyro_cal_init’:
gyro-calibration.c:33:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
filtering.c: In function ‘denoise_median’:
filtering.c:111:8: warning: unused variable ‘scale’ [-Wunused-variable]
filtering.c:110:14: warning: unused variable ‘z’ [-Wunused-variable]
filtering.c:110:11: warning: unused variable ‘y’ [-Wunused-variable]
filtering.c:110:8: warning: unused variable ‘x’ [-Wunused-variable]
filtering.c: In function ‘denoise_average’:
filtering.c:144:6: warning: unused variable ‘i’ [-Wunused-variable]
sens.c: In function ‘main’:
sens.c:507:19: warning: unused variable ‘tmp’ [-Wunused-variable]
Change-Id: I856b6ebe7869ddb8e9e38907483ec2750c9ae48e
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Irina Tirdea [Thu, 9 Oct 2014 13:49:56 +0000 (16:49 +0300)]
sens: enable build warnings
Change-Id: I4ceb0d49c9e8912885509e8466c2228364b65c81
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Adriana Reus [Tue, 3 Feb 2015 12:08:07 +0000 (14:08 +0200)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/sensors/master' into gmin/l-dev/master
git log --pretty=format:"%h %ad | %s%d [%an]" m/abt/topic/gmin/l-dev/master..origin/abt/topic/gmin/l-dev/sensors/master:
907d33f Mon Feb 2 11:51:21 2015 +0100 | Fix incorrect timestamp on Malata accelerometer samples (origin/abt/topic/gmin/l-dev/sensors/master) [Patrick Porlan]
b8ba9bd Mon Feb 2 11:35:12 2015 +0100 | Don't propagate timestamps to colocated poll mode sensors [Patrick Porlan]
6613293 Thu Jan 29 15:11:10 2015 +0100 | IRDA-2849: Add support for optional calibscale properties [Patrick Porlan]
241eb56 Wed Jan 28 16:25:24 2015 +0100 | IRDA-3484: Optionally read window size from filter specification [Patrick Porlan]
29f6a18 Wed Jan 28 11:55:23 2015 +0100 | IRDA-3484: Shift the moving average filter fields to a dedicated structure [Patrick Porlan]
812d2e7 Tue Jan 27 16:34:59 2015 +0100 | IRDA-3484: Add support for filter property [Patrick Porlan]
git diff --stat m/abt/topic/gmin/l-dev/master..HEAD:
common.h | 17 +++--
control.c | 6 +-
description.c | 2 +-
description.h | 1 +
enumeration.c | 23 +++++++
filtering.c | 194 +++++++++++++++++++++++++++++++++++++++++++---------------
transform.c | 8 +--
7 files changed, 184 insertions(+), 67 deletions(-)
Change-Id: I4d3f68c374d489bf18399436cb16a9e0fdb886c1
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-5672
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Patrick Porlan [Mon, 2 Feb 2015 10:51:21 +0000 (11:51 +0100)]
Fix incorrect timestamp on Malata accelerometer samples
Both accel and gyro samples are co-located on the same iio
device with the MPU-6050 drivers, all channels are enabled
at boot, so take them into account as the iio report size
is stable.
Change-Id: I678bed09b80d3565f81e9ef6db810d0da911c543
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Mon, 2 Feb 2015 10:35:12 +0000 (11:35 +0100)]
Don't propagate timestamps to colocated poll mode sensors
Case study: we have incorrect timestamps on the Malata accelerometer
at the moment, and they are being forwarded to the poll-mode
thermometer that is associated to the same (MPU) iio device.
Simply rely on the timestamps constructed in the acquisition thread.
Change-Id: I7d803c71d1d4018fca3c5a8c7ca52fb05422eb0c
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Thu, 29 Jan 2015 14:11:10 +0000 (15:11 +0100)]
IRDA-2849: Add support for optional calibscale properties
If something like ro.iio.accel.x.calib_bias = -1015 is found,
and non-zero, store it in the relevant sysfs file, e.g. something
like /sys/bus/iio/devices/iio:deviceX/in_accel_x_calibbias.
The driver is then responsible for using that data as it wishes.
Change-Id: I7cfb21f00533d03f5a5b93cfe32f56c1e1fb9c37
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Tracked-On: https://jira01.devtools.intel.com/browse/IRDA-2849
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Wed, 28 Jan 2015 15:25:24 +0000 (16:25 +0100)]
IRDA-3484: Optionally read window size from filter specification
I.e. filter=average,10 would supersede the default moving average
window size for a specific sensor.
Change-Id: I6d55f1e7b653a99f5eb4cc2ac4b124131ee876e4
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Tracked-On: https://jira01.devtools.intel.com/browse/IRDA-3484
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Wed, 28 Jan 2015 10:55:23 +0000 (11:55 +0100)]
IRDA-3484: Shift the moving average filter fields to a dedicated structure
This uniformizes handling of filters, and will make it easier
to handle filters parameters in a unified way, as well as adding
filter types in the future.
Change-Id: Ib8e137bfd3db6bea2538ca0c0cd611446f6f934a
Tracked-On: https://jira01.devtools.intel.com/browse/IRDA-3484
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Tue, 27 Jan 2015 15:34:59 +0000 (16:34 +0100)]
IRDA-3484: Add support for filter property
As of today, filtering is only engaged if a sensor has the noisy
quirk. If it is, we use median filtering for gyroscopes and moving
average for magnetometers. Let's allow for a filter configuration
item that would force any of the available filters selectively.
filter=median
filter=average
will supersede the default choice. There's no reason to support
a none setting, as it's the default.
Change-Id: I7f85738e3b770d86efe9a709495c08ca36ba4024
Tracked-On: https://jira01.devtools.intel.com/browse/IRDA-3484
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Adriana Reus [Mon, 12 Jan 2015 10:41:07 +0000 (12:41 +0200)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/sensors/master' into gmin/l-dev/master
git log --pretty=format:"%h %ad | %s%d [%an]" m/abt/topic/gmin/l-dev/master..origin/abt/topic/gmin/l-dev/sensors/master:
739ada1 Thu Jan 8 11:12:04 2015 +0200 | Remove useless log. (origin/abt/topic/gmin/l-dev/sensors/master) [Adriana Reus]
50085d7 Fri Dec 19 11:16:47 2014 +0200 | Add the TYPE_MAGNETIC_FIELD_UNCALIBRATED sensor [Adriana Reus]
git diff --stat m/abt/topic/gmin/l-dev/master..HEAD:
control.c | 87 +++++++++++++++++++++++++++++--------------------------
description.c | 6 ++--
enumeration.c | 93 +++++++++++++++++++++++++----------------------------------
transform.c | 30 ++++++++++++++++---
4 files changed, 115 insertions(+), 101 deletions(-)
~
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-5103
Change-Id: Ib5be41558f51f558caf0ae3548a2896be18439e1
Adriana Reus [Thu, 8 Jan 2015 09:12:04 +0000 (11:12 +0200)]
Remove useless log.
Change-Id: If161e4c5f7284099a138bfa983d21ea12dfe9421
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Adriana Reus [Fri, 19 Dec 2014 09:16:47 +0000 (11:16 +0200)]
Add the TYPE_MAGNETIC_FIELD_UNCALIBRATED sensor
Add the uncalibrated magnetometer type.
Added a single function for checking and adding virtual sensors.
Moved the timestamp handling for polling sensors so that we get a
timestamp before finalize is called.
Also moved the event drop (for sensors not directly enabled)
from finalize to propagate_sensor_report because for polling
sensors we need to signal an fd when we have an event,
and this is made by looking at the finalize return value.
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-2744
Change-Id: I12abd38329ef7f59b2b13427c47a235b54f75fb2
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Adriana Reus [Mon, 5 Jan 2015 12:36:52 +0000 (14:36 +0200)]
Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/sensors/master' into gmin/l-dev/master
8cefd8e Fri Dec 19 16:40:50 2014 +0200 | cleanup: Remove handling for continous sensors when setting flags [Adriana Reus]
8a7e617 Fri Dec 19 14:14:07 2014 +0100 | Winter cleanup: reorganize line breaks in filtering.c [Patrick Porlan]
0c5d4d4 Fri Dec 19 11:34:15 2014 +0100 | Winter cleanup: revisit enable_buffer function [Patrick Porlan]
d6349f6 Fri Dec 19 10:29:33 2014 +0100 | Winter cleanup: add a specific is_polling flag to the sensor structure [Patrick Porlan]
45c9688 Thu Dec 18 17:12:39 2014 +0100 | Fix min & max sampling rate for on-change sensors [Patrick Porlan]
4d8f316 Thu Dec 18 15:50:46 2014 +0100 | Shift max and min rate calculations to enumeration stage [Patrick Porlan]
3025276 Thu Dec 18 15:20:43 2014 +0100 | Winter cleanup: remove old debugging code from compass-calibration.c [Patrick Porlan]
5cd8699 Thu Dec 18 14:41:00 2014 +0100 | Winter cleanup: straighten up a few long untouched files [Patrick Porlan]
cc449e6 Thu Dec 18 11:40:04 2014 +0100 | Winter cleanup: switch to 160 characters lines [Patrick Porlan]
cae87f2 Thu Dec 18 10:34:12 2014 +0100 | Winter cleanup: use typedef on our own types [Patrick Porlan]
14261d3 Wed Dec 17 16:35:34 2014 +0100 | Revisit sampling rate arbitration [Patrick Porlan]
d554e08 Thu Dec 18 10:04:06 2014 +0100 | Tweak a few traces [Patrick Porlan]
60bf469 Wed Dec 17 17:32:23 2014 +0100 | Winter cleanup: use consistent types for constants [Patrick Porlan]
1f86600 Wed Dec 17 16:27:04 2014 +0100 | Rework a little bit sensor_activate_virtual [Patrick Porlan]
de50236 Wed Dec 17 16:19:12 2014 +0100 | Move sensor_activate_virtual next to sensor_activate function [Patrick Porlan]
8c1267b Wed Dec 17 16:14:07 2014 +0100 | Rename setup_delay_sysfs to sensor_set_rate [Patrick Porlan]
d9ac41e Wed Dec 17 15:58:51 2014 +0100 | Rework a little bit the end cases in check_state_change [Patrick Porlan]
9072170 Wed Dec 17 15:54:52 2014 +0100 | Better coordinate frequencies of co-located iio sensors [Patrick Porlan]
6c1dfd5 Wed Dec 17 15:49:03 2014 +0100 | Only signal an acquisition thread if the target sensor is enabled [Patrick Porlan]
cce276f Wed Dec 17 15:42:16 2014 +0100 | Allow for a slight difference when parsing available frequencies [Patrick Porlan]
a4acc70 Wed Dec 17 15:16:37 2014 +0100 | Winter cleanup: rephrase traces and comments, rename vars, fix whitespaces [Patrick Porlan]
a0caca2 Wed Dec 17 15:03:12 2014 +0100 | Rename MAX_REAL_DEP to MAX_BASE_SENSORS and base_idx to base [Patrick Porlan]
67ff046 Mon Dec 15 17:44:56 2014 +0100 | Winter cleanup: tidy up enumeration.c [Patrick Porlan]
0f08a52 Mon Dec 15 11:48:23 2014 +0100 | Winter cleanup: Harmonize spacing before functions [Patrick Porlan]
0bb03ae Mon Dec 15 10:58:28 2014 +0100 | Winter cleanup: suffix our own types with _t [Patrick Porlan]
3848e24 Mon Dec 15 10:31:39 2014 +0100 | Winter cleanup: comment harmonization, space shuffling, etc. [Patrick Porlan]
5d0800d Mon Dec 15 10:11:20 2014 +0100 | Winter cleanup: move iio type field decoding out of utils.c [Patrick Porlan]
11ed1a2 Mon Dec 15 10:07:26 2014 +0100 | Winter cleanup: remove superfluous volatile specifier [Patrick Porlan]
2d5e6c1 Mon Dec 15 09:58:20 2014 +0100 | Winter cleanup: sensor_info[] -> sensor[] [Patrick Porlan]
8aa6c4c Tue Dec 9 09:07:08 2014 +0200 | Better support for virtual sensors [Adriana Reus]
git diff --stat m/abt/topic/gmin/l-dev/master..HEAD:
calibration.h | 27 +-
common.h | 189 ++++----
compass-calibration.c | 204 +++------
control.c | 1183 +++++++++++++++++++++++++------------------------
control.h | 6 +-
description.c | 267 +++++++----
description.h | 10 +-
entry.c | 21 +-
enumeration.c | 396 ++++++++---------
enumeration.h | 17 +-
filtering.c | 117 +++--
filtering.h | 8 +-
gyro-calibration.c | 50 +--
matrix-ops.c | 14 +-
transform.c | 447 +++++++++----------
utils.c | 33 --
utils.h | 3 -
17 files changed, 1502 insertions(+), 1490 deletions(-)
Change-Id: If4a7af961dc5970ff5fd8cead24fe0c1723cad45
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Patrick Porlan [Fri, 19 Dec 2014 14:23:38 +0000 (15:23 +0100)]
Transmit the entire sensor_event_t structure from acquisition thread
We were losing the magnetometer accuracy indicator because of the
wish to limit the amount of data we're transmitting accross threads,
but the volume of data itself is not so different this way. There
should be no impact on performance whatsoever, and this will likely
avoid future bugs.
Change-Id: I55c18553467b442a25a61d29ffaba40eb4fba708
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Adriana Reus [Fri, 19 Dec 2014 14:40:50 +0000 (16:40 +0200)]
cleanup: Remove handling for continous sensors when setting flags
This is for nothing, that flag is zero.
Change-Id: I46d71728b30ab7167f4b1ef05f43f0e5662423b0
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Patrick Porlan [Fri, 19 Dec 2014 13:14:07 +0000 (14:14 +0100)]
Winter cleanup: reorganize line breaks in filtering.c
Only cosmetic fixes in there.
Change-Id: I4f6bde87e8e61a98feccac22dfdc428ad65cab1f
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Fri, 19 Dec 2014 10:34:15 +0000 (11:34 +0100)]
Winter cleanup: revisit enable_buffer function
Can't help from tweaking whitespaces too.
Change-Id: I3e5fcf3f364e082ccf0173b75da0691cc26a42b3
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Fri, 19 Dec 2014 09:29:33 +0000 (10:29 +0100)]
Winter cleanup: add a specific is_polling flag to the sensor structure
Add a dedicated flag telling whether a sensor is triggered or polling.
Checking for the number of channels always felt unnatural.
Change-Id: I03eab9c5bce7c63a90301cfc735afbf72fd780d6
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Thu, 18 Dec 2014 16:12:39 +0000 (17:12 +0100)]
Fix min & max sampling rate for on-change sensors
The BMG160 thermometer was adopting the gyro min sampling rate of
100, which is kind of wasteful in terms of acquisition thread
activity. Same for BMC150 therm (using 15.6 Hz min). The ALS was
probably causing more thread switches than necessary, even if in
the end no event was being reported to Android if the value was
the same as the last measured one.
So, say it's fine to use on change sensors as a frequency as low
as 0.1 Hz, and report 5 Hz the maximum rate we can handle.
Change-Id: I7bd4a8ef97bffd5a0deb17cf581286214ce8a1a4
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Thu, 18 Dec 2014 14:50:46 +0000 (15:50 +0100)]
Shift max and min rate calculations to enumeration stage
It doesn't make sense te recompute this stuff over and over.
We might even want to use the ones gathered in the min/max
delay routines eventually, to avoid rounding errors.
Change-Id: I3bc6dfa39459b5b88552a9b716d04d6fdffda7af
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Thu, 18 Dec 2014 14:20:43 +0000 (15:20 +0100)]
Winter cleanup: remove old debugging code from compass-calibration.c
Spread harmony too.
Change-Id: Ieb306cc6039478ace05ad8f327a354cd3b4d0c28
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Thu, 18 Dec 2014 13:41:00 +0000 (14:41 +0100)]
Winter cleanup: straighten up a few long untouched files
Lots of mindless cosmetic fixes.
Change-Id: I8ac28ac57a2186f460df8d82921d32b5b6ffbbe9
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Thu, 18 Dec 2014 10:40:04 +0000 (11:40 +0100)]
Winter cleanup: switch to 160 characters lines
This allows for nicer traces, comments, and test conditions.
Change-Id: Ie477ab33d090bce0ffecf252e13885f384909771
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>