Commit Graph

1131 Commits

Author SHA1 Message Date
Arian e205078c4a sm8150-common: Build Lineage Health HAL 2024-03-10 21:16:32 +05:30
orges 9031f8a279 init: set correct {up,down}rate_limit_us for msmnile
Change-Id: I3f025e7f03aafa22f2bce9d60f3cd85c460bfe41
2024-03-10 21:16:32 +05:30
Omkar Chandorkar 3c5cbb89a2
sm8150-common: Initial support for MDM modem
Change-Id: I414a8e2350f8e3af1088cd2d345ef31c17600455
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2023-08-05 10:06:45 +08:00
Cyber Knight bd286a04e1
sm8150-common: Fix typo in proprietary-files.txt
- Might've gone unnoticed during blob update.

Change-Id: Ie883ed283fc0b83b8c0395a3a116420f68ab294f
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2023-08-05 10:06:45 +08:00
Cyber Knight 88773aba5f
sm8150-common: Override multisim config for oneplus7tpronr
- As oneplus7tpronr is single-sim only;
- This prop has to be set to ssss.

Change-Id: I41e0639b9f581c69781b7a2224218276cc714483
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2023-08-05 10:06:45 +08:00
Cyber Knight 9d9bcabd38
sm8150-common: Add support for oneplus7tpronr
- This adds oneplus7tpronr as a build target aswell.

Change-Id: I92dad8eac9b8b6bcab20bf9a35288a1d6da79f6a
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2023-08-05 10:06:44 +08:00
TimoDo 80711950b3
sm8150-common: Nuke DisplayMode
Change-Id: Ie399bdb52c56928b42e10b840df9460fc1e620ca
2023-08-05 10:06:44 +08:00
Omkar Chandorkar 568ea20441
sm8150-common: Use OnePlus panel modes for SF-based colour modes
Change-Id: I9187f27529ea59bba773ebbd2d221f19fec72a04
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-08-05 10:06:44 +08:00
John Galt eb87f78e92
sm8150-common: overlay: sepolicy: switch to new interface
Use new CSC implementation of DC Dimming with per-panel dc dimming luts.

Change-Id: I4b8455551cddbd656af17d7a01227deb438489cd
2023-08-05 10:06:44 +08:00
TimoDo c733d7d7df sm8150-common: BC: We support full LLVM
* This depends on https://gerrit.aospa.co/c/AOSPA/android_kernel_build/+/32292

Change-Id: Id14eed10480cf2e0687da3b01e06f8029488c012
2023-07-25 19:09:29 +02:00
Ido Ben-Hur 538d57ddf2 sm8150-common: overlay: Kill Color Inversion
New kernel switches udfps to CSC, which doesn't work with CI

Change-Id: I69037677590647ac3a8f42cc84a5ce0ec3fcc7f8
2023-07-25 19:09:29 +02:00
Cyber Knight 25fe7cb380 sm8150-common: Support Single Tap Sensor
Change-Id: I92bf77d402d8ee0f569fdefba5a494ea92533b04
2023-07-25 19:09:29 +02:00
John Galt b88878ffc2 sm8150-common: Support doze double tap sensor
Change-Id: Iccfe562cb42dae7d6d84e36251e317a7d87cc484
2023-07-25 19:09:25 +02:00
John Galt a4010e0cd4 sm8150-common: Drop legacy power hal double tap to wake
We will no longer support legacy power hal double tap node, only the modern double tap sensor.

Change-Id: Ie218975274dbbae013189296bb3d1081a34de81a
2023-07-25 19:09:21 +02:00
TimoDo 6272f7cc49 sm8150-common: init: keep comment style consistent
Change-Id: I9eecd6d0c58856d4da43663c11b772cc83d0da9f
2023-07-25 18:51:03 +02:00
TimoDo 68726bb32a sm8150-common: overlay: Disable doze_suspend_display_state_supported
* Our devices don't seem to actually support this, causing
  Always On Display to freeze all the time

Change-Id: Ifdac96f405b6fcf1179967a3d431e32dfff1cac0
2023-07-25 18:50:37 +02:00
TimoDo e3630b3d45 sm8150-common: sepolicy: 2 wakeup nodes moved to qcom/common
following:
https://gerrit.aospa.co/c/AOSPA/android_device_qcom_common/+/29938

Change-Id: Ic1475b7f761c99bf97eb5045dad54183f3d47e08
2023-07-03 12:49:36 +00:00
Jake Weinstein 3b2cc4f5c2 Revert "sm8150-common: Disable getVsyncPeriodFromHWC"
This reverts commit 57a7a2d456.

Reason for revert: moved to vendor/aospa

Change-Id: I453cae6f9f015e0e84365389a20f66dc7ed97dc5
2023-07-02 14:35:22 +00:00
Omkar Chandorkar 57a7a2d456
sm8150-common: Disable getVsyncPeriodFromHWC
- 4.14 display HAL seems to have some issues with newer qssi
  causing it to render UI in 60fps with 120Hz refresh rate in edge cases
