Commit graph

350 commits

Author SHA1 Message Date
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
Christopher N. Hesse
0ed5670246 macloader: Add SEMCO for BCM43569
Values were read out from a Galaxy Note N910C (Exynos) running stock KK.

Change-Id: I3ce4bd360633642c423482070d18af035f50d8d9
2015-01-26 10:21:33 -08:00
Howard Su
cbf8e0a2ed libril: use ip address as gateway in ppp network.
Fix data until these commits are completed:
http://review.cyanogenmod.org/82277
http://review.cyanogenmod.org/82329

Credits to Howard Su
http://review.cyanogenmod.org/80947

Change-Id: Iab88fd8d4ed1089cfdb724aa460597f6e39003bc
2015-01-04 11:12:31 +01:00
bmork
36b50656ab XMM626x: fix Samsung RIL v9 update
The Samsung proprietary RIL commands are mapped using the
same array as the standard commands. This means that the
MAX and UNSOL_MAX macros must be updated whenever standard
commands are added, or the Samsung commands will noe be
correctly mapped.

Change-Id: I68ebc62e1967c5d027fc407eaeef480e735734f8
2015-01-03 19:31:26 +01:00
Ricardo Cerqueira
518d1720da lights: Clean up light priorities and dedupe code
Attention > Notification > Battery

Change-Id: Ie3d17aced31673b281d718b76973d5774707a21d
2015-01-03 19:30:06 +01:00
Andreas Schneider
f3ba720f70 macloader: Add SEMCO3RD and WISOL for BCM4354.
Change-Id: I165f10d339acaa700f3e4e4b6f4576fda1da09a5
2015-01-03 19:29:28 +01:00
MarcKe
d973a7b153 macloader: add new murata vendor ID
Change-Id: If5968a040e9e8969985f0f307eb4a8a44486d94d
2014-12-30 17:58:54 +01:00
repo Shareef Ali
50c588b53f AdaptiveBacklight: fix illegal value exception.
Change-Id: I8ea84451c8dd4be35a2d2e62547fc81a2b704dd1
2014-12-27 17:31:30 -06:00
MarcKe
a81d58b35e macloader: add semcosh mac address
Change-Id: I510291c32c76140c5b37eb87a00600e8b4c034c0

macloader: add new semcosh mac addresses

Change-Id: I879e224a32acadde09762f5101a776869ee56f67
2014-12-26 18:53:42 +01:00
Howard Su
3896b5fce1 libril: remove -lpthread to fix build.
Change-Id: I3b132ef20fb5d784a3335356393c739af2fbe415
2014-11-29 06:30:07 +00:00