GitHub/LineageOS/android_hardware_samsung.git
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

7 years agoaudio: Add missing deep buffer to use_case_table
Andreas Schneider [Tue, 14 Feb 2017 10:38:41 +0000 (11:38 +0100)]
audio: Add missing deep buffer to use_case_table

Change-Id: I5216838e0de257241206546f2e9f71896292fe9e

7 years agoaudio: Fix device table access in get_snd_device_name()
Andreas Schneider [Mon, 13 Feb 2017 14:19:36 +0000 (15:19 +0100)]
audio: Fix device table access in get_snd_device_name()

We have a value for SND_DEVICE_NONE so we should use that. There is no
field for SND_DEVICE_MIN so we need to check it is bigger.

Change-Id: I041930c8c4b552d45804a178aeb1aa981ae7c13f

7 years agoaudio: Fix time diff to always return positive numbers
Andreas Schneider [Mon, 13 Feb 2017 15:48:17 +0000 (16:48 +0100)]
audio: Fix time diff to always return positive numbers

Change-Id: I62f835f95fc1d1a671cfdb2e6e6ac1758524235f

7 years agolibril: fix parceling of DataCallListV6 on xmm626x
Simon Shields [Sun, 12 Feb 2017 23:26:17 +0000 (10:26 +1100)]
libril: fix parceling of DataCallListV6 on xmm626x

Change-Id: I32fee851e65f8f5af3d57fc4fc588139ff6ded35

7 years agoril: Fix unsol response array mapping
Christopher N. Hesse [Sat, 11 Feb 2017 17:59:31 +0000 (18:59 +0100)]
ril: Fix unsol response array mapping

 * Instead of messing around with indices, look up
   the requestNumber in the array.
 * This has a cost of O(N) instead of O(1) with the
   previous implementation, but we don't receive unsol
   response codes frequently enough to be worried about
   this.
 * This was needed because a few vendor reponses, aka
   RIL_UNSOL_SNDMGR_WB_AMR_REPORT at index 33 and
   RIL_UNSOL_SNDMGR_CLOCK_CTRL at index 34
   could not be addressed by their array indices anymore
   because we cannot calculate their index by the unsol
   response code we receive from the modem.

Change-Id: I27319e621c777fe19ae8908d7e0c4a46d6dd6d3b

7 years agoaudio: Update comments for voice mics
Andreas Schneider [Sat, 11 Feb 2017 14:07:44 +0000 (15:07 +0100)]
audio: Update comments for voice mics

Change-Id: I3fc888a4046a2b49bc887088750dd0e5be1c543c

7 years agoaudio: Add support for bluetooth voice calls
Andreas Schneider [Thu, 9 Feb 2017 13:03:11 +0000 (14:03 +0100)]
audio: Add support for bluetooth voice calls

Change-Id: Ic63b7c09ed7401ab72824a406db333e3fbce780b

7 years agoAutomatic translation import
Abhisek Devkota [Sat, 11 Feb 2017 20:43:38 +0000 (12:43 -0800)]
Automatic translation import

Change-Id: Ia9d34e6c3621b41d1fc58812d17bae1700c7ea67

7 years agoaudio: Remove device bit only on active_input
Andreas Schneider [Fri, 10 Feb 2017 18:28:35 +0000 (19:28 +0100)]
audio: Remove device bit only on active_input

This makes the code less confusing.

Change-Id: I6020f892f5165a6c784b05737e29b24d7121b8c9

7 years agoaudio: Add a mixer_path_0.xml template for the HAL
Andreas Schneider [Fri, 10 Feb 2017 16:56:35 +0000 (17:56 +0100)]
audio: Add a mixer_path_0.xml template for the HAL

Change-Id: Iec0976cf7d9d54edb850b972c44b7159a2374ef2

7 years agoaudio: Add support for voice session mic mute
Andreas Schneider [Mon, 6 Feb 2017 11:36:31 +0000 (12:36 +0100)]
audio: Add support for voice session mic mute

