Commit graph

209 commits

Author SHA1 Message Date
rogersb11
dbf394e847 samsung: Compilation fixes
* Add missing headers
* Cast values to correct types

Change-Id: Iaf621c562e884daeb22f6ec700d6989ba6ba1aef
2015-11-09 14:07:55 -08:00
Andreas Schneider
822b70bd53 ril: Use debug log level and not error
Change-Id: I8f017cb181967790260183fd06d1226d303bd2b8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-10-23 16:03:40 +02:00
Andreas Schneider
d806de9248 ril: Fix network operator search
Newer RIL versions have more QAN elements so we need a way
to adjust them to the correct value.

This needs to be set to same value as mQANElements in the RIL Telephony
class.

Change-Id: Icfad9c0acf1b95f63c232b6c4c49ed52bd4e3aa4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-10-23 16:02:55 +02:00
Caio Schnepper
2f04f84366 exynos4: Fix build of hwc and gralloc
HAL_PIXEL_FORMAT_RGBA_5551 and HAL_PIXEL_FORMAT_RGBA_4444 are used
by our hwc and gralloc, but they no longer exist in /system/core/include,
so we are moving these two formats to the hardware specific repo

Change-Id: I1c214af3b9819290173d2d60122d45a8ac635faf
2015-10-19 21:13:45 -02:00
Nathan Harold
d6306fa7d2 Modify RIL Unsol Message Wakelock to 200ms
bug: 22456054

Change-Id: Id41e001f98b455bec5f004438f5d8498b17aaf2d
2015-10-19 12:16:41 -07:00
Prerepa Viswanadham
8e75559929 Modem activity info
Change-Id: Iab8fbdeae0867c6e9cb9027b08317b1b5a2c9dfc
2015-10-19 12:16:41 -07:00
Chih-Hung Hsieh
e7ed8c8130 Add missing extern "C" declaration.
BUG: 20891299
Change-Id: Iedfd2e8e5bd32014f011352898763bcc0887b6b9
2015-10-19 12:16:41 -07:00
Robert Greenwalt
bc29c43988 Remove verbose logs
Several things are redundent except for the fact
messages are reaching rilc.  Left in in case we need to debug
the layer, but blocked out with #if VDBG

Reduces startup logging to radio buffer by 20%

Change-Id: I95099457ea365ee108e7da8e1f81434531b6b9f0
2015-10-19 12:16:41 -07:00
fenglu
9bdede058f Link Capacity Estimation - RIL support
Change-Id: I9c4d4901d823d719be2b8bdec64f08eda342de53
2015-10-19 12:16:41 -07:00
Vinit Deshpande
5257b14d60 Fix build issues after the merge
Change-Id: Ia856311187a0b2168cb859bd8b2300ff59df6569
2015-10-19 12:16:41 -07:00
Mark Salyzyn
961fd02e9b libril: tag RILC messages to radio log
Change-Id: Ia3234aa933249eb9f383c7e45c3f67b3c0c50634
2015-10-19 12:16:41 -07:00
Dheeraj Shetty
cc231015f2 Introduction of the new SAP-UIM socket
Added new socket connection for communication between the SAP module
in Telephony and User Identity Module with DSDA support.

New classes added are:

RilSocket
---------
Base class(virtual) for any type of socket. Has listen
and commands callbacks similar to that of the existing
telephony->rild socket.

RilSapSocket
------------
Derived class for socket for communication between BT SAP
and the sim module in the modem. It initialises
socket, calls Sap_Uim_Init to get the handles and
starts the socket thread.

rilSocketQueue
--------------
Queue for managing socket requests.

Change-Id: I8828173941d6ae76f1f9cc0d567efaf41a77d175
2015-10-19 12:16:41 -07:00
Nanik Tolaram
6187ef8378 Removal of dead code and adding log messages to make it easier
for debugging

- Add more logging using ALOGD(..) for function dispatchSmsWrite,
dispatchDial, dispatchSIM_IO, dispatchSIM_APDU, dispatchCallForward,
dispatchRaw and dispatchCdmaSmsAck. To make it easier for debugging.

- Remove commented log message inside wakeTimeoutCallback () function
and remove the else clause as it's dead not used for anything.

- Modify log message inside removeFromList and removeWatch using +
and - to make it consistent with the other log message.

Change-Id: Ife0212e6a4724d8b06a1dd767484bfdf98b8e1a6
Signed-off-by: Nanik Tolaram <nanikjava@gmail.com>
2015-10-19 12:16:41 -07:00
Elliott Hughes
4c4ae39dec We have POSIX clocks.
We're probably not running the RIL on a Mac.

Change-Id: Ib6be56cd26d67e2b72b559cb364b1e34ab613016
2015-10-19 12:16:41 -07:00
Caio Schnepper
d126ce64b4 libgralloc_ump: Fix build
Included legacy <pixelflinger/format.h> to continue
using "GGL_PIXEL_FORMAT_L_8" pixel format

