297 Commits

Author SHA1 Message Date
Sebastiano Barezzi
3a38b43847 alioth: Remove duplicated camera components from blobs list
Signed-off-by: althafvly <althafvly@gmail.com>
Change-Id: I3f9929b6e358202ddca009bdf4a0e6de70193d5b
2021-10-11 18:47:52 +02:00
althafvly
62b6068b05 alioth: audio: Sync audio configs from MIUI 21.9.12
From: RKQ1.200826.002-21.9.12-release-keys

- Fixes wired headset mic issues

Change-Id: I25807ac820dd7db4686bd0fe360479867249679f
2021-09-19 12:37:26 +02:00
LuK1337
95c3ab6410 alioth: overlay: Don't check proximity sensor before pulsing
Since we don't have a proper proximity sensor, doze is unable to perform a
proximity check thus some xiaomi part features aren't working

Change-Id: Ic7f2dff80b52d32e821b77f2e8c6307f8a8e3d18
2021-09-08 23:28:03 +02:00
Sebastiano Barezzi
64e5ca6a3f alioth: Reorder blobs
Change-Id: Ic7388039512458f97b79e734daedbe6f92e67483
2021-09-08 23:00:42 +02:00
Sebastiano Barezzi
6c2aae752a alioth: Add a script to reorder blobs list
Change-Id: I76e85e07f5a562b7e2a3683da264ccebff5c3613
2021-09-08 23:00:39 +02:00
Sebastiano Barezzi
54213c41e4 alioth: Update blobs from V12.5.3.0.RKHMIXM
Change-Id: I52bd25bcee73e57dc5e155d607fd277d4c0d14fa
2021-09-05 00:23:46 +02:00
Sam Mortimer
61bfaef36a alioth: add prorietary file capi_v2_dap_cpdp.so
* Resolves:
  W adsprpcd: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/a
  pps_std_imp.c:805: Warning: apps_std_fopen_with_env failed with
  0x2 for capi_v2_dap_cpdp.so (No such file or directory)

* Also resolves ADSP_FAILED errors (and audio silence) that occur
  during inbound call notification when a BT headset is connected.

Change-Id: Ib73c25c03e89df11b18fedb44631577ab267403f
2021-09-04 01:50:09 -07:00
Naseer Ahmed
7325e0e714 alioth: props: add display panel related prop
Bug: 65406796
Test: Boot alioth
Change-Id: I431d5ce66d1e63c4b6014da34a899fca879f3552
2021-08-27 22:28:32 +05:30
Midas Chien
c7ddea28d5 alioth: props: add display fps deferral
The FPS deferral property allows deferring clock/bandwidth votes
when switching from high refresh rate to low in case hardware
takes some extra time to change refresh rate.

Bug: 152468927
Bug: 154607334
Test: 60/90 switching, no noise line
Test: systrace to check vsync period
Change-Id: I47284578d13c203b14b3213081faf258dd9a542b
2021-08-27 22:28:22 +05:30
Sebastiano Barezzi
1fc22a1280 alioth: libinit: Adapt to latest changes
Change-Id: Idc740a7487c01f5837fc25ac7220e4a8a0247271
2021-08-24 16:36:12 +02:00
althafvly
ba81d26e1b alioth: overlay: Set default Peak RefreshRate to 60
- Setting default peak refresh rate 0 or 120 disables 90Hz.
  This makes 90Hz option in min_refresh_rate unusable. Setting
  both config_defaultPeakRefreshRate and config_defaultRefreshRate
  to 60 allows us to use 90Hz properly

Change-Id: I67eed6191881ba7678065a6840c1d4ed0dea8ed3
2021-08-18 22:44:54 +05:30
althafvly
b76d2e245f alioth: overlay: Remove default Peak RefreshRate
- We are no longer using smooth display and using min refresh rate,
  So this causes stuck at 120hz all time

Change-Id: Id9661bd4a17a50cf0b1fc132fcd5c84f3e85689c
2021-08-12 19:51:29 +05:30
Marc K
017880484b alioth: Decommonize HotwordEnrollment
Change-Id: I2d92212b4de399e7061b181983e412c8afa59183
2021-08-11 15:12:59 +02:00
Albert I
e166382c30 alioth: gpt-utils: Add OTA support for below partition
1. featenabler
2. multiimgoem

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I79c53013a9117e10688534de8b9146d15da47cc1
2021-08-06 06:23:03 +02:00
Akilesh Kailash
11f99f60c1 alioth: gpt-utils: fsync after block device writes
When markBoolSuccessful is invoked, we update
the partition table. These writes should be
synced before merge operation is resumed post OTA.
If not, any crash before these writes are landed to
backing storage will lead to incorrect switching of
slots.