Change-Id: I5277736fffcb4511e4a7adb2e3e10090dcab484c

7 years agoaudio: Add voice call wideband support
Andreas Schneider [Mon, 6 Feb 2017 08:16:39 +0000 (09:16 +0100)]
audio: Add voice call wideband support

Change-Id: Idf6725aaaf906109ce973a8109b7c252a997dead

7 years agoaudio: Add support for two mic control
Andreas Schneider [Mon, 6 Feb 2017 08:00:48 +0000 (09:00 +0100)]
audio: Add support for two mic control

Change-Id: I0176b41b071577e9e55f5177ec1219d4e9aa91a2

7 years agoaudio: Leave out_get_presentation_position() early when switching to WB
Andreas Schneider [Sat, 11 Feb 2017 13:21:56 +0000 (14:21 +0100)]
audio: Leave out_get_presentation_position() early when switching to WB

When the voice session switches from NB to WB we should just leave
early.

Change-Id: Ib4bfe336f6e51fa469fee50c96a81c819f58678b

7 years agoaudio: Do not segfault in out_get_presentation_position()
Andreas Schneider [Wed, 8 Feb 2017 15:58:22 +0000 (16:58 +0100)]
audio: Do not segfault in out_get_presentation_position()

When a voice call is stopped we switch back to the default primary
output (speaker). Then this function gets executed and as ther was
no active PCM because voice_session is handling that it segfaults
because the PCM is NULL.

Change-Id: I927504b7962b096c0d4c3642b48aee55c85ec013

7 years agoaudio: Enable voice call support
Christopher N. Hesse [Thu, 2 Feb 2017 19:49:55 +0000 (20:49 +0100)]
audio: Enable voice call support

Pair-Programmed-With: Andreas Schneider <asn@cryptomilk.org>

Change-Id: I284f21240e56dda93cb8a2ab98b903ff712504a6

7 years agoaudio: Remove unused variables and function
Andreas Schneider [Thu, 9 Feb 2017 09:59:04 +0000 (10:59 +0100)]
audio: Remove unused variables and function

The unused functions have just been commented out.
This also sets the CFLAGS to -Wall and -Werror.

Change-Id: Iea097426313a68a01a074627115853fccc680579

7 years agoRevert "audio: Remove unused screen_state parameter"
Andreas Schneider [Thu, 9 Feb 2017 09:45:21 +0000 (10:45 +0100)]
Revert "audio: Remove unused screen_state parameter"

We want that to avoid an error message in the log, so revert the
revomal.

This reverts commit cdad20da45269c9c5d7308f7d63de1350e04d94d.

Change-Id: Ic90cd6b02e5b3e8aae73d824153c3084643a8acc

7 years agoaudio: Improve error message for RILD connection
Andreas Schneider [Wed, 8 Feb 2017 18:27:46 +0000 (19:27 +0100)]
audio: Improve error message for RILD connection

We need to make it more prominent so people recognize it and fix their
connection.

Change-Id: I36218ac130351b053f7fda2319d797885ac0930e

7 years agoaudio: Initialize the radio voice session
Christopher N. Hesse [Thu, 2 Feb 2017 19:48:56 +0000 (20:48 +0100)]
audio: Initialize the radio voice session

This just allocates the structre and creates the RIL connection. This is
per audio_device structure to make sure we to not run into issues with
audioserver threading.

Change-Id: I42e1b7ae57579f39c5f76566ef5b67d4e2c13e3f

7 years agoaudio: Add ril_interface to talk to radio
Christopher N. Hesse [Fri, 10 Feb 2017 20:20:30 +0000 (21:20 +0100)]
audio: Add ril_interface to talk to radio

This is based on previous work for tuna, i9300,
i9500 and many other devices.

Change-Id: Ie94f12ee7940ffae84aec5e409a2a831b34d616f

7 years agoaudio: Create a structure for voice to group values
Andreas Schneider [Thu, 2 Feb 2017 17:29:12 +0000 (18:29 +0100)]
audio: Create a structure for voice to group values

