Commit graph

563 commits

Author SHA1 Message Date
Paul Keith
df4a1d6c77 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>
2017-02-09 18:41:40 +00:00
Paul Keith
59ba89e0d0 macloader: Allow overriding non-standard paths
* Follow the rest of the hals

Change-Id: Ib3bf92b3e975d96586802a1473c589fc9536ad40
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
2017-02-09 18:41:18 +00:00
Jesse Chan
cd60dd84b0 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>
2017-02-09 17:31:48 +00:00
Jesse Chan
b23aaf793d add Samsung BAUTH Fingerprint HAL
Change-Id: I3c0d3e2a0f9b77f0202cbdb0a75a00b760afcd8c
2017-02-09 17:29:54 +00:00
Christopher N. Hesse
650848675d 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
2017-02-09 11:12:02 +00:00
Andreas Schneider
928ddca2ec libsecril-client: Fix logging
Change-Id: I370e70ebfb8fca3d610cdf58c8ac793844d23cb8
2017-02-08 18:46:29 +01:00
Fevax
86ac23487e audio: Allow playback on earpiece too
For VoIP we need to have output on the earpiece.

Change-Id: I5c5488a184b3efe4f95a2d0602ad286b1eba7780
2017-02-08 10:19:23 +00:00
Paul Keith
6e35157bd6 macloader: Decapitalize wisol MAC addresses
* These should be lowercase, otherwise detection will fail

Change-Id: Ibdc446a8f9c58bc9b17b8e9c6cfd5f4894f7ecff
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
2017-02-07 15:17:17 -06:00
Andreas Schneider
6d31bae512 audio: in_call is a bool type
Change-Id: Ie8db6ddac7f3cb64acd4bf95be00744754a2907d
2017-02-07 13:05:54 +00:00
Andreas Schneider
7cc49b4fb2 audio: Remove unused audio routes
Change-Id: Ia3670f075369eb721e12588c5c6f0b3525a51e67
2017-02-06 18:23:51 +01:00
Andreas Schneider
a366011f60 libsecril-client: Turn off logging by default
Change-Id: I4fabfafbf593c9a08e33698adbe488998c610610
2017-02-06 18:23:50 +01:00
Andreas Schneider
560e37ac0a 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
2017-02-06 18:21:05 +01:00
Andreas Schneider
0130b88891 libril: Use RLOG
Change-Id: I6b7ed9fc11b03669c3cb4405c25509c6b00401e3
2017-02-06 18:18:49 +01:00
Simon Shields
fc68d3abb8 exynos4x12: use common samsung liblights
Change-Id: I5615413d5427177af0d161cfac24e98e18bf017b
2017-02-06 03:02:48 +00:00
Abhisek Devkota
9227fbea9f Automatic translation import
Change-Id: I3bb868755965b072319ff5a4ddaebb32c2f3c4ac
2017-02-04 16:22:02 -08:00
Jesse Chan
67a74448ff add a common mkbootimg.mk to quiet "KERNEL IS NOT SEANDROID ENFORCING" warning
* dtimage part is taken from vendor/cm

Change-Id: I243af7a0158ea64fe4c524e98f084b073944f5bb
2017-02-04 18:58:24 +00:00
Andreas Schneider
3b643835f9 audio: Disable support for IRQ affinity by default
Change-Id: I410f0037747149471a1d5fe7cf38720121938822
2017-02-02 13:15:09 +01:00
Andreas Schneider
56204f6d19 audio: Correctly handle out of memory conditions
Change-Id: Id7e0ab1085d3e38c1eaa7905a17726e9d1a68cc9
2017-02-02 13:15:04 +01:00
Andreas Schneider
dc15cec22a audio: Make speaker swap on screen rotation optional
Change-Id: I73623629c4418bff8178793d856d8da98b694283
2017-02-02 12:39:54 +01:00
Andreas Schneider
cdad20da45 audio: Remove unused screen_state parameter
Change-Id: I3359e5e6c0d49bc5067f3a78f2f5a1b087c7ae4b
2017-02-02 12:39:54 +01:00
Andreas Schneider
a2b77321b1 audio: Remove tty_mode which we do not support
Change-Id: Ifdde7e0ae6b6f1a293d6fa50625ab70ba1fc63a1
2017-02-02 12:39:54 +01:00
Christopher N. Hesse
530cf0d012 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
2017-02-02 11:39:00 +00:00
Christopher N. Hesse
ce6d5afbcd audio: Implement get_capture_position()
Change-Id: Ib9f637d30774b2a9aa23e6958ce5465d90eae467
2017-02-02 11:37:05 +00:00
Christopher N. Hesse
e6b3a3eae4 audio: improve read/write timing for streams
Change-Id: Ic4231c4b44369a9438c6c94622b90862047e9a32
Reference: 0caeee8ac4
2017-02-02 11:36:32 +00:00
Andreas Schneider
b7f32128dc audio: Use C99 initializers in read_frames()
Change-Id: I69d9ac00dbd7126682c66087804c2b33cf6c86bc
2017-02-02 11:35:48 +00:00
Andreas Schneider
cabe5e6aef audio: Fix memory leak when preprocessing is disabled
Change-Id: Ia168de215200ae9e1f4740cf5623b39058b3797c
2017-01-30 22:51:15 +01:00
Christopher N. Hesse
8414bd240a audio: Allow targets to override the deep buffer device
Change-Id: I539403661e40e5be7eb5cc130a4b8ad8331d2a4a
2017-01-30 21:49:42 +00:00
Christopher N. Hesse
d23c6b5fcd audio: Move card specfic defines to a header
Change-Id: Iec74ee5c4c0cf93e3a7413901e128b76cf708dbb
2017-01-30 21:47:10 +00:00
Christopher N. Hesse
757ac41a40 audio: Factor out offload code
Change-Id: I94a592262016d954318dab3d1339504e54f83681
2017-01-30 21:46:10 +00:00
Christopher N. Hesse
0612a4efc0 audio: Rename header guard macro
Change-Id: I350616da3ba98965d2dcdd533e57d77b0ac7e41a
2017-01-30 21:40:15 +00:00
Christopher N. Hesse
c8502b9ea8 audio: Update module name/author
Change-Id: I744742d6be18a4b599e58f3c005154d5a944bd0f
2017-01-30 21:39:20 +00:00
Christopher N. Hesse
052094be3b audio: Remove dummybuf headphone GPIO code
Change-Id: I004ac324df61f37083858c6a5f01f093ad19f98b
2017-01-30 21:38:30 +00:00
Christopher N. Hesse
2f6f8580a3 audio: Remove HTC acoustic amplifier code
Change-Id: Id9ea8f1eb9403d171150fd5f15c7ec431c4a1504
2017-01-30 21:38:01 +00:00
Christopher N. Hesse
297a636a12 audio: Import N HAL from flounder
HEAD:
Turn off excess logging
Change-Id: I77d6eaf4ac31d969fd42e9a96418203bc682476f