BUG: 175711601
Test: Verify slot switching correctly after crash when merge in progress
(on redbull)
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: Icc4987e5e8fb1a4b55a0c8ca74c362c56dd9d0ed
Signed-off-by: Albert I <kras@raphielgang.org>
2021-08-06 06:16:43 +02:00
Thomas Shum
161cb2f90d alioth: set config_haveNotch overlay to true
alioth has a center punchhole camera, so users were still able to
do things like enabling the network traffic monitor or setting the clock
position to center, both of which would not be fully visible due to the
camera.

Change-Id: I2aaa0c06b23b40aac120c325ce15fb0992463520
2021-08-04 19:32:06 +05:30
LuK1337
750ef005d9 alioth: overlay-lineage: Switch to min_refresh_rate setting
- 90hz in alioth not calibrated correcly in terms colors (blame xiaomi).
  which creates screen flickering while switching between 60<->90<->120hz

- Sometimes low brightness causing flickering between 60<->120hz.

- So we are switching to manually setting refresh rate

Change-Id: I2e16b99318003de819d84cab03f7baa33b9b6f2b
2021-08-03 14:25:59 +05:30
althafvly
52fdc526c5 alioth: Revert surfaceflinger content based refresh rate
This reverts commit bc942a3e79.

This reverts commit e22fdc571e.

Change-Id: Ia833ff975fc20de13e9c4bf0350d55f8a2d91bab
2021-08-03 14:23:06 +05:30
althafvly
7308c51bf8 Revert "alioth: Enable TARGET_ENABLE_AUDIO_ULL"
This reverts commit 3937e48b58.

Change-Id: I091c77b6e8d72c2267e9dac1bcff1bf2f961a2b0
2021-08-02 19:38:02 +02:00
Albert I
3b8ae426c7 alioth: audio: Update platform info from CAF
- From LA.UM.9.12.r1-08300-SMxx50.0
- Remove Xiaomi's crap while at it

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I5483ae59edd031e381a61619f8f57caaca4cabd6
2021-08-02 15:28:30 +02:00
SahilSonar
68f621f5ec alioth: audio: Import missing mixer_paths_overlay_dynamic from stock
Change-Id: I718ff120d446db4b71b70252591d3994eec0f858
2021-08-02 15:28:15 +02:00
Albert I
0321bb1744 alioth: audio: Remove duplicate mixer paths
855  1026 E audio_route_ext: Path name 'audio-record-compress2 bt-sco-wb' already exists
855  1026 E audio_route_ext: start_tag_common_path: fatal err path name already existed in common xml

Change-Id: I93d39add5966dd186fb745cb1222ceecaa63ed48
Signed-off-by: Albert I <kras@raphielgang.org>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-08-02 11:19:03 +05:30
Albert I
4a42ff6797 alioth: audio: Fix small typo in mixer_paths_overlay_static.xml
Breaks MIUS suspend, LOL

Change-Id: I13d324658099823dc3e220da4fd3e1b4aeb68cbc
Signed-off-by: Albert I <kras@raphielgang.org>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-08-02 11:18:57 +05:30
Ramii Ahmed
bc942a3e79 alioth: Set surfaceflinger refresh rate timers
This to allow us to idle to lower refresh rates even if the app is
requesting a higher one if it's idle to save battery life, or boost even on
apps that don't request a certain high refresh rate to get a smoother
experience

Change-Id: Ie611283e1d75a31b218454073e85742be91fdf07
2021-07-30 10:22:53 +02:00
Ramii Ahmed
e22fdc571e alioth: Switch to surfaceflinger content detection API
This is to allow refresh rate switching to be truly dynamic based on the refresh rate requested by the app while allowing for us to add boost & idle cases in the future through further properties

Change-Id: I6584ce692d33406e489c82af2ded58af72db5e2d
2021-07-30 10:16:52 +02:00
Sebastiano Barezzi
8d9da456e7 alioth: Add HDR and AOSP color props
Change-Id: I8a546c2a2abdad2671aced7325f4ebf0f4b06a80
2021-07-30 10:16:45 +02:00
Danny Lin
88cfc1bb9f alioth: Enable refresh rate toggle in Settings
alioth supports switching between 60,90 and 120 Hz refresh rates, so let's
expose it in Settings -> Display -> Smooth Display for users to save
battery if necessary.

Test: visual confirmation after toggling several times
Change-Id: Ie698ec4d4e738afd2a9055dba2369233103a4f13
2021-07-30 10:16:37 +02:00
Steven Thomas
09a3628a83 alioth: overlay: Set config_defaultRefreshRate to 0
Add a new priority PRIORITY_DEVICE_PEAK_REFRESH_RATE, and a new config
setting config_defaultRefreshRate which maps to that priority. This
allows an OEM to easily specify a default frame rate different from the
peak frame rate.

Bug: 148978450
Bug: 154648391

Test: - Added new unit tests to verify DisplayModeDirector handles min,
        peak, and default refresh rate settings correctly.

