Commit graph

621 commits

Author SHA1 Message Date
ripee
39f820b7ff
Merge pull request #24 from LineageOS/lineage-16.0
hidl: Don't compile setNotificationLED if there is no blink node
2020-12-27 23:07:21 +01:00
Andreas Schneider
c03ec344f1 hidl: Don't compile setNotificationLED if there is no blink node
For example exynos9820 doesn't provide a LED.

Change-Id: I745f179fae52816c915833321123c8f49ba0a7d2
(cherry picked from commit eeb666cf00)
2020-11-26 05:07:44 +02:00
ripee
b6e961e507
Merge pull request #20 from LineageOS/lineage-16.0
Automatic translation import
2020-10-07 14:31:30 +02:00
LineageOS Builder
8215aca871 Automatic translation import
Change-Id: I67430275b049b18886248a6f18bbd47fddb31fe5
2020-09-12 14:26:15 +00:00
ripee
aa1b3721af
Merge pull request #4 from LineageOS/lineage-16.0
Apr 09, 2020
2020-05-23 15:01:05 +02:00
Jan Altensen
92126914d0 power: properly initialize cluster states
this fixes the following error
hardware/samsung/power/power.c:415:51: error: excess elements in array initializer [-Werror]
    char ON[CLUSTER_COUNT][PARAM_MAXLEN]  = {"1", "1"};

when only one cluster is defined

Change-Id: I49f88297afb8d57d8abd309e22fa667134b7e406
2020-04-09 16:40:38 +02:00
Michael W
763f86d784 Automatic translation import
Change-Id: I1b630f28cdffe7a732b4d85d961273b2affd858a
2020-03-28 21:02:56 +01:00
Michael W
36043a1745 Automatic translation import
Change-Id: Ia065bf6dbe74d0e0dd6113c4b4a7c9f356b97258
2020-03-22 20:32:46 +02:00
ripee
2ded4c6857
Merge pull request #2 from LineageOS/lineage-16.0
Mar 10, 2020
2020-03-14 01:19:44 +01:00
Danny Wood
0f2ba01f36
samsung: hidl: fingerprint: call cancel on fingerprint enrollment completion
Change-Id: I288613b772e3b31b86c7dffd5903dbe21ce5d5a9
2020-03-10 15:44:46 +01:00
Jan Altensen
83b6b072a6
samsung: hidl: fingerprint: call notify on cancel
Change-Id: Idb1b3200e571c546441fa9c0cfd1a1728e165a96
2020-03-10 15:44:34 +01:00
Danny Wood
255be44225
samsung: hidl: correct USES_PERCENTAGE_SAMPLES behaviour as previously it did nothing
This fixes fingerprint on the SM-A510F and possibly other older Samsung devices when using the new
HIDL implementation

Change-Id: Ie8883d3d628e924a9b181b08681388cd05e5f325
2020-03-10 15:43:57 +01:00
Paul Keith
fb1b663187 hidl: consumerir: Fill in implementation for IR hal
Change-Id: I0b69cce74a6fce9bf720508c279df67c49641c49
2020-01-28 08:07:16 -06:00
Paul Keith
3afea125f2 hidl: consumerir: Update samsung_consumerir header for HIDL hal
Change-Id: Ife68fd0ccd65eb16241694bbf911fc6810f7dd80
2020-01-28 08:01:03 -06:00
Paul Keith
f4feddcd22 hidl: consumerir: Add legacy samsung_consumerir header
Change-Id: I5eba753669b7c8ae6e63cb235cc16bf362c6c051
2020-01-28 07:58:27 -06:00
Paul Keith
133f482dcd hidl: consumerir: Setup boilerplate code for HIDL hal
Change-Id: I5347b6b7d2b12f4f5ae0990503e50f22850746fb
2020-01-27 20:32:01 -06:00
Paul Keith
0e371da3d2 hidl: consumerir: Add autogenerated HIDL impl and blueprint
* Using the commands:
 - hidl-gen -p ../.. -o hidl/consumerir -r android.hardware:hardware/interfaces android.hardware.ir@1.0 -L androidbp-impl
 - hidl-gen -p ../.. -o hidl/consumerir -r android.hardware:hardware/interfaces android.hardware.ir@1.0 -L c++-impl

