GitHub/LineageOS/android_hardware_samsung.git
8 years agolibril: Remove unused include stable/cm-13.0-ZNH5Y
Christopher N. Hesse [Sat, 30 Jul 2016 17:47:13 +0000 (19:47 +0200)]
libril: Remove unused include

If someone needs this, it has to be fixed to read
TARGET_OUT_HEADERS (notice the extra 's').
We are only getting away with it right now because M ignores empty
include paths, but N will barf on this.

Change-Id: I7f010398a40ebaf6811a58a121590944445fbcba

8 years agoDisplayModeControl: Add null check to setMode()
Kevin F. Haggerty [Tue, 19 Jul 2016 04:21:29 +0000 (22:21 -0600)]
DisplayModeControl: Add null check to setMode()

* getCurrentMode() can return null. Don't let setMode() try set a
  null mode because bad things happen.
* Let's make cmhw safe again (groan, I know that one was bad)

Change-Id: I20bdee4a0e8cbb0598f35770d71902332db51ddb

8 years agoUnbreak AdvancedDisplay
Luca Stefani [Fri, 15 Jul 2016 15:55:11 +0000 (08:55 -0700)]
Unbreak AdvancedDisplay

Change-Id: I546ad32983d9f6250319cf36a8ea528ee8473763

8 years agoAutomatic translation import
blinky@build01 [Thu, 14 Jul 2016 16:38:55 +0000 (09:38 -0700)]
Automatic translation import

Change-Id: I45a29ea2169735036b2fc2dbaeab822f4e6a68ce
Ticket: -

8 years agoAutomatic translation import
pinky@build01 [Wed, 13 Jul 2016 17:01:49 +0000 (10:01 -0700)]
Automatic translation import

Change-Id: I65fff5aaeb44f5b5e2a26c99b8a179660e0509ea
Ticket: -

8 years agopower: Add double tap to wake support
Christopher N. Hesse [Wed, 22 Jun 2016 21:04:39 +0000 (23:04 +0200)]
power: Add double tap to wake support

Change-Id: Icb0b6d442544b39576ec74e70e97751d6bc70590

8 years agoAdvancedDisplay: Fix build error
Arne Coucheron [Wed, 13 Jul 2016 05:05:45 +0000 (07:05 +0200)]
AdvancedDisplay: Fix build error

Change-Id: Ic0bac704bcf0b9bbcc374765db7df8b339bd1d42

8 years agopower: Fix compilation failure
Ethan Chen [Wed, 13 Jul 2016 01:38:00 +0000 (18:38 -0700)]
power: Fix compilation failure

Change-Id: Ib0923ba5c0976e2d00e6f190b370936a14a9b6df

8 years agopower: Fix I/O business parameter setting
Christopher N. Hesse [Mon, 11 Jul 2016 13:49:49 +0000 (15:49 +0200)]
power: Fix I/O business parameter setting

This parameter should be set even if we bail out early.

Change-Id: Iae78a13db229538960f1c7ec4c1f95f530810d71

8 years agopower: Add support for auto power modes
Christopher N. Hesse [Mon, 11 Jul 2016 13:48:35 +0000 (15:48 +0200)]
power: Add support for auto power modes

Do not disable input devices in case of the screen still
being enabled.

Change-Id: Ide6bd7ca3d41ac64b472c5e68fdc545c8f851b2b

8 years agocmhw: Add DisplayModeControl support
Zhao Wei Liew [Thu, 30 Jun 2016 10:47:22 +0000 (18:47 +0800)]
cmhw: Add DisplayModeControl support

Make use of LiveDisplay's implementation of display modes.

Remove AdvancedDisplay's display mode support as it duplicates
functionality provided by the CMHW implementation.

Based on Sean hoyt's original work on klmintwifi.

Change-Id: I455a8c764118adbdb997b2ba9145e24fecb8199b

8 years agohardware: Clean up CMHW and AdvancedDisplay
Zhao Wei Liew [Wed, 29 Jun 2016 12:21:59 +0000 (20:21 +0800)]
hardware: Clean up CMHW and AdvancedDisplay

 - Use CMSDK FileUtils
 - Simplify, yet harden checks
 - Use static final Strings
 - Remove unnecessary imports
 - Remove unnecessary Strings
 - Update copyright

Change-Id: Id2f0f2fdf5be7e2b29a3910a6aa56a3aad10868f