- Modified a POCO F3 to set config_defaultRefreshRate to 120Hz, confirmed
  we default to 60, but that an app calling setFrameRate(120) switches us
  to 120.

- Confirmed that the "smooth display" and "force 120Hz" options on POCO F3 work correctly.

- While we are at it drop redundant config_defaultMinimumRefreshRate

Signed-off-by: althafvly <althafvly@gmail.com>
Change-Id: I9e5b33ae4d8cb6753b9af70ec5407b3576e75dc3
2021-07-30 10:16:28 +02:00
SahilSonar
4993b8f26c alioth: overlay-lineage: Set proper fingerprint sensor location
Change-Id: I5870100b1df2004f0541bba22f7a355234d082c6
2021-07-30 06:20:56 +02:00
SahilSonar
3937e48b58 alioth: Enable TARGET_ENABLE_AUDIO_ULL
Change-Id: Id6e675a8f0becc4b735cff22b48f049f70e5cd6d
2021-07-30 06:20:35 +02:00
Sebastiano Barezzi
f4a2ea5649 alioth: Set Dalvik heap props on boot
Change-Id: I5edc8e5bf4138068bcbb27db6097ecc0ae50f82b
2021-07-29 04:14:08 +02:00
Sebastiano Barezzi
74990072b7 alioth: Decommonize device-specific audio props
Change-Id: I77430a78b1ae2875f5f0354bbc57d96fe94db65d
2021-07-29 04:14:00 +02:00
Sebastiano Barezzi
7d242226ea alioth: Commonize aptX ADSP blobs
Change-Id: I5334314449a1151ce1133086baa42c5738242806
2021-07-29 04:08:07 +02:00
luk1337
7d75909e8a alioth: overlay: Use 52px rounded corner padding
Change-Id: I9f81f684d491ed447b7bdb2ca70f558bf75ebc67
2021-07-28 14:50:30 +02:00
althafvly
9679d60617 alioth: remove duplicate flag
its here
4e89917d80/device.mk (L8)

Change-Id: Ib1d2c29ca52abc140d6023a64b0e6cafc6cea7a4
2021-07-27 00:58:00 +05:30
SahilSonar
4e89917d80 alioth: Import vibrator firmware
Change-Id: I7c93a2d173ae5d688141736876b4301b975140cf
2021-07-25 14:01:21 +02:00
Omkar Chandorkar
f2a7293d8f alioth: Add OTA assert to support both variants
Change-Id: I0866906534727f3ba67ab6d7f61f0ef9d49b95db
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-07-25 16:02:17 +05:30
SebaUbuntu
0650979fcd alioth: Add libinit for variants handling
Change-Id: Ia990f08d046192a42c0d951a2ce8d06b8794f6f0
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-07-25 15:59:07 +05:30
Dan Willemsen
266867ee1e alioth: Mark as having overridden commands
To allow turning these into errors on other devices, and incrementally
fix these issue, set BUILD_BROKEN_DUP_RULES.

Bug: 77611511
Test: check out/soong.log
Change-Id: I3b8f29f0f9e2ad445e72c65e7688b109817dcff3
2021-07-23 18:49:01 +02:00
dataoutputstream
44c06edc57 alioth: Import bootctrl and gpt_utils hal
Change-Id: Iefe7f59e28ebb667f8bbbf096b38923c08b863db
2021-07-23 18:49:01 +02:00
Ethan Chen
d1e3ef54aa alioth: Use Soong namespace to avoid device build conflicts
Change-Id: Id04f464102264b6f2e8d49b39389c7e346613b39
2021-07-23 18:49:01 +02:00
SahilSonar
fb93cf0b84 alioth: Import device-specific audio configs
Change-Id: I0ec62df445d57e6c28a0ff005b0a2943f8b82f84
2021-07-23 18:49:01 +02:00
SahilSonar
17954186a5 alioth: Initial list of proprietary blobs
Change-Id: I4a0201fe39de617d63f101c4e6be512be282744f
2021-07-23 18:49:01 +02:00
SahilSonar
42cecb6941 alioth: Import Lineage's common extract_utils
Change-Id: Ibd03799669c925999b2baaef6f4411a168ec6063
2021-07-23 18:49:01 +02:00
SahilSonar
0cad158a60 alioth: overlay: Import stock power profile
Change-Id: I6db36abf6b9f4681410458114affe85c4288f816
2021-07-23 18:49:01 +02:00
SahilSonar
551b1bbcf9 alioth: Import stock overlays
Change-Id: I10eb5d9edc374a5769b7f058486f73eeff6aee00
2021-07-23 18:48:56 +02:00
SahilSonar
2994b3a21b alioth: Initial device tree
Change-Id: I6e667c7ccd633593931e503cf10ca23ee9a8f713
2021-07-23 18:48:43 +02:00