Commit graph

148 commits

Author SHA1 Message Date
Linux Build Service Account
3a6d7924d6 Merge "Merge tag 'AU_LINUX_ANDROID_KK.04.04.04.010.214' into HEAD" 2014-10-23 11:54:25 -07:00
Zhoulu Luo
629d80a82a AU_LINUX_ANDROID_KK.04.04.04.010.214 based on quic/aosp/kk
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iEYEABECAAYFAlRGYwkACgkQoUgPZYCpAfF2rwCg5quG/L+pzo5R94uD/QSR1Xs6
 mpsAoIxxW/ftz0uMbp67UANrb7EQyVNY
 =eKHq
 -----END PGP SIGNATURE-----

Merge tag 'AU_LINUX_ANDROID_KK.04.04.04.010.214' into HEAD

AU_LINUX_ANDROID_KK.04.04.04.010.214 based on quic/aosp/kk

Change-Id: Ida51fa96a5a39fcb3bb2f2c6ab9be84a3ec44d41
2014-10-22 12:57:59 -07:00
Kevin Tang
d1cc6bfee7 GPS LOCK did not work when NMEA_PROVIDER follows it
there is an implicit requirement on the loc_gps_cfg_s_type field
data type, that is they must be 32 bit fields. Otherwise it would
only work with the assistance of padding. When two adjacent 8 bit
fields are defined, the later filled field would overwrite the
previously written neighbor. This is why GPS_LOCK was tested as
broken in the latest build.

This also fixes a theoretic bug that when there are two of the
same fields defined in the config table to be filled, the
accounting of the filled entries was incorrect earlier. This is
not a realistic bug, as there are no idential entries in the
config table HAL fills.

Bug: 16131208

CRs-fixed: 736966
Change-Id: I2e262fb30272f6f334508df17bb640022d7b1ef5
2014-10-20 15:00:39 -07:00
Kevin Tang
e6a851c191 adding update config post power up
Some of the parameters configured in gps.conf may be
carrier dependent. This provides a mechanism so that
GpsLocationProvider can determine current operator
resolve of the carrier specific configurations and
update HAL with those configurations post init.
Bug: 17110478

CRs-fixed: 736966
Change-Id: I80aa4404da7666824335fee074dae2ffcba40548
2014-10-20 14:54:26 -07:00
Kevin Tang
fb9c641bb8 Added Detection Logic For QMI_PDS Target.
Added run time detection of PDS enabled fusion target
to loc_target(), to support fusion platforms that has
PDS service enabled.

Change-Id: Ic53df027540f00eec9259776351b6bbc9afa0521
CRs-Fixed: 699757
2014-10-10 10:36:46 -07:00
Zhoulu Luo
94ca706b3c AU_LINUX_ANDROID_KK.04.04.04.010.182 based on quic/aosp/kk
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iEYEABECAAYFAlQsxwMACgkQoUgPZYCpAfG54gCdFhi4kcvtS8jo5rRwqMemDRJw
 JZAAoOcZBG/Y1bH/Kmd1+27OQJUOH/Yg
 =fi7/
 -----END PGP SIGNATURE-----

Merge tag 'AU_LINUX_ANDROID_KK.04.04.04.010.182' into HEAD

AU_LINUX_ANDROID_KK.04.04.04.010.182 based on quic/aosp/kk

Conflicts:
	loc_api/libloc_api_50001/loc_eng.h

Change-Id: I3a734e3bdc3347961f1bd4bf5499ec7ca9aecfbc
2014-10-02 14:42:00 -07:00
Bhavna Sharma
f1ddcf02a3 Increase the size of string to hold parameter name
Some parameter names are more than 48 char in length.
Accomodate by increasing parameter name buffer size
and increase complete line buffer size.

CRs-Fixed: 700902

Change-Id: If2af7288ed11fdd668dc1cad8e60f2c92e7b3c30
2014-09-17 18:16:35 -07:00
Sudhir Sharma
2e5ca6dde7 AU_LINUX_ANDROID_KK.04.04.04.010.094 based on quic/aosp/kk
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iEYEABECAAYFAlPoLFcACgkQoUgPZYCpAfHA3gCgxHO4Ygg/L4/AivXneonD8kls
 t80AoOVB7Ts81w7Qea3Ui7jhoq/jbRui
 =UdP7
 -----END PGP SIGNATURE-----

Merge tag 'AU_LINUX_ANDROID_KK.04.04.04.010.094' into HEAD