8 years agoexynos: multimedia: implement proper EOS signalling for encoder
Dheeraj CVR [Sun, 27 Mar 2016 13:31:41 +0000 (17:31 +0400)]
exynos: multimedia: implement proper EOS signalling for encoder

Change-Id: Ib1e33f9c9c6ee2bfe0280f1b73d731e3191aa56d

8 years agoliblights: Add BLN support
Arnab Chaudhuri [Sat, 7 May 2016 09:14:00 +0000 (14:44 +0530)]
liblights: Add BLN support

Change-Id: I859416c484777fcf08b5bf8f72ba9f9838e4c1b3

8 years agoAutomatic translation import
Michael Bestas [Sat, 16 Apr 2016 14:52:54 +0000 (17:52 +0300)]
Automatic translation import

Change-Id: I7ef909edb8aef366d7b03c05b0b36e96df531888

8 years agoexynos4: gralloc: we have an ALIGN macro, use it
Simon Shields [Fri, 15 Apr 2016 12:44:30 +0000 (22:44 +1000)]
exynos4: gralloc: we have an ALIGN macro, use it

Change-Id: I1ef089b004d1d1e3f2ae525638954536ca881c7a

8 years agoril: Restore alphabetical order for modem barrier
Christopher N. Hesse [Fri, 15 Apr 2016 16:38:35 +0000 (18:38 +0200)]
ril: Restore alphabetical order for modem barrier

Change-Id: Iae8f7cb6500c16d5b88d8e60d4e7e97ee6539a19

8 years agolibril: add initial support for tss310 modem
messi2050 [Thu, 14 Apr 2016 16:42:26 +0000 (22:12 +0530)]
libril: add initial support for tss310 modem

 - j7elte use tss310

Change-Id: I9bea333de037d4d1c8a9bc2111a3455f56b61c9a
Signed-off-by: messi2050 <mino_forever@yahoo.com>
8 years agolibril: Use a board flag for video call field
Andreas Schneider [Fri, 1 Apr 2016 19:19:59 +0000 (21:19 +0200)]
libril: Use a board flag for video call field

xmm7260 on SLTE doesn't have this flag anymore. Devices which need it
should specify the flag.

Change-Id: I166f579274667919756d3bb90e0b182165525975
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
8 years agoAutomatic translation import
Michael Bestas [Tue, 5 Apr 2016 22:25:38 +0000 (01:25 +0300)]
Automatic translation import

Change-Id: Id8e0b97763e94e1c8108e75cd94de03d422748ec

8 years agolibril: Remove RIL_REQUEST_DIAL_EMERGENCY
Christopher N. Hesse [Sun, 27 Mar 2016 19:31:04 +0000 (21:31 +0200)]
libril: Remove RIL_REQUEST_DIAL_EMERGENCY

This is not part of the standard API, so remove it.
Samsung devices almost always use the RIL_REQUEST_DIAL_EMERGENCY_CALL
hook, so devices should implement that in their specific RIL subclass.

Change-Id: I2cf9eee00a4b5b02e998d8efcbefa87a9ca7b7b4

8 years agoril: fix libril if we don't overwrite the header in our device tree
Andreas Blaesius [Mon, 28 Mar 2016 22:44:45 +0000 (00:44 +0200)]
ril: fix libril if we don't overwrite the header in our device tree

Change-Id: Ic580b80b28c738828f4c19aeb54421d9f98c7d40

8 years agolibril: Move vendor commands header
Christopher N. Hesse [Sun, 27 Mar 2016 19:04:38 +0000 (21:04 +0200)]
libril: Move vendor commands header

Devices can now override this header in the device tree.

Change-Id: I6e3814342ee22513e556ba92264b0c2651722af3

8 years agoAutomatic translation import
Michael Bestas [Sun, 27 Mar 2016 21:50:48 +0000 (00:50 +0300)]
Automatic translation import

Change-Id: I9f757393f0b772d813db58fe42bff9fbc1826ad1

8 years agoMove Advanced Display so exynos5/7 can use it
deadman96385 [Mon, 21 Mar 2016 19:21:38 +0000 (14:21 -0500)]
Move Advanced Display so exynos5/7 can use it

Change-Id: Idc255301f30cff6b41d04db6f14fa421ee9eddb5

8 years agoexynos4: squash opensource libUMP
Javi Ferrer [Thu, 20 Nov 2014 22:35:51 +0000 (04:05 +0530)]
exynos4: squash opensource libUMP