Change-Id: If08f90333bbcd9857f0dbcb462aaf6e8ad4d689f
2015-10-19 14:36:14 -02:00
Christopher N. Hesse
5e6103a2ac macloader: Including missing errno header
Change-Id: I25ea307e4f4f8754563fc69f53db9e5c087c3bfb
2015-10-15 10:50:21 -07:00
Caio Schnepper
02c9c719ad macloader: include errno.h
Fix build

Change-Id: Ib60f66ddc2065bc92cd32e507ae9f3a5023f54c2
2015-10-10 02:14:28 -03:00
Andreas Schneider
84093984f3 ril: Support new sound manger RIL responses
New version of Samsung RIL do not use RIL_UNSOL_WB_AMR_STATE anymore.
There is a Sound Manager (SND-MGR) which has its own response base
(20000). So to be able to register a handler for

RIL_UNSOL_SNDMGR_WB_AMR_REPORT

with libsecril-client we need to know about it. This allows us to
register a callback in the audio HAL to turn WB support on.

WB_AMR_REPORT report 0x00, 0x01 or 0x02. I guess 0x01 is WB ON and
0x02 is WB + NS ON.

Change-Id: I403c86781551fc3b08354187322e8443402d56f6
2015-09-16 16:54:08 +02:00
Andreas Schneider
9427510d0f libsecril-client: Fix SetCallAudioPath for current devices
Change-Id: I38f10432f8e9a257af3e74312616d07698edd20f
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-08-25 15:43:36 +02:00
Christopher N. Hesse
7bf409edb0 libril: Add support for ST-Ericsson Thor M7450 modems
The M7450 modem used in the Galaxy Note 4 (N910C variant) uses a libril
implementation similar to the one employed for Intel XMM* modems by Samsung.

This probably needs future adjustments, but so far fixes basic call functions
and signal strength is displayed correctly.

Change-Id: I2d070102ad11746902527da3c2c7f49485c7d7f1
2015-06-26 15:01:52 +02:00
Andreas Schneider
a8d0950e22 ril: Fix compilation with debug messages turned on
Change-Id: Ifabf416ebdfe681e63df1d127567d0ef54cfc0ec
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-06-23 18:43:21 +02:00
Dheeraj CVR
50db0ed6de exynos: multimedia: fix resubmitting CSD for NuPlayer
Ignore OMX_BUFFERFLAG_CODECCONFIG to fix issues while resubmitting CSD.
This fixes issues with seeking during playback when using NuPlayer.

