19 Commits

Author SHA1 Message Date
Alexander Winkowski
997f35cf06
sm6250-common: Remove zram writeback leftovers
It has been disabled in kernel because of memory corruption.

Change-Id: I50e4cdc39b38a510d39032253606ddec3e41d22c
2022-06-10 18:56:54 +01:00
Alexander Winkowski
26f4c9e226
Revert "sm6250-common: Import QTI Codec2 HAL and switch to Codec2 by default"
This reverts commit c45471638ae1101cff57e7d8ad7070783771c87f.
2022-05-17 13:30:23 +00:00
Alexander Winkowski
06c533b321
sm6250-common: Remove non-existent properties
Change-Id: I4a4d2fc88815fc5f3b61ee3972534ed30f7ed131
2022-02-22 18:23:09 +00:00
Alexander Winkowski
7817ef46da
sm6250-common: Align audio properties with CAF
* From https://github.com/LineageOS/android_hardware_qcom_audio/blob/b7ba7613/configs/atoll/atoll.mk

Change-Id: I2eed378247be51feb217c2867ec6904bacfdf492
2022-02-22 16:01:29 +00:00
Alexander Winkowski
1993cf5ed0
sm6250-common: Add missing Bluetooth prop
* Used for FM radio.

Change-Id: I0e74379c80b2a6ea854d5cd0aad3a833f8862de9
2021-12-31 15:41:31 +00:00
Alexander Winkowski
8f5db33fc0
sm6250-common: Switch to prebuilt audio HAL
On OSS audio HAL there are issues like echo in calls
and low volume. Users often complain about that so switch to
prebuilt one temporary (I hope so).

Change-Id: I985a9b2c3bdb39c17bc0f861913536c121e7eeae
2021-12-31 15:36:59 +00:00
Siddharth Kapoor
4edf2bbb68
sm6250-common: Turn on GPU protected contents.
BUG: 130028057
Test: ExoPlayer, Play Movies
Change-Id: I33acf9467227da08c3b98aca3bac69aca8db4b43
2021-12-21 15:46:39 +00:00
Midas Chien
671ae4f210
sm6250-common: don't latch unsignal buffers
Set debug.sf.latch_unsignaled=1 is used to allow surfaceflinger to
latch unsignal buffers that can give more time for buffer to render.
But if the buffer takes longer time to finish, it will block whole
display pipeline result to jank.

Bug: 157964883
Test: scrolling, launch
Change-Id: I56c3e05921de5fc9569bf3f93fde03022a64b6a4
2021-12-21 15:46:39 +00:00
Sultanxda
0e9e5aa9d8
sm6250-common: Disable AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE
We're not using perfd so this is useless.

Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
Change-Id: I3b436f3f747c6955335513a133da81d27a6fbf60
2021-09-09 18:46:27 +02:00
Albert I
d46af7f230
sm6250-common: Enable Codec2 input surface
* may improve performance with Codec2 decoding

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I222b1651daa0cfe51eb2d595897d2289f00dcf8c
2021-09-09 18:46:23 +02:00
Albert I
c45471638a
sm6250-common: Import QTI Codec2 HAL and switch to Codec2 by default
* Provides hardware-accelerated Codec2 decoding for most codecs

Signed-off-by: Albert I <kras@raphielgang.org>
[dereference23: Kang blobs from mojito]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Iefd3185390091a11adbd2497c8281f72c98e100e
2021-09-09 18:46:23 +02:00
Albert I
e313f8855a
sm6250-common: Set up display color compositions
* Switch to "Adaptive" mode and Display P3 color by default

* Use default color mode for Natural and Boosted

* Enable QDCM combined mode and disable factory mode

* Drop LiveDisplay's color mode support as it conflicts with AOSP display
  color adjustment

* Rest of configuration is kanged off Pixel's overlay

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Ib26033fe00a6cc1e8c7d8f93da417516e31a52e3
2021-09-09 18:46:22 +02:00
justinweng
98bc6d7dd7
sm6250-common: audio: Sync audio feature from coral
1. enforce 48KHz sampling rate at COPP for audio recording.
2. resize offload buffer to reduce power consumption.
3. enforce 24 bit width for offload playback and apply app_type 69940

Bug: 147027029
Test: build passed

Change-Id: Ie692746f4588b5706cbab7eddf5b6b7b8766a181
Signed-off-by: justinweng <justinweng@google.com>
2021-09-09 18:46:15 +02:00
Randall Huang
835a05445a
sm6250-common: Enable ZRAM-writeback job
This patch enables zram-writeback job. It will run idle marking
at 60m since the device is boot. After that, it will do first
writeback after 3hour to sweep initiallized cold pages out.
After that, it periodically write out every 24hour.

Bug: 117682284
Bug: 127185055
Test: confirm with manual testing

Signed-off-by: Randall Huang <huangrandall@google.com>
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I6b8f537faf2ffff1a93170aad763f2be4dcaba42
2021-09-09 18:46:09 +02:00
Alexander Winkowski
0d8f538cbf
sm6250-common: Add encryption props
* miatoll devices were launched with API level 29.

Link: https://source.android.com/security/encryption/metadata
Change-Id: I21a4e3760ca7b992f32df48f0ca5595d67f4a15b
2021-09-09 18:46:08 +02:00
David Sehr
179a6eb85e
sm6250-common: Use dex2oat64
Enable dex2oat64 use.

Bug: 153380900
Test: boot and install an application
Change-Id: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
(cherry picked from commit 126f03be80f57a8a0411842011152d9381589b78)
Merged-In: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
2021-09-09 18:45:57 +02:00
Albert I
d3292ab6e6
sm6250-common: Decrease number of total call volume steps to 10
Signed-off-by: Albert I <kras@raphielgang.org>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Icf9f877415cd6242f27b248b6821bd3464790904
2021-09-09 18:45:57 +02:00
Albert I
b35cb65b48
sm6250-common: Remove MIUI packages from auxpackagelist
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Ic1a01044ce0f862e8d6e279b6f1a1f163e438931
2021-09-09 18:45:57 +02:00
Alexander Winkowski
28e76b69d4
sm6250-common: Initial build properties
* From curtana-user 11 RKQ1.200826.002 V12.0.4.0.RJWMIXM release-keys

Change-Id: I6898416bacc3ebde9938f9a9cd455d90e3dcef0a
2021-09-09 18:45:57 +02:00