commit f40eeecbe44ee3ca5f4406e8881f6ffe1507d87c
Author: Dheeraj CVR <cvr.dheeraj@gmail.com>
Date:   Sun Dec 14 16:41:30 2014 +0530

    exynos4: libUMP: fix headers for newer mali driver

    Change-Id: Ia81fa1949d04d809b4c5045269a70d7bab758f4a

commit 8c3792c590c0591647ab5ab59ff74d11e5f8afdd
Author: Dheeraj CVR <cvr.dheeraj@gmail.com>
Date:   Sun Dec 14 16:38:51 2014 +0530

    exynos4: libUMP: use relative include paths

    Change-Id: If46c68512d0404df0d46734531a6160eb18b7ce5

commit feb6f2c45d4f87655a2f391114946933a128e60c
Author: Javi Ferrer <javi.f.o@gmail.com>
Date:   Fri Nov 21 04:05:51 2014 +0530

    exynos4: open source libUMP

    - Deleted unneeded include ion.h
    - Correct libsecion build
    - Correct gralloc build and bring back ump_ref_drv_ion_import

Change-Id: I1da602ec77d78e5056ea0c37f328c6c1b0e60e00

8 years agoexynos4: commonize AdvancedDisplay [1/3]
Simon Shields [Fri, 18 Mar 2016 12:12:15 +0000 (23:12 +1100)]
exynos4: commonize AdvancedDisplay [1/3]

* show in settings
* drop support lib
* drop unnecessary viewpager/tab bar
* drop unused strings/resources

Change-Id: I90c62d7b106ad744ae698044f6f17a759fcbf8a3

8 years agomodemloader: Use hw.revision instead of ro.revision
Christopher N. Hesse [Tue, 15 Mar 2016 18:43:04 +0000 (19:43 +0100)]
modemloader: Use hw.revision instead of ro.revision

This change requires you to hexedit your cbd binary,
but in turn frees us from having to ignore ro.revision
in init.

Change-Id: I9c43fbbf5895888ea4bceff2a08a5ed8de77b921

8 years agomacloader: add n5100 murata wifi address stable/cm-13.0-ZNH0E
RGIB [Fri, 11 Mar 2016 14:56:23 +0000 (15:56 +0100)]
macloader: add n5100 murata wifi address

Change-Id: I8296825f3d17bfdaccfa990d45598652ab40faaa

8 years agolibsecril-client: Use the correct incall audio paths
Christopher N. Hesse [Tue, 8 Mar 2016 14:50:23 +0000 (15:50 +0100)]
libsecril-client: Use the correct incall audio paths

The modems used in recent Samsung devices use different paths
than older devices apparently.

These values were extracted from hexdumps at the correct data
positions from the device specific libsecril-client.so blobs.

Change-Id: I0547cb1de40130843fee3f1310e1e6aed95195c7

8 years agolibril: Make ST-E Thor M7450 and Intel XMM7260 next gen modems as well
Christopher N. Hesse [Mon, 22 Feb 2016 20:57:39 +0000 (21:57 +0100)]
libril: Make ST-E Thor M7450 and Intel XMM7260 next gen modems as well

Change-Id: I7cacda8cdaf9e285688c06c42ccf6629efc2af9d

8 years agopowerhal: Add set_profile support
Andreas Schneider [Wed, 3 Feb 2016 09:43:47 +0000 (10:43 +0100)]
powerhal: Add set_profile support

Change-Id: I0d7fb8c5a7e5e06c300cbb4b78b6e1013d7bff6a
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
8 years agomacloader: Add another SEMCO mac address half
Christopher N. Hesse [Mon, 29 Feb 2016 16:55:11 +0000 (17:55 +0100)]
macloader: Add another SEMCO mac address half

Order existing SEMCO values while we're at it.

Change-Id: I2b5c8a3e458cbcf41ea78eb953117a6779db2cc0

8 years agoFix memory leaks and use of uninitialized pointers.
Pavel Zhamaitsiak [Tue, 18 Aug 2015 18:40:01 +0000 (11:40 -0700)]
Fix memory leaks and use of uninitialized pointers.

Bug: 23187886
Change-Id: Ic15a02a902b591362b5c52c20afabe511fb0bbb7

