Commit graph

17 commits

Author SHA1 Message Date
Matt Filetto
f56b6165cf msm8226-common: Disable QC HW FLP HAL
* Something inside the HAL keeps choosing to use inaccurate locations
  even when more accurate GNP/GNSS location is available. Since we don't
  have any visibility into this component, disable it.

Change-Id: I84f5cf142ec9d5c4ea95b54b0bd16c54de2b1743
2016-05-17 12:22:01 +05:30
Jackeagle
91c22bd95e msm8226: Switch to proprietary GPS blobs
Change-Id: I25d4eab64b16ca882e8f7dc346e81bf765c4de84
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
2016-05-17 12:21:20 +05:30
Dan Pasanen
76a4d7eeef gps: fix error when building with clang
* error: constant expression evaluates to 4294967295 which cannot be narrowed to type 'long'

Change-Id: I66c3fda80d72a2c650992f14336a646c6459e937
2016-02-22 02:41:32 +01:00
Nikola Majkić
13b8f743ad Boardconfig: Build with Clang 2016-02-22 02:40:46 +01:00
Christopher R. Palmer
1d08a4f56d msm8226-common: Unlock the GPS
Change-Id: If9fd67483fedee915d46f7b9d2a7e0851400de3c
2016-01-03 12:37:08 +01:00
Rox-
bdeca00d33 msm8226-common: Cleanups
*GPS update for M
*Newline
*Drop USB charging mode - not needed in M
*Specify persist.sys.ssr.enable_debug
2015-12-26 15:53:57 +01:00
Apavayan Sinha
ececd0f1e5 gps: fix build with M
Change-Id: Ibe8799714547cffb5e4505a08fa85d30075afd9d
Signed-off-by: Apavayan Sinha <info@apavayan.com>
2015-10-18 13:41:21 +05:30
Rox-
9172f536cd gps: Improve GPS support 2015-01-24 15:53:05 +01:00
Dante Russo
32d751c2c6 Remove reduntant clearing of GpsLocation memory
GpsLocation memory will now be cleared inside the
Loc Api handler itself, so no need to do it a second
time before calling into the Loc Api handler.

Change-Id: Iec37624621d6eb4806eb8e13c807bb4e40584e39
CRs-fixed: 726800
2015-01-24 15:42:01 +01:00
Pandari Sabhapathi
c0705468a7 msm8226-common: Migrating XTRA from gpsonextra.net to cloud based izatcloud.net
*Added logic to remove xtra1.gpsonextra.net from URLs
received from modem.
*Added logic to override modem URLs with those configured
in gps.conf
*Replaced all instances of xtra{1,2,3}.gpsonextra.net domain URLs
in gps.conf with xtrapath{1,2,3}.izatcloud.net URLs.
*Replaced all commented instances of xtra.bin in gps.conf with xtra2.bin.

Change-Id: Iae01cdbc777af5baa682a6b4fc73956627498f7c

Conflicts:
	gps/loc_api/libloc_api_50001/loc_eng.cpp
2015-01-24 15:41:13 +01:00
Kevin Tang
e9478c11bb Changes for External DR enablement feature.
Change Summary:
* Structure definitions for GNSS SV Measurement and GNSS SV
  Polynomial to report it to ULP and to external DR module;
* New function additions in LocApiBase, LocAdapterBase and
  LocEngAdapter to report SV Measurement and SV Polynomial;
* definition and changes to detect "auto" platform in loc_target;
* enable SV Measurement and SV Polynomial report for "auto"
  platform;

Change-Id: I0611023197ce58f5d083588809c2f18922738357
2015-01-24 15:40:41 +01:00
Linto Paul
932151ebaa Platform:ADPES2,Chip Info:APQ8064 Automotive
Changes to include "auto" option as well for ro.baseband property.
submitting on behalf of Madhanraj Chelladurai

Change-Id: I96abaea799df34d375a6a5db7341c17b99c94675
2015-01-24 15:40:23 +01:00
Kevin Tang
8b8602393c Fix for CR 692085, error mapping incorrect in one of the cases
eLOC_CLIENT_FAILURE_INTERNAL returned from loc_api_v02 was mapped
to LOC_API_ADAPTER_ERR_FAILUR, however in loc_eng_start_handle it
is LOC_API_ADAPTER_ERR_GENERAL_FAILURE that is being checked for.
Created a new error ID LOC_API_ADAPTER_ERR_INTERNAL specifically
for this error case.

Change-Id: Ib2ad6e983d6c598ec57f1a2584166da2be95946b
CRs-Fixed: 706520
2015-01-24 15:40:03 +01:00
Kevin Tang
a381abce5d 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
2015-01-24 15:39:44 +01:00
Kevin Tang
4b98dbfeaa fixing the SSR recovery race condition
There is a race condition where when startFix is
called right at the time when modem or griffon
subsystem is down, GPS HAL doesn't get the correct
error code, and therefore the right handling.

Mapped ENGINE_DOWN to ENGINE_OFFLINE, as they are
the same; and modified loc_eng_start_handler to
update the state upon the right error code.

There is a one problem though. General failure is
also handled as SSR. This is because of an unhandled
race condition in the kernel, so the error code
returned and propagated is not deterministic enough
for us to tell if this is SSR. Until that fix is in
place, we might have to treat general failure as SSR
although the side effect should be none. Only
semantically incorrect.

Change-Id: If93823f08428275da171bb22d73a06e38365585b
CR-Fixed: 692085
2015-01-24 15:39:27 +01:00
Rox-
e80c501630 msm8226-common: Update GPS hal 2014-12-22 00:59:33 +01:00
Robert Rozic
b2ca1464c3 msm8226: Initial commit
Split s3ve3g device tree
2014-12-20 01:57:55 +01:00