Change-Id: I1cbcbf16ab617b676defcce49335d6f4190e63a9
2017-01-30 21:36:19 +00:00
Zhao Wei Liew
41cab354f1 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 c11396ecc6.

Change-Id: Id912091f64da39a10d30c9770f248cf6467e8760
2017-01-26 11:02:11 +00:00
Abhisek Devkota
c2ff40ee5c Automatic translation import
Change-Id: I23653a0bd1d2e84ae0464b003f2b9391617c3907
2017-01-25 22:23:26 +00:00
Christopher N. Hesse
ccd970ddeb power: Make boostpulse_warned static
Change-Id: I8bd557c637402922702fcb75a1c0633947ded41a
2017-01-25 22:41:05 +01:00
Christopher N. Hesse
58f2ca07ed power: Add PROFILE_MAX to enum
Change-Id: If7349c98598d346f5b03b32dceb5f797c8b02ce7
2017-01-25 21:34:09 +00:00
Christopher N. Hesse
d928574407 power: Directly compare chars
Change-Id: I6da2d9cfcecd7177e2c1a74051e2ad46e2349f64
2017-01-25 21:32:06 +00:00
Fevax
e9b45af8b2 Added new murata, semco and wisol addresses
(needed by exynos8890 - bcm4359)

Change-Id: Ie890d8b1370650a81b52a6c1b2c5cf5cd896b500
2017-01-25 15:03:54 -03:00
Luca Stefani
4cd47df9a6 cmhw: Add reading mode
Change-Id: Id6c4ab0c081afb2f9fae6e6c5b776c093f377e97
2017-01-22 13:32:23 +00:00
Christopher N. Hesse
0e14f27f72 power: Remove unused local variables
Change-Id: I8f45398eba884fee3c3833a67f37ffd28186cf24
2017-01-17 00:20:36 +01:00
Christopher N. Hesse
f05f9021a7 power: Consolidate verbose logging
Change-Id: I8b2a5d9c625273220d43a3d39e6fd977bbc1247d
2017-01-17 00:20:36 +01:00
Christopher N. Hesse
aa75be4875 power: Update module author
Change-Id: I4ec64beb57729f5dd299ae04a68770e4f5943c61
2017-01-17 00:20:36 +01:00
Christopher N. Hesse
f629672e63 power: Remove outdated comments
Always redirect to power.h for updated documentation.

Change-Id: I066f3b6f83483bdf3a0db315c1381c670df47b12
2017-01-17 00:20:35 +01:00
Christopher N. Hesse
766aa1e464 dtbhtool: Do not force utilities to be built
Change-Id: I8b7a8cffae296328bb557852b2d44ba406923a7e
2017-01-17 00:20:35 +01:00
Christopher N. Hesse
cdbd3b6c89 Revert "dtbhtool: Add LOCAL_MODULE_TAGS := optional"
Superflous commit, see:
http://source.android.com/source/add-device.html.

This reverts commit 7598a16084.

Change-Id: I75af8b68b8dc07a27d1bc2bf23550f3c1c8ddb77
2017-01-17 00:20:30 +01:00
Paul Keith
7598a16084 dtbhtool: Add LOCAL_MODULE_TAGS := optional
* This breaks building on devices that
  don't require the need of dtbhtool
* Also remove LOCAL_MODULE_TAGS := eng, to
  avoid requiring this on an eng build

Change-Id: Iad9296f46dd78c778ce1ce48d6722ed98bc27cd3
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
2017-01-16 11:00:09 -06:00
Simon Shields
28bf1cc919 exynos4: allow using SLSI stack
Change-Id: I6201fb7b513f0b0d771460be133a7f32691b5070
2017-01-10 13:25:38 +00:00
Christopher N. Hesse
872abc67a7 Allow targets to build dtbhtool
Change-Id: Id31337de6acff43798a05acacaa0672c5737911f
2017-01-04 02:15:55 +01:00