8 years agoril: fix $(filter ...) derp
Simon Shields [Wed, 17 Feb 2016 10:10:26 +0000 (21:10 +1100)]
ril: fix $(filter ...) derp

Change-Id: Ic2be936268701bd5f40056e5993ef35f5bd3969d

8 years agoril: Group next gen Samsung modem's in same CFLAG
Brandon McAnsh [Sun, 14 Feb 2016 02:01:05 +0000 (21:01 -0500)]
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>
8 years agocmhw: add SunlightEnhancement/MDNIE Outdoor mode support
Simon Shields [Tue, 9 Feb 2016 07:18:07 +0000 (18:18 +1100)]
cmhw: add SunlightEnhancement/MDNIE Outdoor mode support

Change-Id: I86ea442992a945cf6dcad939aa95f04caa72834c

8 years agolibril: add initial support for ss333 modem
Say [Sun, 13 Dec 2015 08:25:01 +0000 (17:25 +0900)]
libril: add initial support for ss333 modem

zeroflte uses ss333

Change-Id: If3c9d34ea31c06ce23bd8d0236a9f2ddbab3ddc4
Signed-off-by: Say <sktjdgns1189@naver.com>
8 years agopower: Ensure node_path is a string literal
Christopher N. Hesse [Mon, 1 Feb 2016 11:36:54 +0000 (12:36 +0100)]
power: Ensure node_path is a string literal

Change-Id: I20a87b04789e7fe2ae5938331e9d2fcef8134035

8 years agoInitial unified Samsung lights HAL
Christopher N. Hesse [Tue, 26 Jan 2016 11:17:55 +0000 (12:17 +0100)]
Initial unified Samsung lights HAL

Originally written by Andreas Schneider for Slte.

Change-Id: Iccff1e4532bc460896940451093470ece9086fb9

8 years agomodemloader: Fix compilation warnings
Andreas Schneider [Mon, 4 Jan 2016 12:59:17 +0000 (13:59 +0100)]
modemloader: Fix compilation warnings

Change-Id: I2c52b329cfe27e2df2f13213036b533c53e39d42

8 years agoInitial unified Samsung power HAL
Christopher N. Hesse [Mon, 21 Dec 2015 20:28:23 +0000 (21:28 +0100)]
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

8 years agolibsecril-client: spell AUDIO correctly
Android-Andi [Thu, 7 Jan 2016 10:51:38 +0000 (11:51 +0100)]
libsecril-client: spell AUDIO correctly

Change-Id: I10c3a4bdeb71685049f641018d7a5ef593f999a6

8 years agoAllow all devices to build the modemloader
Christopher N. Hesse [Mon, 4 Jan 2016 10:52:28 +0000 (11:52 +0100)]
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

8 years agoInitial modemloader service
Christopher N. Hesse [Fri, 1 Jan 2016 15:36:37 +0000 (16:36 +0100)]
Initial modemloader service

Change-Id: Icef590f4af8032cb06dc2554c6c64d9db48b7c83

8 years agoAdd wifiloader
Andreas Schneider [Sat, 19 Dec 2015 13:29:21 +0000 (14:29 +0100)]
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>
8 years agoril: Unify network elements property check
Christopher N. Hesse [Sat, 12 Dec 2015 10:49:42 +0000 (11:49 +0100)]
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

8 years agoexynos: multimedia: speed up color conversion from ARGB8888 to YUV420SP
Dheeraj CVR [Sat, 30 May 2015 19:08:59 +0000 (23:08 +0400)]
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

8 years agolibgralloc: Fix refresh rate calculation
Caio Schnepper [Mon, 30 Nov 2015 13:05:10 +0000 (11:05 -0200)]
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

9 years agolibril: fix compilation with debugging enabled
forkbomb [Mon, 23 Nov 2015 07:37:37 +0000 (18:37 +1100)]
libril: fix compilation with debugging enabled

Change-Id: Iac159175a23b2810e56c38fb82cae58c20dddb8e

9 years agosamsung: Compilation fixes
rogersb11 [Tue, 13 Oct 2015 02:03:21 +0000 (22:03 -0400)]
samsung: Compilation fixes

* Add missing headers
* Cast values to correct types

Change-Id: Iaf621c562e884daeb22f6ec700d6989ba6ba1aef

9 years agoril: Use debug log level and not error
Andreas Schneider [Fri, 23 Oct 2015 06:36:26 +0000 (08:36 +0200)]
ril: Use debug log level and not error