Change-Id: I184d39460aa8a9a3ee5efc5fe3aa63e99a2e9d12

7 years agomacloader: Rework mac address half classification
Christopher N. Hesse [Thu, 9 Feb 2017 18:17:06 +0000 (19:17 +0100)]
macloader: Rework mac address half classification

 * Don't return in the middle of a function, set the
   return code and jump to the exit point instead.
 * Close file pointers properly.
 * Unify error code returns (macloader will always exit
   with -1 on error now).

Change-Id: I32ac8ea85fcbabed45550a4d176ac999eff9f9e9

7 years agoaudio: Add a delay for DSP firmware loading
Andreas Schneider [Thu, 2 Feb 2017 15:11:14 +0000 (16:11 +0100)]
audio: Add a delay for DSP firmware loading

This is turned off by default.

Change-Id: Idf764933c67e6666cb2cc0043fa7a7e86935488d

7 years agopower: Add support for POWER_HINT_CPU_BOOST
Christopher N. Hesse [Mon, 16 Jan 2017 22:39:48 +0000 (23:39 +0100)]
power: Add support for POWER_HINT_CPU_BOOST

Change-Id: I75030eb2dabfed518e961d71efb9d55670d2808a

7 years agomacloader: Add another SEMCO mac address half
Christopher N. Hesse [Thu, 9 Feb 2017 17:00:32 +0000 (18:00 +0100)]
macloader: Add another SEMCO mac address half

http://hwaddress.com/?q=d8%3Ac4%3Ae9

Change-Id: I80c7be6cb61d8eea1be72118104b1cd2397d48a1

7 years agomacloader: Add default NVRAM calibration path
Paul Keith [Wed, 8 Feb 2017 03:06:56 +0000 (21:06 -0600)]
macloader: Add default NVRAM calibration path

* This also causes NVMRAM calibration to be on by default
* Most devices should be using this, so don't make them override

Change-Id: Ied6e8f4ebd131ae992814bf83c9e7bb379ca9d79
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
7 years agomacloader: Allow overriding non-standard paths
Paul Keith [Tue, 7 Feb 2017 18:30:45 +0000 (12:30 -0600)]
macloader: Allow overriding non-standard paths

* Follow the rest of the hals

Change-Id: Ib3bf92b3e975d96586802a1473c589fc9536ad40
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
7 years agofingerprint: bauth: convert % completed to remaining
Jesse Chan [Sun, 5 Feb 2017 10:53:42 +0000 (18:53 +0800)]
fingerprint: bauth: convert % completed to remaining

* Samsung uses fingerprint enrollment % completed
  while AOSP uses fingerprint sample remaining.

* This patch converts this data to AOSP-friendly one via (x = 100 - x).

Change-Id: I27034cb148e0f33f7d3efae9c75123715452f178
Signed-off-by: Jesse Chan <jc@linux.com>
7 years agoadd Samsung BAUTH Fingerprint HAL
Jesse Chan [Sun, 5 Feb 2017 13:18:09 +0000 (21:18 +0800)]
add Samsung BAUTH Fingerprint HAL

Change-Id: I3c0d3e2a0f9b77f0202cbdb0a75a00b760afcd8c

7 years agoril: Align to AOSP libril
Christopher N. Hesse [Tue, 7 Feb 2017 21:21:27 +0000 (22:21 +0100)]
ril: Align to AOSP libril

 * Adjusted whitespace to minimize diffs
 * Plugged memory leaks
 * Fix use-after-free
 * Use calloc instead of alloca
 * Reworked the Samsung request/response code to be
   more readable

Change-Id: Ifd07b525fc84e8a3fca584d4d412785974ca3482

7 years agolibsecril-client: Fix logging
Andreas Schneider [Wed, 8 Feb 2017 15:52:54 +0000 (16:52 +0100)]
libsecril-client: Fix logging

Change-Id: I370e70ebfb8fca3d610cdf58c8ac793844d23cb8