- it might be fixed with newer sdm/display-drivers, but this should fix it for now

Change-Id: Idd4e054ac76b14d9d6ee8ead090231ab58f009b8
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-06-25 11:03:45 +05:30
TimoDo 151775e42a sm8150-common: include alarm component
Change-Id: I7c691b6cf4c63009a3723364c85d8c1ca247264f
2023-06-23 15:00:22 +02:00
Omkar Chandorkar bbfb13ba6f sm8150-common: sepolicy: remove duplicate nfc definition
Change-Id: I3bc8aff3b8e22119682408481621bdc99f9339ba
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-06-20 15:54:39 +00:00
TimoDo f3862639ac sm8150-common: overlay: set config_udfpsTriggerOnFingerDownForActionDown
Change-Id: Ia87b863e02eb337f3935c630790113d4087c7f7c
2023-05-11 03:29:23 +00:00
TimoDo a551aec419 common/overlay: Make VRR less aggressive and force 90hz below 20%
Change-Id: If999e3d7bb6a672d1a5403a65d4d6934e4c211c9
2023-05-09 12:12:48 +00:00
Vivek Arugula 6d929a8605 sm8150-common: init: start vendor.sensors at early-boot
start vendor.sensors service which launch sscrpcd  process
at early-boot to accomodate faster SLPI init for msmnile

Change-Id: I8edd92d90c853f6f7600927a6eacf26e603ae4dd
2023-05-03 05:07:52 +02:00
TimoDo 780878ac8f sm8150-common: init: remove unused entries
Change-Id: Ia0fa5743d89e7d314146ec78f1f8416d6c4fcb0d
2023-05-03 05:07:25 +02:00
Yixuan Wang 8d073840b1 sm8150-common: sensors: Remove early break for sub-HAL initialization failure
Bug: 212420575
Test: none
Change-Id: I38099a4edbdeffe99ae2d91fc9dc518c9da98b13
2023-05-03 05:04:42 +02:00
Brian Duddie 5f490fb597 sm8150-common: sensors: Fix sub-HAL handle in dynamic sensor meta events
Need to apply the sub-HAL index byte to ensure handles provided in
DYNAMIC_SENSOR_META events align properly with the [dis]connected
callbacks.

Bug: 228879057
Test: try on device with dynamic sensors sub-HAL at index > 0
Merged-In: Ic7290b51733bb829a5494ef41e9430b51dc6074e
Change-Id: Ic7290b51733bb829a5494ef41e9430b51dc6074e
2023-05-03 05:04:42 +02:00
Alexander Koskovich 56a6368e97 sm8150-common: sensors: Add group 'input' to 2.1 multihal
* Required by some OEM sensor implementations, e.g.
   ASUS ZenFone 8, ASUS ROG Phone 3, OnePlus 9. This
   is done so /dev/input/event* nodes can be read by
   the QCOM sensor HAL.

Test: Verified light and proximity sensor work on ASUS
      ZenFone 8 & ROG Phone 3 (android-12.1.0_r7).
Change-Id: I1a2d7384da0b159a4b59fcf38c37117d43b3b127
2023-05-03 05:04:42 +02:00
karthik bharadwaj d8089ab7f8 sm8150-common: sensors: Strip hinge angle sensor when running a 2.1 HAL as 2.0
VTS ensures that  2.0 HALs don't expose the hinge angle sensor,
but the 2.1 HALs must run 2.0 VTS tests. This CL ensures that
we don't expose the hinge angle sensor on the 2.0 HAL, to avoid
failing those VTS tests.

Bug: 173135479
Test: run vts -a x86 -m VtsHalSensorsV2_0TargetTest
Change-Id: I944bfb0b01be0831e45cfd3d6ed7dab6770d1b80
2023-05-03 05:04:42 +02:00
Stan Rokita 1fb2eaa255 sm8150-common: sensors: Remove unnecessary type and dup for fd
Test: Compile
Change-Id: Iab4502a03090e0c99af73fded270c537b2909591
2023-05-03 05:04:42 +02:00
LuK1337 6dc9270fe0 sm8150-common: sensors: Relocate als_correction_service to /system_ext
Change-Id: I866406c174180e54b57ddb021a500d6bd0f3388a
2023-05-03 05:04:42 +02:00
LibXZR 93f86ceace sm8150-common: sensors: Rework screen capture logic
Moving to asynchronous capture listener allows us to fix previous race
on GraphicBuffer and make sure it won't be blocked by any incident e.g.
fence timeout.

Also, guard updateScreenBuffer() with mutex to make sure lastScreenUpdate
can be updated safely.

Extends ThreadPoolMaxThreadCount to 1 because 0 is a confusing value.
Although we set max threads to 0 previously, extra binder thread was
still started according to the warning message in startThreadPool(),
which led to the race noted above as sigaction can also be run on binder
thread.