Change-Id: I8f017cb181967790260183fd06d1226d303bd2b8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agoril: Fix network operator search
Andreas Schneider [Thu, 22 Oct 2015 14:20:51 +0000 (16:20 +0200)]
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>
9 years agoexynos4: Fix build of hwc and gralloc
Caio Schnepper [Mon, 19 Oct 2015 23:06:03 +0000 (21:06 -0200)]
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

9 years agoModify RIL Unsol Message Wakelock to 200ms
Nathan Harold [Tue, 28 Jul 2015 21:54:58 +0000 (14:54 -0700)]
Modify RIL Unsol Message Wakelock to 200ms

bug: 22456054

Change-Id: Id41e001f98b455bec5f004438f5d8498b17aaf2d

9 years agoModem activity info
Prerepa Viswanadham [Thu, 28 May 2015 07:37:32 +0000 (00:37 -0700)]
Modem activity info

Change-Id: Iab8fbdeae0867c6e9cb9027b08317b1b5a2c9dfc

9 years agoAdd missing extern "C" declaration.
Chih-Hung Hsieh [Wed, 6 May 2015 22:12:30 +0000 (15:12 -0700)]
Add missing extern "C" declaration.

BUG: 20891299
Change-Id: Iedfd2e8e5bd32014f011352898763bcc0887b6b9

9 years agoRemove verbose logs
Robert Greenwalt [Wed, 29 Apr 2015 23:57:39 +0000 (16:57 -0700)]
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

9 years agoLink Capacity Estimation - RIL support
fenglu [Tue, 14 Apr 2015 21:53:55 +0000 (14:53 -0700)]
Link Capacity Estimation - RIL support

Change-Id: I9c4d4901d823d719be2b8bdec64f08eda342de53

9 years agoFix build issues after the merge
Vinit Deshpande [Wed, 15 Apr 2015 20:31:05 +0000 (13:31 -0700)]
Fix build issues after the merge

Change-Id: Ia856311187a0b2168cb859bd8b2300ff59df6569

9 years agolibril: tag RILC messages to radio log
Mark Salyzyn [Thu, 9 Apr 2015 14:18:35 +0000 (07:18 -0700)]
libril: tag RILC messages to radio log

Change-Id: Ia3234aa933249eb9f383c7e45c3f67b3c0c50634

9 years agoIntroduction of the new SAP-UIM socket
Dheeraj Shetty [Wed, 2 Jul 2014 19:27:57 +0000 (21:27 +0200)]
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

9 years agoRemoval of dead code and adding log messages to make it easier
Nanik Tolaram [Tue, 3 Feb 2015 01:50:04 +0000 (12:50 +1100)]
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>
9 years agoWe have POSIX clocks.
Elliott Hughes [Fri, 9 Jan 2015 23:27:28 +0000 (15:27 -0800)]
We have POSIX clocks.

We're probably not running the RIL on a Mac.

Change-Id: Ib6be56cd26d67e2b72b559cb364b1e34ab613016

9 years agolibgralloc_ump: Fix build
Caio Schnepper [Wed, 14 Oct 2015 19:07:24 +0000 (16:07 -0300)]
libgralloc_ump: Fix build

Included legacy <pixelflinger/format.h> to continue
using "GGL_PIXEL_FORMAT_L_8" pixel format

Change-Id: If08f90333bbcd9857f0dbcb462aaf6e8ad4d689f

9 years agomacloader: Including missing errno header
Christopher N. Hesse [Wed, 16 Sep 2015 09:00:56 +0000 (11:00 +0200)]
macloader: Including missing errno header

Change-Id: I25ea307e4f4f8754563fc69f53db9e5c087c3bfb

9 years agomacloader: include errno.h
Caio Schnepper [Sat, 10 Oct 2015 05:14:28 +0000 (02:14 -0300)]
macloader: include errno.h

Fix build

Change-Id: Ib60f66ddc2065bc92cd32e507ae9f3a5023f54c2

9 years agoril: Support new sound manger RIL responses
Andreas Schneider [Wed, 16 Sep 2015 14:48:44 +0000 (16:48 +0200)]
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

9 years agolibsecril-client: Fix SetCallAudioPath for current devices stable/cm-12.1-YOG4P
Andreas Schneider [Mon, 24 Aug 2015 17:55:42 +0000 (19:55 +0200)]
libsecril-client: Fix SetCallAudioPath for current devices