Change-Id: Id307100cb48608e6e3f09948838486da4948578c
2015-06-19 16:16:18 -03:00
NBruderman
72edd42d69 libril: Fix element count
This lines should drop every 5th element (#5,#10,#15,...).
At the moment it is dropping elements #6, #11, #16, as it start from 0
and the list start from 1. So let's match it up.

Thanks to Tobias Heinemann for the idea.

Change-Id: Idc2904040119716e666ea0fe320cde1d45869ee5
2015-06-08 12:57:53 +00:00
Utkarsh Gupta
f7a63e5be9 libril: Fix network operator search
Change-Id: Ib904875c403942ec96dfa229080d9543d7c9b8fa
2015-05-12 10:03:26 -07:00
Utkarsh Gupta
8ede9fa98b libril: Fix signal strength for xmm6260 too
Change-Id: I3b35eb2c18df9110c7ec1bd3cf989cd34cc18fd7
2015-05-02 22:55:15 +03:00
Caio Schnepper
dd9ce7d335 libfimg3x: Remove android_pmem.h include
Change-Id: I514e96676578a97b9481643e58a0e49a8d017678
2015-04-27 13:55:08 -03:00
Caio Schnepper
ec04254056 libril: Add missing semicolon
Change-Id: I681e98abf600cd78a0783919d00b0acd215c6aaf
2015-04-14 08:03:43 -03:00
Andreas Schneider
3063dc12b7 libril: Avoid strncat which doesn't check if we overflow
Change-Id: I547e071316e8b4492b9837aae2096f27c02b67db
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-13 21:39:15 +00:00
Andreas Schneider
47b2d96357 libril: Make data a const pointer in RIL_onUnsolicitedResponse()
Change-Id: I5b57da9e2672ea8455481e55794c33759cb741db
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-13 21:38:52 +00:00
Utkarsh Gupta
8a0d74087a libril: Fix signal strength
Change-Id: I81ce6dbb99a04c62666823602d1b72bb3fc50a1c
2015-04-13 12:28:09 +05:30
Daniel Hillenbrand
d0b8416520 libril: rewrite preferred network type
NETWORK_MODE_GLOBAL => NETWORK_MODE_WCDMA_PREF

Change-Id: I3087e4be3a6ff700b39544279fa0e265b9182180
2015-04-12 11:58:35 +02:00
Howard Su
bd82ef1fa7 libril: move samsung specific into seperate table, update to v11
Change-Id: I6c7121a30dbbf9edc9573b8f2dee308366bab9a1
2015-04-12 10:50:31 +02:00
Andreas Schneider
eef440e4ab libril: Readd support for MODEM_TYPE_XMM7260
Change-Id: I395e9cbfd1a42334e5e6bbb706eef9be157ecd24
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-08 14:00:38 +02:00
Andreas Schneider
f68609b5d2 libril: Fix #elif for MODEM_TYPE_XMM6260
Change-Id: I71e64103aba6b374b6181f557030409be084bb25
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-08 14:00:37 +02:00
Andreas Schneider
8cb8de66bb libril: Use consistent names for modem defines
Change-Id: I3ac65d2458878a6a631439be4f830c851aa50759
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-08 14:00:36 +02:00
Andreas Schneider
8e5fa432f3 libril: The data variable should be const
Change-Id: I72a694e603c1ff18b09e3c3208cae8c5af937513
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-08 14:00:34 +02:00
Andreas Schneider
68f80d8f04 libril: Fix processRadioState prototype
Change-Id: I19c5c2319fe4110c3859012a27a08d5c7f942177
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-08 14:00:31 +02:00
K Yasu
eeb7df7cf4 Fix the build error of some samsung devices which provides libril (e.g. ks01lte)
This fixes the merge error of commit 56b8dcfa3094f93698dda9f6731fa845f00ef287

Change-Id: I0efd718a85376059cad57ac9715673cbfb2e596f
(cherry picked from commit f8e5e164804f1408c2350dade3fd92d561e7076c)
2015-04-07 17:12:23 +00:00
Howard Su
e32dbfd56b libril: Merge xmm6262 and xmm6260 to single lib.
The difference between two libs are very minor,
includes one hack around ucsInfo and the logic
to adjust signal strength. Besides that other
diffs are some logs.
The new version of code is minaly based on xmm6262,
especially the logic to adjust singal strength.
Merge them to easy maintain the code.

Change-Id: I76390541d017576591860c8701bb9763c460b8be
(cherry picked from commit 56b8dcfa3094f93698dda9f6731fa845f00ef287)
2015-04-06 16:49:42 +00:00
Andreas Schneider
6b9cd5f8b4 librilsec-client: Add support for xmm7260 modem
Change-Id: If287527a26a1f5c79ec493ad2cd1cd7152ba27db
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-03-16 12:09:41 -07:00
Andreas Schneider
2947268122 libril: Add support for xmm7260 modem.
Change-Id: Ia3749bd4c43a2e233e722462dd6423fe8c692177
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-03-16 12:09:25 -07:00
Andreas Schneider
3ff947b8d3 macloader: Add support to set nvram calibration file.
Change-Id: I0eb99ad6084eb8cd4452a91b13dd75384785f5a8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit e283a09f99d0cbad2cf8b903ffe2da1c3e44663e)
2015-02-16 21:59:25 +00:00
Franco
70c7d4ddbb cmhw: Add touchscreen hovering support
Change-Id: Ia581d6cc6f30b3de91c08ed5be3c4ba76b9a5d31
2015-02-06 01:48:18 +00:00
Andreas Schneider
ca1a0eea09 macloader: Fix log output and return value.
Change-Id: Ic306ffd3bffc274406b9c11513a7ae2794578d16
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-27 14:44:27 -08:00
Andreas Schneider
c7212d0365 macloader: Use a variable for device type.
Change-Id: Ice29862ad6aaa15b07d6341893b0b8f1c65152e6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-27 14:44:04 -08:00
Andreas Schneider
3a73bd3f2e macloader: Close file when we don't need it anymore.
Change-Id: Ib539b45ed45f1dcfc9eea0475adb9c50d17011b5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-27 14:42:03 -08:00
Andreas Schneider
7558b9dda2 macloader: Use fchown() to change owner of the cidfile.
Change-Id: Ia99c0ae414366d91b6d0112f50b00630749ea570
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-27 14:41:51 -08:00
Andreas Schneider
7f517d761b macloader: Use fchmod() to change permissions.
Change-Id: I18bca9b022dba24403867b022af9d858aad72bc4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-27 14:41:41 -08:00
Andreas Schneider
2b601794d7 macloader: Fix build warning with LOG defines.
They need to be set before log.h is included or we will get redefiniton
warnings.

Change-Id: I87e971d32139a807998468e6a781e1f39dd7a8e5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-27 14:41:20 -08:00
Andreas Schneider
60f13f21c2 macloader: Make macloader a C file.
Change-Id: I6bd4a324cc5a596f2900027615b83f73736d12e0
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-27 14:41:08 -08:00