Change-Id: I4079d2a7b50bdb6e9b9389892bce2a9e881db039
2020-01-27 20:31:59 -06:00
Paul Keith
6d952c28b6 hidl: Use common .clang-format file
Change-Id: I735e63167c7d5be39b3211bda404b1ebca2227ea
2020-01-27 20:19:11 -06:00
ripee
1bd5a92857
Merge pull request #1 from LineageOS/lineage-16.0
Automatic translation import
2020-01-27 11:30:30 +01:00
Michael W
c48edd5477 Automatic translation import
Change-Id: I9fd5e78076205dbfdf63cc3457856d6bde05fe58
2020-01-14 23:25:26 +01:00
ripee
f937dbe9ff Havoc-ify 2019-11-28 02:32:07 +01:00
Jan Altensen
1813ff97bb
samsung: hidl: Add fingerprint 2.1 HAL
Change-Id: Ibd1b7fe7e1847ec28b2450fbf44cc740e5f364ef
2019-08-21 23:31:41 +02:00
LuK1337
f267b8f90e
samsung: hidl: Add keymaster 4.0 HAL
Change-Id: Ib754acda4b6f3e8d1911432523a9b06ba1509aa6
2019-08-19 00:49:58 +02:00
Nolen Johnson
c03534e9a0 loki: Standardize ifeq logic among makefiles
* Also resolve a typo.

Change-Id: Ic32740db8a9216751b5735ad472a7fcc48e6a738
2019-08-11 22:53:04 +02:00
Nolen Johnson
802fd001d4 mkbootimg: Add Loki support
* I want my target-files built images to be Loki'd if the device
  needs Loki.
* With this, devices that rely on Loki can ship Lineage Recovery
  officially.
* Import loki_tool from: https://github.com/Stricted/android_external_loki.

Change-Id: I45ef363e05566268c8f24f7e8939a2d785478fbe
2019-08-11 08:31:45 +02:00
Jan Altensen
7ffb495501
samsung: hidl: light: battery has lowest priority
Change-Id: I90d61439f8a431f1836e439d34764b7eb7983db9
2019-08-07 11:33:32 +02:00
Michael Bestas
519e3c5175 Automatic translation import
Change-Id: Ieb32cc183acaf620e49ec4e2951e80df2ff6b694
2019-08-04 16:22:21 +03:00
Steven Moreland
50395e61e9 samsung: hidl: light service: Mark as shutdown critical
Required because the lights need to be turned off late in boot
(e.x. during fsck for disk health), and before, blank_screen
accessing light encountered a race condition where if it didn't
get scheduled before all of the processes which were getting
shutdown were getting killed, the screen wouldn't blank.

Bug: 74976325
Test: adjusting brightness continues to work
Test: screen blanks during shutdown at the correct time
      including when an artificial 5s delay is inserted when
      the phone normally fscks (which can also be quick)

Change-Id: I57ebc11d7ecf57ee327c681455712f4b53de6fd3
2019-07-22 02:15:27 +02:00
Steven Moreland
66b195f359 samsung: hidl: light_service: Add interface specification for lights hal
So that init knows how to start it and to provide
an example of how to specify interfaces since there
are no lazy starting services on Pixel yet.

In order to make lights a lazy service, it would also
have to be marked as 'oneshot'.

Test: manually using Light as a lazy service
Bug: 64678982
Change-Id: I846a7e2d9545b42af9b985adb74883bda1b8c355
2019-07-22 02:15:13 +02:00
Jan Altensen
0003f594ef lineagehw: hidl: livedisplay: run clang-format
Change-Id: I2abd96bb87321c8cfb86aa155b5423665dfb5c2e
2019-07-21 05:24:12 +02:00
Jan Altensen
6f3af5aed8 lineagehw: hidl: touch: run clang-format
Change-Id: If7126936fc4e0804c29061c7ecc706228654af15
2019-07-21 05:24:12 +02:00
Jan Altensen
53afa33078
hidl: add hidl lights hal
Change-Id: I333c8d3e20bb451d208f15661afc06ac47e1a377
2019-07-21 02:07:39 +02:00
LuK1337
bf9997860e hidl: livedisplay: Fix reading mode string comparison
* Since we are trimming the string it will
  never match one with trailing space at the end.

Change-Id: Iea76092112555ed8b858560f07ef8e88f0ff593b
2019-07-10 10:36:49 +02:00
Michael Bestas
fac70594be Automatic translation import
Change-Id: I7b217eb210fe710ba73511bcf96d9c4e4abe17bc
2019-07-06 11:57:26 +03:00
Michael Bestas
c5dbdcfcc6 Automatic translation import
Change-Id: I3c6060e02b5a290f9485994035750c96d9a5a118
2019-06-08 18:56:55 +03:00
LuK1337
e8fffdb5a9 hidl: livedisplay: Restore default display mode in DisplayModes constructor
Change-Id: I5a6303f7f67a8b6d35663d2d86346d585f367cd3
2019-05-25 21:16:52 +02:00
LuK1337
f419e0c1e9
hidl: livedisplay: Move .displaymodedefault to /data/vendor/display
* By default hal_lineage_livedisplay_default does not
  have permissions to write to /data/misc.