Change-Id: I38f10432f8e9a257af3e74312616d07698edd20f
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agolibril: Add support for ST-Ericsson Thor M7450 modems
Christopher N. Hesse [Fri, 26 Jun 2015 12:53:56 +0000 (14:53 +0200)]
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

9 years agoril: Fix compilation with debug messages turned on
Andreas Schneider [Tue, 23 Jun 2015 16:41:38 +0000 (18:41 +0200)]
ril: Fix compilation with debug messages turned on

Change-Id: Ifabf416ebdfe681e63df1d127567d0ef54cfc0ec
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agoexynos: multimedia: fix resubmitting CSD for NuPlayer
Dheeraj CVR [Sat, 30 May 2015 19:44:33 +0000 (23:44 +0400)]
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

9 years agolibril: Fix element count
NBruderman [Mon, 8 Jun 2015 12:54:55 +0000 (15:54 +0300)]
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

9 years agolibril: Fix network operator search
Utkarsh Gupta [Sun, 10 May 2015 11:23:37 +0000 (16:53 +0530)]
libril: Fix network operator search

Change-Id: Ib904875c403942ec96dfa229080d9543d7c9b8fa

9 years agolibril: Fix signal strength for xmm6260 too
Utkarsh Gupta [Thu, 23 Apr 2015 07:51:49 +0000 (13:21 +0530)]
libril: Fix signal strength for xmm6260 too

Change-Id: I3b35eb2c18df9110c7ec1bd3cf989cd34cc18fd7

9 years agolibfimg3x: Remove android_pmem.h include
Caio Schnepper [Mon, 27 Apr 2015 02:01:22 +0000 (23:01 -0300)]
libfimg3x: Remove android_pmem.h include

Change-Id: I514e96676578a97b9481643e58a0e49a8d017678

9 years agolibril: Add missing semicolon
Caio Schnepper [Tue, 14 Apr 2015 11:03:43 +0000 (08:03 -0300)]
libril: Add missing semicolon

Change-Id: I681e98abf600cd78a0783919d00b0acd215c6aaf

9 years agolibril: Avoid strncat which doesn't check if we overflow
Andreas Schneider [Mon, 13 Apr 2015 21:04:05 +0000 (23:04 +0200)]
libril: Avoid strncat which doesn't check if we overflow

Change-Id: I547e071316e8b4492b9837aae2096f27c02b67db
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agolibril: Make data a const pointer in RIL_onUnsolicitedResponse()
Andreas Schneider [Mon, 13 Apr 2015 20:54:49 +0000 (22:54 +0200)]
libril: Make data a const pointer in RIL_onUnsolicitedResponse()

Change-Id: I5b57da9e2672ea8455481e55794c33759cb741db
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agolibril: Fix signal strength
Utkarsh Gupta [Mon, 13 Apr 2015 08:03:37 +0000 (13:33 +0530)]
libril: Fix signal strength

Change-Id: I81ce6dbb99a04c62666823602d1b72bb3fc50a1c

9 years agolibril: rewrite preferred network type
Daniel Hillenbrand [Sun, 12 Apr 2015 09:53:23 +0000 (11:53 +0200)]
libril: rewrite preferred network type

NETWORK_MODE_GLOBAL => NETWORK_MODE_WCDMA_PREF

Change-Id: I3087e4be3a6ff700b39544279fa0e265b9182180

9 years agolibril: move samsung specific into seperate table, update to v11
Howard Su [Sun, 12 Apr 2015 08:25:05 +0000 (10:25 +0200)]
libril: move samsung specific into seperate table, update to v11

Change-Id: I6c7121a30dbbf9edc9573b8f2dee308366bab9a1

9 years agolibril: Readd support for MODEM_TYPE_XMM7260
Andreas Schneider [Tue, 7 Apr 2015 17:01:54 +0000 (19:01 +0200)]
libril: Readd support for MODEM_TYPE_XMM7260

Change-Id: I395e9cbfd1a42334e5e6bbb706eef9be157ecd24
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agolibril: Fix #elif for MODEM_TYPE_XMM6260
Andreas Schneider [Tue, 7 Apr 2015 17:01:34 +0000 (19:01 +0200)]
libril: Fix #elif for MODEM_TYPE_XMM6260