AU_LINUX_ANDROID_KK.04.04.04.010.094 based on quic/aosp/kk

Change-Id: I0b9428f15516e1f6b6cd625caa2e4af86b9c1c5e
2014-08-11 13:38:27 -07:00
Kevin Tang
33e5fd9015 loc timer util fix to handle the race condition
loc timer util stop() routine may have race condition
with the timer thread, when timer expires at the same
time stop() routine tries to lock mutex.  The race
condition can go 2 ways:
* timer thread expires, unlocks mutex, context switch,
stop() thread acquires lock, context switch, timer
thread destroys mutex.  Destroy will fail, resulting
mutex leak.
* timer thread expires, unlocks mutex, destroys mutex,
stop() acqures lock, signal, and releases lock. Would
be super rare conditions though.

Fix is that we give 5 seconds for stop() thread to
give up the lock when destroy. After that the timer
thread will release the mutex and go on destroy.
Meanwhile the stop() thread would check the lock
return to move on with signal and unlock.

Change-Id: Iff9e34d08a1faf0828049de2fede2e7a5d15b161
CRs-Fixed: 699856
2014-08-04 10:28:00 -07:00
Tushar Janefalkar
c828f0a56a Changes for GPS HAL compilation
Remove dependence on android_runtime and
return invalid value if gps daemon is not
responding

Change-Id: I16dbf1bffe6193114c1da08730f0627377179a2a
2014-06-17 13:46:56 -07:00
Dante Russo
9ffb10553d Revert "Avoid GPS build for MSM8916 64bit"
This reverts commit 0daddfd2fd.

Change-Id: I3138bb2d600618cfec5ec7588d5359b15a07cbad
2014-06-17 11:18:48 -07:00
Dante Russo
c7265bbe1d Revert "Avoid GPS build for MSM8916 64bit"
This reverts commit 0daddfd2fd.

Change-Id: I3138bb2d600618cfec5ec7588d5359b15a07cbad
2014-05-07 17:12:49 -07:00
Linux Build Service Account
61e32edfdd Merge "Avoid GPS build for MSM8916 64bit" 2014-04-11 00:32:08 -07:00
Kevin Tang
7b268f9c10 a change to support c++11
The logging macro seems to break c++11 toolchain. A change
is make to address that

Change-Id: I5056fe0431ff064ac4805facbb59195fe04b154e
CRs-Fixed: 646028
2014-04-09 13:24:05 -07:00
Ashwin Kumar
0daddfd2fd Avoid GPS build for MSM8916 64bit
Avoid GPS compilation for MSM8916 64bit targets

CRs-fixed: 628263

Change-Id: I5fde20c25de005feb1c24017107858d4f19eed4f
2014-03-21 22:32:30 +05:30
Linux Build Service Account
eb3d713e9b Merge "apq8084: qca1530 detection property changed" 2014-02-13 02:23:15 -08:00
Linux Build Service Account
790af4dde5 Merge "apq8084: qca1530 detection timeout reduced" 2014-02-12 09:30:55 -08:00
Valeri Atamaniouk
ff716bf292 apq8084: qca1530 detection property changed
Changed QCA1530 SoC detection property from persistent to
non-pesistent. New property is 'sys.qca1530'.

CRs-Fixed: 614154

Change-Id: I61ed4191e6413bb6eab71c61d9ed070a5815c178
2014-02-11 12:06:42 +02:00
Tushar Janefalkar
4460543e7d Add new utilities
This change makes modifications
to existing utilities and adds
a couple of new utilites to help
with the launcher

Change-Id: Ib65ffe8e60c7e4a824c5c362765df5dcba872424
CRs-fixed: 600179
2014-02-10 10:15:54 -08:00
Valeri Atamaniouk
42320d2017 apq8084: qca1530 detection timeout reduced
Reduced QCA1530 detection timeout as system server activitity
manager gives only 20 seconds for the subsystem initialization.

CRs-Fixed: 613611

Change-Id: Ib095db3f2b35765a4b9d7b0e79132e44c173d6cb
2014-02-10 12:10:49 +02:00
Dante Russo
cf180fffbe Force logging level to warning for user builds
User builds should not be logging at info level

Change-Id: I4e43730d52b3a322e93d61112805fa85669db243
CRs-fixed: 610927
2014-02-04 10:00:25 -08:00
Kevin Tang
0eeb1392f1 added timer stop api
loc_timer util currently can not be stopped.  Added stop api so that
clients can make use of.

