GitHub/LineageOS/android_hardware_samsung.git
6 years agolibril: bring back signalStrength v5 and v6
Martin Bouchet [Sat, 23 Sep 2017 07:55:52 +0000 (04:55 -0300)]
libril: bring back signalStrength v5 and v6

Change-Id: Ie0513986e9cabe9b363198e0192b18a0a8fe97de

6 years agoril: import Oreo AOSP libril
Martin Bouchet [Sat, 23 Sep 2017 07:54:37 +0000 (04:54 -0300)]
ril: import Oreo AOSP libril

Change-Id: I00750bad812dc263e9c74a504b48512a892376c8

6 years agoaudio: Fix BT sample rate handling properly
Christopher N. Hesse [Tue, 16 Jan 2018 17:33:38 +0000 (18:33 +0100)]
audio: Fix BT sample rate handling properly

This should now support both old and new headsets,
as we rely on codec negotiation in the bluetooth
stack for narrow/wide band switching.

Change-Id: Ie9d308dfc55726fd1591a7d158f610bd267340e6
(cherry picked from commit d462f7b86e957f858959ef5d80fd1744689ee6ea)

6 years agoaudio: End voice call in set_mode()
Christopher N. Hesse [Fri, 17 Nov 2017 19:41:11 +0000 (20:41 +0100)]
audio: End voice call in set_mode()

Previously, we would only end the voice call once the next output
stream happened (and parameters would be set).

Change-Id: Id0d2711605e57ad69d9b26b36afb562444349358
(cherry picked from commit 5169e86c10b7429b01d6ab0500a0509141dcbfe1)

6 years agoaudio: Fix incall device switch handling
Christopher N. Hesse [Fri, 17 Nov 2017 19:27:50 +0000 (20:27 +0100)]
audio: Fix incall device switch handling

The whole code block was no-op, since we would override
(in|out)_snd_device at a later point anyways.

Change-Id: Ieb2b0918c9c72f18d195d6b34b5c9768fce130b3
(cherry picked from commit f33a728b205f7656ca6211a07e3dd69c623b75ca)

6 years agoaudio: Improve code readability
Christopher N. Hesse [Thu, 16 Nov 2017 16:01:37 +0000 (17:01 +0100)]
audio: Improve code readability

Change-Id: I5b1f24ab6098a037559603a92b4a1a38987488f5
(cherry picked from commit 4b29ec95d88d7cb99a7c55f0d3297a3b8c2149c4)

6 years agoaudio: Initial support for amplifier HALs
Christopher N. Hesse [Fri, 4 Aug 2017 19:17:55 +0000 (21:17 +0200)]
audio: Initial support for amplifier HALs

Change-Id: I04ef5b89ca595a0df02f6a4a68748bd0d0cdb245
(cherry picked from commit 7a82a0e691d884045c78d1cb9f7ab0dd51a5d871)

6 years agolibril: Fix multisim flags
Christopher N. Hesse [Fri, 20 Oct 2017 16:34:57 +0000 (18:34 +0200)]
libril: Fix multisim flags

Change-Id: Idb2ea518c115c1dbfbbbbb79094938ce006f40d8
(cherry picked from commit c98cc605c67e950bf14aa9f0d14966382ec45a0c)

6 years agoAdvancedDisplay: Restore back button to the action bar
Bruno Martins [Thu, 28 Dec 2017 01:24:44 +0000 (02:24 +0100)]
AdvancedDisplay: Restore back button to the action bar

Change-Id: I7ae2d1ccbb0a55fc28c31d4791aaae1169b8221f

6 years agoAdvancedDisplay: Re-integrate into Settings
Bruno Martins [Thu, 28 Dec 2017 01:20:44 +0000 (02:20 +0100)]
AdvancedDisplay: Re-integrate into Settings

 * Apply the default Oreo theme and inherit the layouts from Google
   for the Settings app, in order to keep UI consistency.

 * Get rid of SettingsDrawerActivity as it no longer fits in.

 * Add required appcompat and preference support libraries.

 * Integrate into display settings category using IA.

Change-Id: I8438e0ebec27085df2be4668f8f7170d2010fb20

6 years agoAdvancedDisplay: cyanogenmod -> lineageos
micky387 [Wed, 27 Dec 2017 21:35:26 +0000 (22:35 +0100)]
AdvancedDisplay: cyanogenmod -> lineageos

Change-Id: Ie6d64f0995f266d2dbe3e16c8032820cc5164c1f