Change-Id: I71e64103aba6b374b6181f557030409be084bb25
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agolibril: Use consistent names for modem defines
Andreas Schneider [Tue, 7 Apr 2015 16:58:14 +0000 (18:58 +0200)]
libril: Use consistent names for modem defines

Change-Id: I3ac65d2458878a6a631439be4f830c851aa50759
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agolibril: The data variable should be const
Andreas Schneider [Tue, 7 Apr 2015 17:14:05 +0000 (19:14 +0200)]
libril: The data variable should be const

Change-Id: I72a694e603c1ff18b09e3c3208cae8c5af937513
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agolibril: Fix processRadioState prototype
Andreas Schneider [Tue, 7 Apr 2015 17:13:42 +0000 (19:13 +0200)]
libril: Fix processRadioState prototype

Change-Id: I19c5c2319fe4110c3859012a27a08d5c7f942177
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agoFix the build error of some samsung devices which provides libril (e.g. ks01lte)
K Yasu [Tue, 7 Apr 2015 13:10:03 +0000 (22:10 +0900)]
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)

9 years agolibril: Merge xmm6262 and xmm6260 to single lib.
Howard Su [Wed, 7 Jan 2015 07:55:57 +0000 (15:55 +0800)]
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)

9 years agolibrilsec-client: Add support for xmm7260 modem
Andreas Schneider [Fri, 23 Jan 2015 21:41:22 +0000 (22:41 +0100)]
librilsec-client: Add support for xmm7260 modem

Change-Id: If287527a26a1f5c79ec493ad2cd1cd7152ba27db
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agolibril: Add support for xmm7260 modem.
Andreas Schneider [Thu, 1 Jan 2015 18:00:04 +0000 (19:00 +0100)]
libril: Add support for xmm7260 modem.

Change-Id: Ia3749bd4c43a2e233e722462dd6423fe8c692177
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agomacloader: Add support to set nvram calibration file.
Andreas Schneider [Mon, 26 Jan 2015 21:56:30 +0000 (22:56 +0100)]
macloader: Add support to set nvram calibration file.

Change-Id: I0eb99ad6084eb8cd4452a91b13dd75384785f5a8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit e283a09f99d0cbad2cf8b903ffe2da1c3e44663e)

9 years agocmhw: Add touchscreen hovering support
Franco [Tue, 27 Jan 2015 23:44:35 +0000 (20:44 -0300)]
cmhw: Add touchscreen hovering support

Change-Id: Ia581d6cc6f30b3de91c08ed5be3c4ba76b9a5d31

9 years agomacloader: Fix log output and return value.
Andreas Schneider [Mon, 26 Jan 2015 21:49:49 +0000 (22:49 +0100)]
macloader: Fix log output and return value.

Change-Id: Ic306ffd3bffc274406b9c11513a7ae2794578d16
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agomacloader: Use a variable for device type.
Andreas Schneider [Mon, 26 Jan 2015 21:45:26 +0000 (22:45 +0100)]
macloader: Use a variable for device type.

Change-Id: Ice29862ad6aaa15b07d6341893b0b8f1c65152e6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agomacloader: Close file when we don't need it anymore.
Andreas Schneider [Mon, 26 Jan 2015 22:30:13 +0000 (23:30 +0100)]
macloader: Close file when we don't need it anymore.

Change-Id: Ib539b45ed45f1dcfc9eea0475adb9c50d17011b5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agomacloader: Use fchown() to change owner of the cidfile.
Andreas Schneider [Mon, 26 Jan 2015 22:29:18 +0000 (23:29 +0100)]
macloader: Use fchown() to change owner of the cidfile.

Change-Id: Ia99c0ae414366d91b6d0112f50b00630749ea570
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agomacloader: Use fchmod() to change permissions.
Andreas Schneider [Mon, 26 Jan 2015 22:19:03 +0000 (23:19 +0100)]
macloader: Use fchmod() to change permissions.

Change-Id: I18bca9b022dba24403867b022af9d858aad72bc4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agomacloader: Fix build warning with LOG defines.
Andreas Schneider [Mon, 26 Jan 2015 22:14:17 +0000 (23:14 +0100)]
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>
9 years agomacloader: Make macloader a C file.
Andreas Schneider [Mon, 26 Jan 2015 21:58:30 +0000 (22:58 +0100)]
macloader: Make macloader a C file.

Change-Id: I6bd4a324cc5a596f2900027615b83f73736d12e0
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>