Change-Id: I5599a5e6602ea326322328aeda1c6eb0411a5568
2019-05-25 21:14:52 +02:00
Jan Altensen
4e47a0bc91 hidl: livedisplay: Add binderized service implementation
* Change default ::implementation namespace to ::samsung
* Fill in required methods for used impls
* Cleanup passthrough code for used impls
* Remove unused impls
* Add and setup binderized service

Change-Id: I545a7c0ac8bf4fce04da73a0d39d4ac1938496f2
2019-05-24 03:14:10 +02:00
Jan Altensen
1a8433638a samsung: Add dummy lineagehw HIDL interfaces for vendor.lineage.livedisplay
* Generated from hidl-gen with added LineageOS copyrights

Change-Id: I150c3a65b92586fa2715c0f8ef27d2bcc6ba5d70
2019-05-24 03:14:10 +02:00
Paul Keith
2b27b275b3 hidl: touch: Add binderized service implementation
* Change default ::implementation namespace to ::samsung
* Fill in required methods for used impls
* Cleanup passthrough code for used impls
* Add and setup binderized service

Change-Id: Iadc3b6e385233d103c3349ce31a08d6d040886c7
2019-04-11 05:41:47 +02:00
Paul Keith
5b3bd86278 samsung: Add dummy lineagehw HIDL interfaces for vendor.lineage.touch
* Generated from hidl-gen with added LineageOS copyrights

Change-Id: Ia1073b57ecbafee0e599788b1ead5cc4b2dbda57
2019-04-11 05:41:47 +02:00
Michael Bestas
d52ea36f08 Automatic translation import
Change-Id: I9a691863f0f09b859ec07c1f421f5c41dc3fdbdd
2019-04-07 21:57:34 +03:00
Michael W
d37e68910b Automatic translation import
Change-Id: Ic3b685df13f3fd3564b1301bfb1276f7c369196b
2019-03-11 00:20:08 +01:00
Michael Bestas
4fcc6afe42 Automatic translation import
Change-Id: I95f8b2c7aa1c76cef2d14b6b9c2e971cc5f66d46
2019-02-26 19:00:24 +02:00
ivanmeler
5b915c8fca Add anpother semco oui mapping
Change-Id: Ie6d58fe13af35716a406feb262e6e18954c26c36
2019-02-13 20:46:41 +01:00
Vasyl Gello
d758a17389
audio_hw: Prevent referencing input devices from empty list
Fixes audioserver crash in in_get_capture_position() if PCM input
device was not properly opened.

Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
Change-Id: I2f2d9bc8151cf61af112a9544268513effacacb5
2019-02-05 20:11:41 +01:00
stenkinevgeniy
884938a258
Audio: fix voip calls over bluetooth for Wolfson Microelectronics codecs.
Some devices, that using wm* codecs like i9500, t805, p601 and others
need open CP pcm's when using BT SCO in IN_COMMUNICATION mode.

Change-Id: I64935aabf1c52e66409e727f02752cd325f8ef58
Signed-off-by: stenkinevgeniy <stenkinevgeniy@gmail.com>
2019-02-05 20:11:32 +01:00
stenkinevgeniy
53929f79f9
Audio: fix voip calls over bluetooth headset.
Current HAL start/stop bt_sco session only for incall mode -
rewrite logic to start/stop bt session when system switch to
one of the bluetooth devices.
Move bt_sco_active and pcm_sco_rx/tx to main audio_device structure.
Remove bt_sco_capture profile.

Change-Id: I7bbe4273f759e255bb857f8292f2921df31d4b0b
Signed-off-by: stenkinevgeniy <stenkinevgeniy@gmail.com>
2019-02-05 20:11:32 +01:00
stenkinevgeniy
282d59245e
Audio: fix call recording.
Change-Id: I312d2a36009ec1415dd5ccba4fbb68ae4a10e2ab
2019-02-05 20:11:31 +01:00
Basil Gello
efdfdba35a
audio: Re-worked sound pre- and post-processing
In order to activate proprietary sound pre- and post-processing,
the following parts of audio HAL were revised:

* Activated ENABLE_PREPROCESSING directive in Android.mk
* Removed unused variables and functions
* Re-written set_preprocessor_echo_delay() function

Change-Id: I868087f422764895df7d2bc6bbf4bbd76672b8e7
2019-02-05 20:11:30 +01:00