6 years agodtbhtool: Use right local module class to avoid relocation packaging
Kevin F. Haggerty [Fri, 5 Jan 2018 16:53:10 +0000 (09:53 -0700)]
dtbhtool: Use right local module class to avoid relocation packaging

* UTILITY_EXECUTABLES is not a thing anymore, but EXECUTABLES are
  not packed

Change-Id: I1b27c4e23c08579f478af0756e86263e9ab4d740

6 years agodtbhtool: Define both host and target libdtbimg
Kevin F. Haggerty [Fri, 5 Jan 2018 16:39:35 +0000 (09:39 -0700)]
dtbhtool: Define both host and target libdtbimg

* The utilities need it and not defining the target library results
  in a missing dependency

Change-Id: I745d8586a4a2cc5e3b8bdbe4a7e9dc19e1161db6

6 years agodtbhtool: Use BoringSSL instead of mincrypt
Kevin F. Haggerty [Fri, 5 Jan 2018 16:34:52 +0000 (09:34 -0700)]
dtbhtool: Use BoringSSL instead of mincrypt

* mincrypt is gone as of LineageOS/android_system_core@6b11c13ae

Change-Id: Ia3b1dee747510daff45a345ae603181be5ab6023

6 years agomacloader: Stop allowing G and O write perms to the cidfile
Kevin F. Haggerty [Thu, 28 Dec 2017 16:01:32 +0000 (09:01 -0700)]
macloader: Stop allowing G and O write perms to the cidfile

* Only macloader should ever write to this, but others (e.g,
  libbt-vendor.so) read from it. 0644 is more than enough.

Change-Id: I3d2fb3dfec1ba81c9c382ed18c93114e641df4a0

6 years agomacloader: Move device dependent modules to /vendor
Diego Wilson [Sat, 25 Feb 2017 01:07:28 +0000 (17:07 -0800)]
macloader: Move device dependent modules to /vendor

Change-Id: I184ec79c8fc4d6047146b84bcc935aef129fc7f4

6 years agofingerprint: bauth: Bump version to 2.1 lineage-15.0
LuK1337 [Mon, 28 Aug 2017 20:22:42 +0000 (22:22 +0200)]
fingerprint: bauth: Bump version to 2.1

* Required for fingerprint HIDL HAL in O.

Change-Id: Iec8450521a51bbfddf2225274a7a6982baa42561

6 years agoconsumerir: Move device dependent modules to /vendor
Diego Wilson [Sat, 25 Feb 2017 01:07:28 +0000 (17:07 -0800)]
consumerir: Move device dependent modules to /vendor

Change-Id: Ia05938d479babea4e0d7d25d52c818a43cedf362

6 years agoliblights: Move device dependent modules to /vendor
Diego Wilson [Sat, 25 Feb 2017 01:07:28 +0000 (17:07 -0800)]
liblights: Move device dependent modules to /vendor

Change-Id: Ia7534e9188048b95e6c85497cfeb5e28a279629b

7 years agosamsung: hardware: Rebrand from cmhw to lineagehw
Arne Coucheron [Fri, 13 Oct 2017 01:12:11 +0000 (03:12 +0200)]
samsung: hardware: Rebrand from cmhw to lineagehw

Change-Id: I9576ca2d6bf5dfb9d0259e314f20aa0fe7f775b5

7 years agodtbhtool: Use libfdt from external/dtc
Christopher N. Hesse [Wed, 23 Aug 2017 13:02:03 +0000 (15:02 +0200)]
dtbhtool: Use libfdt from external/dtc

Change-Id: Ia3e38120965125de684e39213f94ad53238d55ce

7 years agodtbToolCM -> dtbToolLineage
LuK1337 [Mon, 28 Aug 2017 20:24:35 +0000 (22:24 +0200)]
dtbToolCM -> dtbToolLineage

Change-Id: I515ce4855cbaa2157a25dac56f18a6b1ca60ec84

7 years agowifiloader: Load kernel module if present
Christopher N. Hesse [Wed, 2 Aug 2017 13:21:35 +0000 (15:21 +0200)]
wifiloader: Load kernel module if present

Samsung does this in the macloader service,
but this is the more appropriate place for
our platform.

Change-Id: I6335fea1d73d48f3c3f9938f33b536c5cda52acb

7 years agoAutomatic translation import
Abhisek Devkota [Fri, 4 Aug 2017 05:48:37 +0000 (22:48 -0700)]
Automatic translation import

Change-Id: Iac6ca07164f94ff319af48ecf8cae29a76052c02

7 years agosecril-client: close fds on I/O errors
Basil Gello [Tue, 18 Jul 2017 19:00:01 +0000 (22:00 +0300)]
secril-client: close fds on I/O errors