CRs-Fixed: 579624

Change-Id: I17f80e46ecfbdf1b70eb158f1ee7eb1a92d5e765
2013-11-26 12:07:02 -08:00
Valeri Atamaniouk
3b4d23e9cc apq8084: qca1530 configuration handling is added.
Provide function for qca1530 detection. Rename 'get_target' to
'loc_get_target'. Fix loc_get_target state detection to avoid double
detection. Fix few minor code defects.

Change-Id: I3daaff99598771742572aab407475474fad41e93
2013-10-25 06:47:17 +03:00
Dante Russo
530086a52d Fix ATL handling
Always register for ATL events reguardless of hw target
or MSA/MSB capabilities. For APQ target, do not handle
certain types of ATL events that it doen't support.
For APQ target, use only position mode of Standalone.

CRs-fixed: 533932
Change-Id: Icd626e3e7155d5c2ba871a343430e441924ce93c
2013-09-10 15:57:08 -07:00
Satya Durga Srinivasu Prabhala
cb12f393d2 Replace sysdev path
sysdev gets deprecated in 3.10 Kernel. Hence, replacing
sysdev path with relevant path/s.

Change-Id: I8fbb1959ba4dfba34fdac6d271e59fd25237f899
2013-08-15 12:22:32 -07:00
Tushar Janefalkar
e5e62728a2 A mechanism to detect APQ chip set
The current changes to default the operation mode
to Standalone by the CHIP ID. A new method is used
for solving this issue.

CRs-Fixed: 510462
Change-Id: I58fd85e2c28bf824edeaef62660c62c34761bd37
2013-08-02 19:01:02 -07:00
Kevin Tang
d42eeebb5a made a convenient msg_q_init2
the original msg_q_init takes a q handle in the parameter list
which makes it inconvenient for chain statement. This really
adds nothing be making it slightly convenient

Change-Id: I1e7f931d6b278c804ec6f7d87c1a79a3ffcceb75
2013-07-23 20:12:54 -06:00
Gohulan Balachandran
efd4e124a6 Merge up to MR1 tip
Point merged in is cc92e0ccd4

Change-Id: I3b782716fee9ed519b77a4e415fa08155bdce76a
2013-07-23 20:12:17 -06:00
Satheesh Jayakumar
fed389ab35 GARDEn: porting LE enhancement to Android - fix build error
Add platform abstraction layer into include path

Change-Id: I1e27a60f3afcc259449d264697bd39c03ef9609f
2013-07-03 17:12:46 -07:00
Satheesh Jayakumar
0590a64deb hardware/qcom/gps: Porting HAL and Loc API 2.0
- Wrote makefiles, config and other files
- Made code changes to minimize android dependencies

Change-Id: I350de6378684f5db81a36cc4c6d014c5a8189d4c
2013-07-03 17:08:14 -07:00
Tushar Janefalkar
6fa0e8a983 DEBUG_LEVEL 0 to produce no logs
In accordance to gps.conf, debug level of 0 now
produces no logs at all. In addition, if the
parameter DEBUG_LEVEL is commented in gps.conf,
logs will be printed according to Android's logging
levels

CRs-fixed: 503157
Change-Id: I26ca2be67fbc7ce2bf633f66d9b88ca6450e9d27
2013-06-26 18:23:57 -07:00
Tushar Janefalkar
7af44a9436 Timed Alarm service utility
The utility launches a separate
thread that holds a mutex for
x milisecs and then calls a callback
function to notify the caller about
the time lapse

Change-Id: If033eed71d28a8736c8393f6ff609ac59d8877d9
2013-06-17 10:36:57 -07:00
Dante Russo
85f672fa71 Merge branch jb_mr1 into jb_2.6
Merged from from label
AU_LINUX_ANDROID_JB_MR1.04.02.02.049.306

Change-Id: Ie2f7fd3d25f8f28f5d1b6e733974bb5f75999ee8
2013-06-11 14:58:24 -07:00
Kevin Tang
2fe7829e6d Detect APQ8074 HW, fixed
Previously the SOC ID was incorrect. Corrected now.

Change-Id: I49925d3bbffdac8db87524b3483054e93770d75d
2013-05-20 18:32:35 -07:00
Kevin Tang
deda0b3b41 Detect APQ8074 HW
Detect APQ8074 Hardware so as to run in APQ mode.
Choose target as TARGET_APQ8064_STANDALONE
When hardware_platform=apq and SOC id is 126
GPS HAL needs to know so as to disable AGPS
feature.