Also add verbose logging so we can do quick debugging with LOG_NDEBUG=0.

Change-Id: I4733919bc20b3c1b382e60b71c5ceaa10dedaf49
Signed-off-by: LibXZR <i@xzr.moe>
2023-05-03 05:04:42 +02:00
LibXZR 930a03bb2a sm8150-common: sensors: Capture secure layers too
They affect brightness.

Change-Id: Ifbc10a1e253c986ca720f3d610b545ef0e839e8a
Signed-off-by: LibXZR <i@xzr.moe>
2023-05-03 05:04:42 +02:00
Fabian Leutenegger 229c7d9e69 sm8150-common: Simplify pickup gesture patching
Change-Id: If9bebeab35aaf8fc9282a0c80985baf0eb8931d4
2023-05-03 05:04:42 +02:00
Omkar Chandorkar 3a209a2634 sm8150-common: switch to 1.2 QTI Bootctrl
- introduce getActiveBootSlot

Change-Id: I42e7b6b09808badade6982bc62295173e4e87aae
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-05-03 05:04:32 +02:00
Rituj Beniwal c305cd6abc sm8150-common: enable automated DC-Dimming
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I05ee86d1cd64ae66787a1b32a1858247610bcfbf
2023-04-16 08:02:31 +00:00
TimoDo aa460d4aa7 overlay: Invert < > gesture keycodes
Change-Id: I92738aa28197d2bf689edf4193c1fd37b45caa60
2023-04-16 05:11:25 +02:00
TimoDo d2888fbce2 common: ro.charger.enable_suspend was moved to vendor/aospa
Change-Id: I8884a0dba8c85056f1ff39dbef3add3cc7b27571
2023-04-16 05:11:25 +02:00
timocapa 97454f0614 sm8150-common: Enable OEM fast charge detection
ref: 6c9af65b5b

Change-Id: I1eb33ada5fb66617b78cb95ccf32c8885a1b9b0c
2023-04-07 18:37:57 +02:00
timocapa 3fad6c3ad0 common: Copy audio_policy_configuration to /etc/audio/ too
Change-Id: Ifdd6184305cc3fa47056ba23ccc47c7ad952a73a
2023-04-07 18:37:57 +02:00
timocapa 58680c493a manifest: Bump qtiradio to 2.7
Change-Id: I0cadc5a0189bdafc4074fbe7b683deab0f609bbd
2023-04-07 18:37:07 +02:00
timocapa dc6996769b proprietary-files: Update from LA.UM.9.1.r1-12900-SMxxx0.0
- Pin missing blobs from old tag

Change-Id: I6eeec21ffb11e48db699838bb805e59217f406d1
2023-04-07 18:37:02 +02:00
timocapa a0934fe783 sm8150-common: Pin generated `camera.device@3.{2,3}-impl`
Generated with 4702bae071 reverted
due to it breaking 60 fps video recording

Change-Id: I498b18611c14f8cbbd83ee30f78b578bd94e9b65
2023-02-18 20:47:10 +01:00
timocapa 22c0d17c21 Partially revert "small cleanup"
This reverts commit 2e987ada56.

Change-Id: Ib0cd5092ce0130edc4e805775b0d0220826d30ef
2023-02-18 20:47:10 +01:00
Timo c92545bf06 sepolicy: label LOGO and storsec to allow OTA
Change-Id: Icfc2ddb0a2df930f077f7b376d857462431903df
2023-02-18 20:47:10 +01:00
Jake Weinstein dd8b6b1b35 sm8150-common: Use common compatibility matrix
Change-Id: I877824cc6c15cee7bdae4457984a6130430efd11
2023-02-18 20:47:10 +01:00
LuK1337 3c1caa977e sm8150-common: audio: Add "Built-In (Back) Mic" to "primary input" sink
* That way video recording apps will choose
  16-bit PCM by default instead of 24-bit
  one which happens to have quite low volume
  on this device.

Change-Id: I2130c6a759afcd50a985b2f034b5c0b5374287af
2023-02-18 20:47:10 +01:00
John Galt 021c61704f Build/use UDFPS sensor
Change-Id: Ib12af1e03245224002be273266f1eb7e9d756d81
2023-02-18 20:47:09 +01:00
Omkar Chandorkar 3fe8b4ed6a sm8150-common: cleanup boardconfig and device makefiles
Change-Id: Iefb6dffcd07e8e6cb2d4c9df42388cfd89a5bda7
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-02-18 20:47:09 +01:00
Omkar Chandorkar e3748615fe sm8150-common: move to lz4 for EROFS
- while lz4hc,9 provides better compression ratio, it has the cost of
  tremendous compression time and potential hit while decompressing
- internal tests on aarch64 seem to suggest the decompression hit
  is larger than x86_64

Change-Id: I5c102c03f95ace982b85a6ffa5c33aa9ce4637a4
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-02-18 20:47:09 +01:00