if a kernel device returns an I/O error, it is better not to chew
the CPU resources retrying I/O operation on a not ready device.

Fixes periodical 100%-core load in audioserver after a voice call
completion.

Change-Id: I2b66ffd18c85823a11e50598a6b4e3c0245a0083

7 years agopower: Keep boost fd opened as well
Christopher N. Hesse [Sat, 8 Jul 2017 10:44:39 +0000 (12:44 +0200)]
power: Keep boost fd opened as well

Change-Id: I016b28c29786fc948a007d4ec3106be8a662eafd

7 years agomacloader: Drop semcove case and enum
Andrea Arcangeli [Tue, 25 Jul 2017 21:43:20 +0000 (23:43 +0200)]
macloader: Drop semcove case and enum

The all_ranges structure has one entry less than MAX_TYPES because
semcove type is not defined there, but there's no check for NULL and if
the mac isn't found it segfaults.

Change-Id: Ie218ea0a82b03992085db0f2d1cfc7079e7415a0

7 years agosecril-client: Fix RIL client token management in SendOemRequestHookRaw()
Basil Gello [Thu, 13 Jul 2017 16:29:21 +0000 (19:29 +0300)]
secril-client: Fix RIL client token management in SendOemRequestHookRaw()

On some devices, like SM-T805 (Galaxy Tab S 10.5 LTE), the RIL client
code produces errors "SendOemRequestHookRaw: No token" due to large
amount of tokens allocated by OEM messages requiring no response from
RIL daemon (like set call audio path, set call volume, set mite etc).

The indicator of an OEM message with no response expected is:

     RegisterRequestCompleteHandler(client, REQ_XXX, NULL);

inside the RIL client message method. To prevent the token pool from
overflows, the proposed patch de-registers the token and frees its call
history if the handler for this message req_id is set to NULL.

Change-Id: Id414263bf471115797cae1a9ed628249734b9347

7 years agosecril-client: return exact error code from blockingWrite()
Basil Gello [Thu, 13 Jul 2017 16:36:39 +0000 (19:36 +0300)]
secril-client: return exact error code from blockingWrite()

Change-Id: Ibb6d3636648480c53a2fd19044eefe5b97f1eceb

7 years agoRevert "power: Temporary logging fix"
Christopher N. Hesse [Thu, 13 Jul 2017 19:14:57 +0000 (21:14 +0200)]
Revert "power: Temporary logging fix"

This reverts commit ff86846e97f2d159cc98af80938246db0d53c39a.

Change-Id: I46aa4d6606c3c519322b2e2cd048bd312a15fa4d

7 years agopower: Allow for a dynamic cluster configuration
Christopher N. Hesse [Wed, 28 Jun 2017 20:53:03 +0000 (22:53 +0200)]
power: Allow for a dynamic cluster configuration

Change-Id: I542b36d26cad23f29e70ab70d996c95ca3ab11a7

7 years agopower: Temporary logging fix
Christopher N. Hesse [Sun, 9 Jul 2017 21:07:09 +0000 (23:07 +0200)]
power: Temporary logging fix

