Commit graph

226 commits

Author SHA1 Message Date
Pavel Zhamaitsiak
6eec81990d Fix memory leaks and use of uninitialized pointers.
Bug: 23187886
Change-Id: Ic15a02a902b591362b5c52c20afabe511fb0bbb7
2016-02-22 21:41:15 +01:00
Simon Shields
1f58ecac5e ril: fix $(filter ...) derp
Change-Id: Ic2be936268701bd5f40056e5993ef35f5bd3969d
2016-02-17 21:10:26 +11:00
Brandon McAnsh
12e3f2684a ril: Group next gen Samsung modem's in same CFLAG
* Sprint variant of zeroflte uses mdm9x35 instead of ss333

Change-Id: Ifa7c1ea51dd57ea4fbeb41560c3a7c4fa65a85c8
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
2016-02-15 07:11:03 -08:00
Simon Shields
8c701ad125 cmhw: add SunlightEnhancement/MDNIE Outdoor mode support
Change-Id: I86ea442992a945cf6dcad939aa95f04caa72834c
2016-02-11 09:50:05 -08:00
Say
d1052770c5 libril: add initial support for ss333 modem
zeroflte uses ss333

Change-Id: If3c9d34ea31c06ce23bd8d0236a9f2ddbab3ddc4
Signed-off-by: Say <sktjdgns1189@naver.com>
2016-02-09 16:46:09 -05:00
Christopher N. Hesse
22da313eb2 power: Ensure node_path is a string literal
Change-Id: I20a87b04789e7fe2ae5938331e9d2fcef8134035
2016-02-01 12:36:54 +01:00
Christopher N. Hesse
79a9b15147 Initial unified Samsung lights HAL
Originally written by Andreas Schneider for Slte.

Change-Id: Iccff1e4532bc460896940451093470ece9086fb9
2016-01-28 22:11:16 +01:00
Andreas Schneider
87a5957b93 modemloader: Fix compilation warnings
Change-Id: I2c52b329cfe27e2df2f13213036b533c53e39d42
2016-01-25 12:22:31 +01:00
Christopher N. Hesse
de5e3c618d Initial unified Samsung power HAL
This is a power HAL for non-qcom Samsung devices.

It currently supports standard multi-core systems as well as
big.LITTLE configurations.

This HAL auto-detects your touchscreen and touchkey input switches
and handles the interactive state requests.

I also implemented a check to make sure your touchkeys won't turn
on when they're not supposed to (for example when a CMHW class disables
the capacitive buttons and activates a software navigation solution).
This previously needed a kernel hack to make sure the touchkeys wouldn't
be activated when resuming from suspend.

Change-Id: I22888c5ac490c85c417c5457ea4f457f78ed3521
2016-01-21 16:01:27 +01:00
Android-Andi
40afadb663 libsecril-client: spell AUDIO correctly
Change-Id: I10c3a4bdeb71685049f641018d7a5ef593f999a6
2016-01-07 11:53:10 +01:00
Christopher N. Hesse
6596730a45 Allow all devices to build the modemloader
It's needed by all Samsung devices using the proprietary
cpboot-daemon service, which applies to more than just
the currently supported modems (e.g. Shannon and friends).

Change-Id: I1f96f9b9926e12428cce9fa6976422c8eb53887e
2016-01-04 11:52:35 +01:00
Christopher N. Hesse
222cff079c Initial modemloader service
Change-Id: Icef590f4af8032cb06dc2554c6c64d9db48b7c83
2016-01-03 10:45:20 -08:00
Andreas Schneider
2140f1ff68 Add wifiloader
This is needed on some Samsung device to load the wifi module. Before
this was solved using a bash script which does:

  cat /proc/deferred_initcalls

but the new sepolicy rules don't allow init execute bash scripts. For
this we need a new tool which does the job and we can create sepolicy
rule for it.

Change-Id: I137cfaaff74955ad431bc09d74b0c970618dc3bf
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-12-19 19:49:35 +01:00
Christopher N. Hesse
b8400a23f5 ril: Unify network elements property check
frameworks/opt/telephony is using a slightly different named property
to check for the QANElements count.
Align the check here to the frameworks one to avoid redundancies.

Change-Id: I22f7cf070953026798d0ae4759e3c9845dba767c
2015-12-12 11:49:45 +01:00
Dheeraj CVR
bc0da3a96d exynos: multimedia: speed up color conversion from ARGB8888 to YUV420SP
Use NEON instructions for color conversion from ARGB8888 to YUV420SP. This
greatly improves performance and can help achieve 30fps+ framerates when
dealing with OMX_COLOR_FormatAndroidOpaque during Screen Recording and
Screen Casting.

Change-Id: Ifdaaf03e1ce6909822df3f046ef35dd977b84d17
2015-12-08 13:44:48 -05:00
Caio Schnepper
e48f7860b9 libgralloc: Fix refresh rate calculation
Calculated refresh rate can be 3% off
Reference: https://code.google.com/p/android/issues/detail?id=69391

Change-Id: I3b4efefcc0aef695ba48abdfb61f6d38b9d0a79c
2015-11-30 11:05:10 -02:00
forkbomb
e0568e128b libril: fix compilation with debugging enabled
Change-Id: Iac159175a23b2810e56c38fb82cae58c20dddb8e
2015-11-23 18:57:25 +11:00
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