7 years agoaudio: Allow playback on earpiece too
Fevax [Wed, 8 Feb 2017 08:52:12 +0000 (09:52 +0100)]
audio: Allow playback on earpiece too

For VoIP we need to have output on the earpiece.

Change-Id: I5c5488a184b3efe4f95a2d0602ad286b1eba7780

7 years agomacloader: Decapitalize wisol MAC addresses
Paul Keith [Tue, 7 Feb 2017 20:27:33 +0000 (14:27 -0600)]
macloader: Decapitalize wisol MAC addresses

* These should be lowercase, otherwise detection will fail

Change-Id: Ibdc446a8f9c58bc9b17b8e9c6cfd5f4894f7ecff
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
7 years agoaudio: in_call is a bool type
Andreas Schneider [Thu, 2 Feb 2017 17:33:40 +0000 (18:33 +0100)]
audio: in_call is a bool type

Change-Id: Ie8db6ddac7f3cb64acd4bf95be00744754a2907d

7 years agoaudio: Remove unused audio routes
Andreas Schneider [Wed, 1 Feb 2017 15:34:00 +0000 (16:34 +0100)]
audio: Remove unused audio routes

Change-Id: Ia3670f075369eb721e12588c5c6f0b3525a51e67

7 years agolibsecril-client: Turn off logging by default
Andreas Schneider [Mon, 6 Feb 2017 17:23:19 +0000 (18:23 +0100)]
libsecril-client: Turn off logging by default

Change-Id: I4fabfafbf593c9a08e33698adbe488998c610610

7 years agolibsecril-client: Use RLOG
Andreas Schneider [Mon, 6 Feb 2017 17:19:39 +0000 (18:19 +0100)]
libsecril-client: Use RLOG

The radio log prints use-Rlog/RLOG-RILClient as the prefix, so we should
use RLOG and not ALOG.

Change-Id: I5c217cca9510948871b4157f69361c869dea2a01

7 years agolibril: Use RLOG
Andreas Schneider [Mon, 6 Feb 2017 17:18:25 +0000 (18:18 +0100)]
libril: Use RLOG

Change-Id: I6b7ed9fc11b03669c3cb4405c25509c6b00401e3

7 years agoexynos4x12: use common samsung liblights
Simon Shields [Tue, 31 Jan 2017 13:17:21 +0000 (00:17 +1100)]
exynos4x12: use common samsung liblights

Change-Id: I5615413d5427177af0d161cfac24e98e18bf017b

7 years agoAutomatic translation import
Abhisek Devkota [Sun, 5 Feb 2017 00:22:02 +0000 (16:22 -0800)]
Automatic translation import

Change-Id: I3bb868755965b072319ff5a4ddaebb32c2f3c4ac

7 years agoadd a common mkbootimg.mk to quiet "KERNEL IS NOT SEANDROID ENFORCING" warning
Jesse Chan [Wed, 1 Feb 2017 16:22:09 +0000 (00:22 +0800)]
add a common mkbootimg.mk to quiet "KERNEL IS NOT SEANDROID ENFORCING" warning

* dtimage part is taken from vendor/cm

Change-Id: I243af7a0158ea64fe4c524e98f084b073944f5bb

7 years agoaudio: Disable support for IRQ affinity by default
Andreas Schneider [Tue, 31 Jan 2017 10:48:22 +0000 (11:48 +0100)]
audio: Disable support for IRQ affinity by default

Change-Id: I410f0037747149471a1d5fe7cf38720121938822

7 years agoaudio: Correctly handle out of memory conditions
Andreas Schneider [Tue, 31 Jan 2017 07:17:32 +0000 (08:17 +0100)]
audio: Correctly handle out of memory conditions

Change-Id: Id7e0ab1085d3e38c1eaa7905a17726e9d1a68cc9

7 years agoaudio: Make speaker swap on screen rotation optional
Andreas Schneider [Mon, 30 Jan 2017 21:36:25 +0000 (22:36 +0100)]
audio: Make speaker swap on screen rotation optional