This will be reverted once the more advanced mechanism
(https://review.lineageos.org/#/c/179092/) goes in.

The boost fd logging will be restored once
https://review.lineageos.org/#/c/180313/ makes it into
the code base.

Change-Id: Ifc1b4a2ba3e1c4283d74eafec45c5fbf07153f03

7 years agopower: Print information on boot
Christopher N. Hesse [Sat, 8 Jul 2017 11:46:35 +0000 (13:46 +0200)]
power: Print information on boot

Change-Id: I1a8ba54f1b27c2e96c6bae77046dc207cdf35025

7 years agopower: sysfs_read: Do not store newlines
Christopher N. Hesse [Sat, 8 Jul 2017 11:56:25 +0000 (13:56 +0200)]
power: sysfs_read: Do not store newlines

Change-Id: If20b509b489b056ac3b37c208c42bc5407f61802

7 years agoAdvancedDisplay: Refactor
Luca Stefani [Sat, 4 Feb 2017 22:58:11 +0000 (23:58 +0100)]
AdvancedDisplay: Refactor

* Integrate with Settings
* Remove back button

Change-Id: Ie3bcd43ef7225bdc3b177446906335f59561b584

7 years agoAutomatic translation import
Abhisek Devkota [Fri, 23 Jun 2017 03:56:50 +0000 (20:56 -0700)]
Automatic translation import

Change-Id: I352dfea4f441b2b1a7d14b4e665f1fe77eecc99c

7 years agoexynos: multimedia: add support for OMX_IndexParamVideoIntraRefresh parameter
Dheeraj CVR [Thu, 12 Mar 2015 02:41:11 +0000 (08:11 +0530)]
exynos: multimedia: add support for OMX_IndexParamVideoIntraRefresh parameter

filiprrs: This fixes miracast, and possibly resolves issues with features
like chromecast, screen recording, wifi display etc.

Change-Id: I35f789a9ae29df0198b21c98dc866d8886799893

7 years agoliblights: Fix fast blinking notification LEDs.
Jason Vidal [Sun, 11 Jun 2017 08:02:38 +0000 (08:02 +0000)]
liblights: Fix fast blinking notification LEDs.

Seems that the fast blinking notification LEDs experienced on some
Samsung devices was due to the removal of these two lines that clean
the 'blink' array. Propose re-inserting to correct the fast blinking
LED issue.

Change-Id: I88ea828a50468aae494b1dd54290607308de543a

7 years agoliblights: Add BLN support
Dominggoes Isakh [Fri, 26 May 2017 21:43:49 +0000 (23:43 +0200)]
liblights: Add BLN support

Change-Id: I3745b7c4ca7adadd62e116c71cd7357a4e8ed015

7 years agoliblights: Fix variable button brightness code
Paul Keith [Fri, 2 Jun 2017 22:52:14 +0000 (17:52 -0500)]
liblights: Fix variable button brightness code

* Because we're using #ifdef in set_light_buttons(),
  defining VAR_BUTTON_BRIGHTNESS to anything, including 0,
  results in the button brightness code being enabled
* That results in broken touchkey backlight for devices
  that don't override the samsung_lights header, or defined
  this macro to 0 in their device's samsung_lights header
* Comment out the macro to correct this logic

Change-Id: Icf554b0deac975f729f1a70e517341dae74f3657

7 years agoAutomatic translation import
Abhisek Devkota [Thu, 1 Jun 2017 03:10:28 +0000 (20:10 -0700)]
Automatic translation import

Change-Id: I376a4f179af4bd395ca9c17da93f5101aca4c68c

7 years agoliblights: Add support for variable touchkey brightness
Dominggoes Isakh [Thu, 25 May 2017 12:49:46 +0000 (14:49 +0200)]
liblights: Add support for variable touchkey brightness

Change-Id: Icc5c589e88dc342ae50b432187bae65a9b3a23d7

7 years agopower: Write IO busy parameter for big cluster
Christopher N. Hesse [Mon, 29 May 2017 18:45:14 +0000 (20:45 +0200)]
power: Write IO busy parameter for big cluster

Change-Id: I9e09f640b956be87729df735225fcfe8f066ab48

7 years agomodemloader: Add support for recent devices
Christopher N. Hesse [Thu, 25 May 2017 15:39:18 +0000 (17:39 +0200)]
modemloader: Add support for recent devices

 * Try to read the hardware revision from the
   bootloader before parsing /proc/cpuinfo
 * Set more properties to catch all recent device
   needs as well
 * Introduce a property to let other services (cbd)
   know they can start

Change-Id: I50d8ec37921ec2559bdd7fe852d830f10fe1c12e

7 years agoAutomatic translation import
Abhisek Devkota [Thu, 18 May 2017 05:23:14 +0000 (22:23 -0700)]
Automatic translation import

Change-Id: I15bc33336962fd84fcb328d5fda461e5ce0bd495

7 years agopower: Allow POWER_HINT_LOW_POWER hint to disable power save mode
Christopher N. Hesse [Wed, 26 Apr 2017 19:42:10 +0000 (21:42 +0200)]
power: Allow POWER_HINT_LOW_POWER hint to disable power save mode

Change-Id: I3b4c90f05267ca4182187361e5d373adb6de25d7

7 years agoAutomatic translation import
Abhisek Devkota [Fri, 28 Apr 2017 22:17:09 +0000 (15:17 -0700)]
Automatic translation import

Change-Id: I7cdf0153bcb66bf25d80c694022018b5d89287e2

7 years agoAdvancedDisplay - Rename default scenario
Abhisek Devkota [Thu, 27 Apr 2017 17:54:53 +0000 (10:54 -0700)]
AdvancedDisplay - Rename default scenario

Change-Id: I6122234ef08b78958e28d3a127b3c73757a43445

7 years agomkbootimg: add exynos subdir to possible_dtb_dirs
Jesse Chan [Tue, 25 Apr 2017 09:38:42 +0000 (17:38 +0800)]
mkbootimg: add exynos subdir to possible_dtb_dirs

Change-Id: I70e5e0817ff0b63da7df3ab63f42b815170096e4

7 years agopower: Sanity check touchscreen path
Paul Keith [Sat, 22 Apr 2017 02:34:17 +0000 (21:34 -0500)]
power: Sanity check touchscreen path

* Let's not always assume this isn't NULL

Change-Id: I181cb014fc06d0f0ca795c3ecc374ccf9dbb57f1
Signed-off-by: Paul Keith <javelinanddart@bestas.gr>
7 years agoAutomatic translation import
Abhisek Devkota [Thu, 20 Apr 2017 19:10:52 +0000 (12:10 -0700)]
Automatic translation import

Change-Id: I201d7c8ce8c9495085e68a76e14aa8d67caa31de

7 years agopower: Align to AOSP API
Christopher N. Hesse [Wed, 5 Apr 2017 16:52:48 +0000 (18:52 +0200)]
power: Align to AOSP API

AOSP power hints can have a NULL data parameter,
only our custom hints are guaranteed to provide data.

Change-Id: Ibea874e75a7092b3f9c1c56dc5182cdf73f35532

7 years agopower: Remove unused variables
Christopher N. Hesse [Wed, 5 Apr 2017 16:54:03 +0000 (18:54 +0200)]
power: Remove unused variables

Change-Id: I805a12837bd013e71c098479279dcc5895ea1e1d

7 years agolights: Put back fd checks before closing
Christopher N. Hesse [Wed, 5 Apr 2017 16:55:28 +0000 (18:55 +0200)]
lights: Put back fd checks before closing

While close(NULL) is indeed a harmless noop, fd can
end up being < 0 for us.

Change-Id: I56dcd7fb61c72d3ce750b13329ff42e11ab63c84

7 years agolights_helper: I/O API cleanup
Christopher N. Hesse [Sun, 2 Apr 2017 15:20:16 +0000 (17:20 +0200)]
lights_helper: I/O API cleanup

 * buf => buffer for consistency
 * explicitly cast strtol retval to int
 * close(NULL) is a no-op, remove superfluous checking
 * replace variying buffer sizes by INT_MAX_STRLEN
 * always return signed errno codes

Change-Id: I972e33e2435ec7d68a8ffdc5ab88a14d8005ff55

7 years agoaudience: Cleanup write_int()
Christopher N. Hesse [Sun, 2 Apr 2017 12:06:24 +0000 (14:06 +0200)]
audience: Cleanup write_int()

Change-Id: Idfec2093c63a864d5f9d37353adbf6f8fc5d4fcd

7 years agoaudience: Use O_WRONLY flag for write_int()
Christopher N. Hesse [Sun, 2 Apr 2017 11:24:47 +0000 (13:24 +0200)]
audience: Use O_WRONLY flag for write_int()

Change-Id: I9a0bdc78644e7a4875d7e49051722fff3d47ee6b

7 years agoaudience: Always log write_int() fails
Christopher N. Hesse [Sun, 2 Apr 2017 11:24:24 +0000 (13:24 +0200)]
audience: Always log write_int() fails

Change-Id: I747c38646599ae3f687279ca8a95db804f3ad015

7 years agoaudience: Warn when we cannot handle the output device
Christopher N. Hesse [Sun, 2 Apr 2017 11:19:36 +0000 (13:19 +0200)]
audience: Warn when we cannot handle the output device

Change-Id: I0cddd94f22c5e912436682d713a1ae441723cfee

7 years agopower: Add POWER_HINT_DISABLE_TOUCH support
Christopher N. Hesse [Mon, 16 Jan 2017 23:04:45 +0000 (00:04 +0100)]
power: Add POWER_HINT_DISABLE_TOUCH support

Change-Id: I363df278598e3402692424539638f3547c648e26

7 years agoAutomatic translation import
Abhisek Devkota [Wed, 29 Mar 2017 21:27:17 +0000 (14:27 -0700)]
Automatic translation import

Change-Id: I58d68d3bc81f39d0b452a9aa1f408a0e6830de63

7 years agoPowerHAL: Update the hispeed_freq value before using it
Martin Bouchet [Tue, 28 Mar 2017 07:00:04 +0000 (04:00 -0300)]
PowerHAL: Update the hispeed_freq value before using it

The hispeed_freq value is read only in the inizialization process.
If we decide to change it later writing a new value to the node
this new value wont be taken into consideration by the power hal.
Lets update the hispeed_freq value in the power hal before using
it to limit the max cpu freq when we go into power save mode.

Change-Id: I4b8c7f67259750b2931b18c3871874022aa6054d

7 years agoaudio: Split BT SCO media/incall paths
Christopher N. Hesse [Mon, 20 Mar 2017 18:40:53 +0000 (19:40 +0100)]
audio: Split BT SCO media/incall paths

Change-Id: I23a621855e8b96edcd92d8740dfec270ff7e7407

7 years agoaudio: add support for bluetooth wideband voice calls
Fevax [Wed, 15 Mar 2017 13:56:39 +0000 (10:56 -0300)]
audio: add support for bluetooth wideband voice calls

Change-Id: I02bf23a83c52389cc02ba1f61572eb651418fe24

7 years agopower: Rework governor path abstraction
Christopher N. Hesse [Sun, 12 Mar 2017 16:11:04 +0000 (17:11 +0100)]
power: Rework governor path abstraction

Construct the paths for the driver based on the device
specific header data.

Change-Id: Ic7c72a2bbe6f199e1297f41817840059595f516d

7 years agoAutomatic translation import
Abhisek Devkota [Wed, 15 Mar 2017 20:38:37 +0000 (13:38 -0700)]
Automatic translation import

Change-Id: Ib6bc0641aa25b3f4071b3ad2e57a5c084d418916

7 years agopower: Cleanup hint handling
Christopher N. Hesse [Sun, 12 Mar 2017 16:08:47 +0000 (17:08 +0100)]
power: Cleanup hint handling

Change-Id: I828a68105272fef3fe454561d98825f8703bca0b

7 years agopower: Discard hints in power save mode
Christopher N. Hesse [Sun, 12 Mar 2017 16:04:53 +0000 (17:04 +0100)]
power: Discard hints in power save mode

Change-Id: I9c3701261e49023761599ebaa8cd3e09a88a40c6

7 years agopower: Keep boostpulse fd opened
Christopher N. Hesse [Sat, 4 Mar 2017 00:41:58 +0000 (01:41 +0100)]
power: Keep boostpulse fd opened

No one else should be writing to this, so keep the fd
opened.

Change-Id: I4258f7f7d69250f4832a67807031ab3faa9ff586

7 years agopower: Keep boostpulse fd opened
Christopher N. Hesse [Sat, 4 Mar 2017 00:41:58 +0000 (01:41 +0100)]
power: Keep boostpulse fd opened

No one else should be writing to this, so keep the fd
opened.

Change-Id: I4258f7f7d69250f4832a67807031ab3faa9ff586

7 years agoliblights: Always apply linear scaling if max brightness isn't 255
Luca Stefani [Mon, 13 Mar 2017 13:53:14 +0000 (14:53 +0100)]
liblights: Always apply linear scaling if max brightness isn't 255

* As of now the code account only max_brightness > 255
  -> Check if max_brightness != 255 and apply the scaling
     even if the max_brightness is less then 255

Change-Id: I809ece5844c8ccf20ae6507f23d308fe3ddfe94b

7 years agoAutomatic translation import
Abhisek Devkota [Wed, 8 Mar 2017 22:06:35 +0000 (14:06 -0800)]
Automatic translation import

Change-Id: I27a0fd483b301f46556d5e37819ee2bdcf346046

7 years agopower: Initialize device power paths
Christopher N. Hesse [Tue, 7 Mar 2017 22:01:12 +0000 (23:01 +0100)]
power: Initialize device power paths

Change-Id: I56481946e2e3f4a80f2d3a7713ce61ed7923666d

7 years agopower: Cleanup touchkey handling
Christopher N. Hesse [Sat, 4 Mar 2017 00:05:14 +0000 (01:05 +0100)]
power: Cleanup touchkey handling

 * Simplify interactive changes
 * Better support for non-touchkey devices
 * Only perform read I/O in samsung_power_set_interactive
   if needed (improves wake->panel_on delay)

Change-Id: If7bd6a1833ac7605db437ef3664230f9a452d58b

7 years agolights: Add a log tag
Christopher N. Hesse [Sat, 4 Mar 2017 14:47:45 +0000 (15:47 +0100)]
lights: Add a log tag

Change-Id: I7f4643324ed5c52b60ceede5f1ad8f24131cf3c0

7 years agolights: Cleanup read/write API
Christopher N. Hesse [Sat, 4 Mar 2017 14:16:56 +0000 (15:16 +0100)]
lights: Cleanup read/write API

 * Use O_WRONLY for write
 * Return errno for write
 * Log all failures
 * Fix read_int():
   We would always treat strtol(...) = 0 as an error,
   although the real value can very well be 0.
   Check the end pointer to fix this.

Change-Id: Id2bc9acc103a7a6400dd06f3904af37cbb0b5174

7 years agolights: Remove superfluous log newlines
Christopher N. Hesse [Sat, 4 Mar 2017 14:04:16 +0000 (15:04 +0100)]
lights: Remove superfluous log newlines

Change-Id: Id1522dfe92c9e585000edd7067b50968f38c07ca

7 years agopower: Remove superfluous log newlines
Christopher N. Hesse [Sat, 4 Mar 2017 00:06:22 +0000 (01:06 +0100)]
power: Remove superfluous log newlines

Change-Id: I33da39a89544f3580d395f4165b8cff4de5a4224

7 years agoaudio: Add support for Audience EarSmart ICs
Christopher N. Hesse [Sat, 25 Feb 2017 00:37:56 +0000 (01:37 +0100)]
audio: Add support for Audience EarSmart ICs

Some devices (often T-Mobile variants) have extra hardware for
incall audio processing.
Audio must be routed to the ES IC properly so it can be passed to
ALSA, otherwise the RX/TX streams are lost.

Change-Id: Ib29c747d5728a09726e14bab00f26ad273400aba

7 years agoAutomatic translation import
Michael W [Thu, 2 Mar 2017 14:47:43 +0000 (15:47 +0100)]
Automatic translation import

Change-Id: I1e390ecacd03d6c97ea1bfe14474a37bbfe29fb2

7 years agoaudio: Add error logging to ril_interface
Christopher N. Hesse [Sat, 25 Feb 2017 13:33:10 +0000 (14:33 +0100)]
audio: Add error logging to ril_interface

Change-Id: I447d1bf2745990bd71688847d3e9cdb432c57f47

7 years agoaudio: Restart the voice call on device change
Andreas Schneider [Tue, 14 Feb 2017 12:00:48 +0000 (13:00 +0100)]
audio: Restart the voice call on device change

When we change the device during a phone call we need to completely
restart it. This is required by the modem.

Change-Id: I902c78bf50dfb5dc3da51fca0fb862f872df86ca

7 years agoliblights: add support for adjusting notification LED brightness
Simon Shields [Sat, 18 Feb 2017 09:55:11 +0000 (20:55 +1100)]
liblights: add support for adjusting notification LED brightness

The old exynos4x12 lights HAL had logic for scaling the brightness of
lights according to the light's type and also scaling each R/G/B colour.

Bring this logic across, and make the battery LED not eye-searing at
night.

Based on work by Daniel Hillenbrand.

REGRESSION-66

Change-Id: Ia6108468f57c3b6c6a1a68da76a1c3362fd982a5

7 years agolibsecril-client: Expose MSIM functions by default
Christopher N. Hesse [Tue, 21 Feb 2017 21:54:34 +0000 (22:54 +0100)]
libsecril-client: Expose MSIM functions by default

Recent devices (zero, noble, others) link audio-ril
against this.

Change-Id: If774ff378f519b221594e8b793a95831cacd4ae4

7 years agolibril: use responseInts for LAST_CALL_FAIL_CAUSE on Exynos4
Simon Shields [Sun, 19 Feb 2017 13:36:42 +0000 (00:36 +1100)]
libril: use responseInts for LAST_CALL_FAIL_CAUSE on Exynos4

Exynos4 devices send two ints as a response to this request,
causing responseFailCause to think the result is a LastCallFailCause struct,
which it then tries to treat as a Java UTF-8 encoded string, causing a
crash.

Work around this by forcing responseInts (the original behaviour)
on Exynos4 devices.

Change-Id: Ied14948db3049066ffc760b6d3df09b4cefa2df0

7 years agoaudio: Improve logging in out_set_parameters()
Andreas Schneider [Tue, 14 Feb 2017 11:51:30 +0000 (12:51 +0100)]
audio: Improve logging in out_set_parameters()

Change-Id: I5800307905870ca836383e7d492a7472a9a386be

7 years agoaudio: Implement WB_AMR callback correctly
Andreas Schneider [Mon, 13 Feb 2017 16:15:07 +0000 (17:15 +0100)]
audio: Implement WB_AMR callback correctly

Change-Id: Ib2392c8a122d07b40814ca2eeaecf30f9bdb0f99

7 years agomacloader: Fix default NVRAM param path
Martin Bouchet [Wed, 15 Feb 2017 14:30:52 +0000 (08:30 -0600)]
macloader: Fix default NVRAM param path

* Not sure why this was ever the default path

Change-Id: I3ae7ab2a4fc0c84d78b8eba1ec8a132f5be531e9
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
7 years agoAutomatic translation import
Abhisek Devkota [Thu, 16 Feb 2017 18:43:09 +0000 (10:43 -0800)]
Automatic translation import

Change-Id: I58d0e1a5a3bfb2ed098b8d31684f1c9558748c2a

7 years agoaudio: Fix get_snd_device_name() for earpiece
Andreas Schneider [Wed, 15 Feb 2017 13:10:58 +0000 (14:10 +0100)]
audio: Fix get_snd_device_name() for earpiece

SND_DEVICE_MIN_OUT_EARPIECE is set to SND_DEVICE_MIN.

Change-Id: I3a442df7f388b72d433257f6ac1db473e4cb14a6

7 years agoaudio: Cleanup and fix voicecall preparation
Christopher N. Hesse [Wed, 15 Feb 2017 11:18:41 +0000 (12:18 +0100)]
audio: Cleanup and fix voicecall preparation

 * if (usecase == NULL) should actually be if (vc_usecase == NULL)
 * Avoid unnecessary if-block indentation by updating the control
   flow

Change-Id: If00ac405a1eac429862b953580e8614227015134

7 years agomacloader: Add one more SEMCO3RD half address
Martin Bouchet [Wed, 15 Feb 2017 04:26:29 +0000 (01:26 -0300)]
macloader: Add one more SEMCO3RD half address

reference here:
http://hwaddress.com/company/samsung-electro-mechanicsthailand-2

Change-Id: Iee368306bf9387b743fb77aa8d83d73c70c51f3e

7 years agoaudio: Guard WB_AMR callback
Christopher N. Hesse [Wed, 15 Feb 2017 08:47:20 +0000 (09:47 +0100)]
audio: Guard WB_AMR callback

Some devices do not support this; some devices are WiFi only
and obviously do not have it.

Change-Id: I6d245eee447bd87849cbdfd41c0cf73c6af714e6

7 years agolibsecril-client: Rename SOUND_AUDIO_PATH_HANDSET to EARPIECE
Andreas Schneider [Tue, 14 Feb 2017 16:24:02 +0000 (17:24 +0100)]
libsecril-client: Rename SOUND_AUDIO_PATH_HANDSET to EARPIECE

This still keeps SOUND_AUDIO_PATH_HANDSET in the _AudioPath enum to not
break the API.

Change-Id: If82520ff630ceb099c570e299685caef03b0d01b

7 years agoaudio: Rename HANDSET to EARPIECE to follow libsecril-client
Andreas Schneider [Tue, 14 Feb 2017 16:24:23 +0000 (17:24 +0100)]
audio: Rename HANDSET to EARPIECE to follow libsecril-client

Change-Id: I9e99e1bdf8c8c29aca4d753269190dd34c229d8a

7 years agoRevert "audio: Disable voice log by default"
Christopher N. Hesse [Wed, 15 Feb 2017 08:41:05 +0000 (09:41 +0100)]
Revert "audio: Disable voice log by default"

This was intentionally left enabled and does not spam anyways,
but allows users to extract helpful information without
recompiling.

This reverts commit e06577dc818d047dae1caec397fa7316762e3fb7.

Change-Id: I604ee674a1db466b3d3e364cb95f5688edd4947c

7 years agoaudio: Use labs() instead of abs()
Paul Keith [Wed, 15 Feb 2017 02:41:33 +0000 (20:41 -0600)]
audio: Use labs() instead of abs()

* abs() accepts ints as parameters,
  but this breaks compile since
  the times are longs, not ints
* Use labs() instead, which accepts
  longs as parameters, to fix compile

Change-Id: I8f980a78380cdae18abd5b9602e281beae3ee4d3
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
7 years agoAdd another semco mac address
Sean hoyt [Tue, 14 Feb 2017 17:32:01 +0000 (17:32 +0000)]
Add another semco mac address

Needed for n1a3g

Change-Id: I420ddcd860351a0de0841ec5071fa0fcbd745822

7 years agoaudio: Disable voice log by default
Andreas Schneider [Mon, 13 Feb 2017 16:06:49 +0000 (17:06 +0100)]
audio: Disable voice log by default

Change-Id: I56c54fe1f3d75cbd05693f98f2f2210ea13295dc

7 years agoaudio: Log error if we fail to set the audio path
Andreas Schneider [Mon, 13 Feb 2017 15:21:35 +0000 (16:21 +0100)]
audio: Log error if we fail to set the audio path

Change-Id: Ide469d644aaab2a97dd72244bd316c2ff497d9db