Change-Id: Iabd95de6b401ff5fc72cfd32de6cea5250c19eb4
2013-05-16 16:15:18 -07:00
Ashwin Kumar
bd64ccd874 MSB is not falling back to standlone.
No support for SUPl,starting MSB it wouldn.t request a PD.
Disabled the MSA and MSB for this PL.
This fix is needed because this PL doesnot have a modem.

Change-Id: I8fa1145db07f681c0f6e733da253f06f01f7edd6
CRs-Fixed: 471589
2013-05-01 03:23:59 -07:00
Ying Wang
ce5efcc57f Add liblog
Bug: 8580410
Change-Id: Ife86cba2312cf83f263b07bfe8f3b655ec7d1a70
2013-04-09 21:59:18 -07:00
Tushar Janefalkar
d2873a0baf Split gps configuration file (change 1/2)
gps.conf now split into
izat.conf: proprietary items
sap.conf : sensor assisted positioning items
gps.conf : items used in open source
           (gps.conf moved to open source)

CRs-fixed: 461129
Change-Id: I819230ee3bb13aad0b91f7d33bfb9e57b6d1abe1
2013-03-19 15:57:50 -07:00
Tushar Janefalkar
5049a47797 Utility to identify target HW
Earlier this identification was done in loc.cpp
This change moves that to a separate utility.
Also included is a change to not return
a handle to the GPS interface if the target
is found to be MPQ8064.
This change is a re-cherry-pick from
change id - I98d5619d2e6e63711a9b56f0af2b3ddd27372871

Change-Id: I058d206c37245b44f1cf74d6065e7ce46f50baf7
CRs-Fixed: 418009
2013-03-18 15:49:52 -07:00
Tushar Janefalkar
e91c4284bf Change debug log tags for V/I/D
CRs-fixed: 442759
Change-Id: I9ddf1605d6b7837a44328e5e0ae38c855d93c12f
2013-02-05 10:03:10 -08:00
Duy Truong
a987332d29 Update copyright to The Linux Foundation
Change-Id: I727bdeb29904eebf15b7ef8eb0070d69107537a8
2013-01-10 08:07:21 -08:00
Dante Russo
7118024952 Merge jb into jb_2.5
Features ULP, IPV6, DELEXT disabled

Conflicts:
	loc_api/Android.mk
	loc_api/libloc_api-rpc-50001/*
	loc_api/libloc_api_50001/*
	loc_api/loc_api_v02/*
	loc_api/ulp/inc/ulp.h
	utils/*

Change-Id: I846352d0addca89d4ffc3b114b774926b23e930d
2012-12-14 16:45:15 -08:00
Tushar Janefalkar
63c5ac48c7 Utility to identify target HW
Earlier this identification was done in loc.cpp
This change moves that to a separate utility.
Also included is a change to not return
a handle to the GPS interface if the target
is found to be MPQ8064.

CRs-Fixed: 418009
Change-Id: I98d5619d2e6e63711a9b56f0af2b3ddd27372871
2012-11-12 10:28:15 -08:00
Iliyan Malchev
c74962df0d chmod uga-x
find -type f -perm +111 -name \*.[ch]\* -exec chmod uga-x {} \;

Bug: 7428209
Change-Id: I991e3fb62a46f4b4cd727ef4b6a4472b4015ce33
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-10-27 14:22:13 -07:00
Ajay Dudani
6f36c0ec74 Silence more gps function tracing logs
Change-Id: I33f672950f59ad739362263d212424f8f55ab88b
2012-09-21 19:13:34 -07:00
Dante Russo
3088fe9117 gps: jb porting with qcom enhanced features
based from AU_LINUX_ANDROID_ICS.04.00.04.00.205

Change-Id: I0af1da1438a136e98b59110641ce5c7714da220b
2012-07-18 15:13:16 -07:00
Dante Russo
3c2630ef2a gps: initial merge to jb
based from AU_LINUX_ANDROID_ICS.04.00.01.00.007
with qcom enhanced features flagged out

Change-Id: I2bc03fe4447047fd7c9a7d000040dadb8bb34647
2012-07-12 21:58:21 -07:00
Ajay Dudani
f77c85bb51 gps: Initial implementation of msm gps hal
Change-Id: Icf126a0bbb9dec414144b9b405694e41777920d5
2012-07-09 15:43:56 -07:00