Change-Id: I73623629c4418bff8178793d856d8da98b694283

7 years agoaudio: Remove unused screen_state parameter
Andreas Schneider [Mon, 30 Jan 2017 21:35:18 +0000 (22:35 +0100)]
audio: Remove unused screen_state parameter

Change-Id: I3359e5e6c0d49bc5067f3a78f2f5a1b087c7ae4b

7 years agoaudio: Remove tty_mode which we do not support
Andreas Schneider [Mon, 30 Jan 2017 21:33:56 +0000 (22:33 +0100)]
audio: Remove tty_mode which we do not support

Change-Id: Ifdde7e0ae6b6f1a293d6fa50625ab70ba1fc63a1

7 years agoaudio: s/handset/earpiece/g
Christopher N. Hesse [Tue, 31 Jan 2017 20:59:54 +0000 (21:59 +0100)]
audio: s/handset/earpiece/g

HANDSET is too similar to HEADSET.
Choose a better name instead and call it EARPIECE
like everyone else.

Change-Id: Ida986366e2ef16cb422cba6ecaeedbe8c1ae9908

7 years agoaudio: Implement get_capture_position()
Christopher N. Hesse [Thu, 12 Jan 2017 10:40:30 +0000 (11:40 +0100)]
audio: Implement get_capture_position()

Change-Id: Ib9f637d30774b2a9aa23e6958ce5465d90eae467

7 years agoaudio: improve read/write timing for streams
Christopher N. Hesse [Sat, 7 Jan 2017 23:03:23 +0000 (00:03 +0100)]
audio: improve read/write timing for streams

Change-Id: Ic4231c4b44369a9438c6c94622b90862047e9a32
Reference: https://github.com/LineageOS/android_hardware_libhardware/commit/0caeee8ac429dd8098e97b2cd8ad3751031a5b67

7 years agoaudio: Use C99 initializers in read_frames()
Andreas Schneider [Tue, 31 Jan 2017 07:18:34 +0000 (08:18 +0100)]
audio: Use C99 initializers in read_frames()

Change-Id: I69d9ac00dbd7126682c66087804c2b33cf6c86bc

7 years agoaudio: Fix memory leak when preprocessing is disabled
Andreas Schneider [Mon, 30 Jan 2017 09:57:06 +0000 (10:57 +0100)]
audio: Fix memory leak when preprocessing is disabled

Change-Id: Ia168de215200ae9e1f4740cf5623b39058b3797c

7 years agoaudio: Allow targets to override the deep buffer device
Christopher N. Hesse [Mon, 30 Jan 2017 17:57:20 +0000 (18:57 +0100)]
audio: Allow targets to override the deep buffer device

Change-Id: I539403661e40e5be7eb5cc130a4b8ad8331d2a4a

7 years agoaudio: Move card specfic defines to a header
Christopher N. Hesse [Sat, 28 Jan 2017 13:18:10 +0000 (14:18 +0100)]
audio: Move card specfic defines to a header

Change-Id: Iec74ee5c4c0cf93e3a7413901e128b76cf708dbb

7 years agoaudio: Factor out offload code
Christopher N. Hesse [Sat, 28 Jan 2017 13:42:48 +0000 (14:42 +0100)]
audio: Factor out offload code

Change-Id: I94a592262016d954318dab3d1339504e54f83681

7 years agoaudio: Rename header guard macro
Christopher N. Hesse [Sat, 28 Jan 2017 13:05:39 +0000 (14:05 +0100)]
audio: Rename header guard macro

Change-Id: I350616da3ba98965d2dcdd533e57d77b0ac7e41a

7 years agoaudio: Update module name/author
Christopher N. Hesse [Sat, 28 Jan 2017 13:02:15 +0000 (14:02 +0100)]
audio: Update module name/author

Change-Id: I744742d6be18a4b599e58f3c005154d5a944bd0f

7 years agoaudio: Remove dummybuf headphone GPIO code
Christopher N. Hesse [Sun, 29 Jan 2017 13:55:29 +0000 (14:55 +0100)]
audio: Remove dummybuf headphone GPIO code

Change-Id: I004ac324df61f37083858c6a5f01f093ad19f98b

7 years agoaudio: Remove HTC acoustic amplifier code
Christopher N. Hesse [Sat, 28 Jan 2017 11:46:15 +0000 (12:46 +0100)]
audio: Remove HTC acoustic amplifier code

Change-Id: Id9ea8f1eb9403d171150fd5f15c7ec431c4a1504

7 years agoaudio: Import N HAL from flounder
Christopher N. Hesse [Sat, 28 Jan 2017 11:40:45 +0000 (12:40 +0100)]
audio: Import N HAL from flounder

HEAD:
Turn off excess logging
Change-Id: I77d6eaf4ac31d969fd42e9a96418203bc682476f

Change-Id: I1cbcbf16ab617b676defcce49335d6f4190e63a9

7 years agoRevert "allow override of cabc file via property"
Zhao Wei Liew [Tue, 24 Jan 2017 13:55:20 +0000 (21:55 +0800)]
Revert "allow override of cabc file via property"

A quick search reveals that only 1 device uses this - kona.

Instead of adding a system prop for this, that one device
can add its own AdaptiveBacklight class. This allows kona to
use AdaptiveBacklight without having to modify the common class.

This reverts commit c11396ecc6738126e84f6262fecbd6021ca20abd.

Change-Id: Id912091f64da39a10d30c9770f248cf6467e8760

7 years agoAutomatic translation import
Abhisek Devkota [Wed, 25 Jan 2017 21:49:12 +0000 (13:49 -0800)]
Automatic translation import

Change-Id: I23653a0bd1d2e84ae0464b003f2b9391617c3907

7 years agopower: Make boostpulse_warned static
Christopher N. Hesse [Wed, 25 Jan 2017 21:41:05 +0000 (22:41 +0100)]
power: Make boostpulse_warned static

Change-Id: I8bd557c637402922702fcb75a1c0633947ded41a

7 years agopower: Add PROFILE_MAX to enum
Christopher N. Hesse [Mon, 16 Jan 2017 23:01:15 +0000 (00:01 +0100)]
power: Add PROFILE_MAX to enum

Change-Id: If7349c98598d346f5b03b32dceb5f797c8b02ce7

7 years agopower: Directly compare chars
Christopher N. Hesse [Mon, 16 Jan 2017 22:59:20 +0000 (23:59 +0100)]
power: Directly compare chars

Change-Id: I6da2d9cfcecd7177e2c1a74051e2ad46e2349f64

7 years agoAdded new murata, semco and wisol addresses
Fevax [Tue, 24 Jan 2017 22:32:17 +0000 (19:32 -0300)]
Added new murata, semco and wisol addresses

(needed by exynos8890 - bcm4359)

Change-Id: Ie890d8b1370650a81b52a6c1b2c5cf5cd896b500

7 years agocmhw: Add reading mode
Luca Stefani [Sun, 22 Jan 2017 13:27:41 +0000 (13:27 +0000)]
cmhw: Add reading mode

Change-Id: Id6c4ab0c081afb2f9fae6e6c5b776c093f377e97

7 years agopower: Remove unused local variables
Christopher N. Hesse [Mon, 16 Jan 2017 22:45:28 +0000 (23:45 +0100)]
power: Remove unused local variables

Change-Id: I8f45398eba884fee3c3833a67f37ffd28186cf24

7 years agopower: Consolidate verbose logging
Christopher N. Hesse [Mon, 16 Jan 2017 21:49:06 +0000 (22:49 +0100)]
power: Consolidate verbose logging

Change-Id: I8b2a5d9c625273220d43a3d39e6fd977bbc1247d

7 years agopower: Update module author
Christopher N. Hesse [Mon, 16 Jan 2017 21:47:59 +0000 (22:47 +0100)]
power: Update module author

Change-Id: I4ec64beb57729f5dd299ae04a68770e4f5943c61