36 Commits

Author SHA1 Message Date
Alexander Winkowski
73939104ac
Revert "Revert "miatoll: Switch to prebuilt audio HAL""
This reverts commit a0f493f1e04a42274a3b6478d5502d250627729b.
2023-08-17 05:04:54 +00:00
Alexander Winkowski
8d4bf61e31
Revert "miatoll: Switch to prebuilt audio HAL"
This reverts commits 1edd945981e69ccdb2e2a41166dc51027dba7a43 and 9616ba9373631161dcb6b9240c0dcc6e27e216be.

sound_trigger doesn't work correctly with prebuilt audio HAL for
some reason.

Change-Id: Ia3a0c0881946bf8e2ab16668899d8cccf7accd0c
2023-01-07 07:08:45 +00:00
Alexander Winkowski
1edd945981
miatoll: Switch to prebuilt audio HAL
Change-Id: I985a9b2c3bdb39c17bc0f861913536c121e7eeae
2022-11-20 07:35:14 +00:00
LuK1337
82d6f333e9
miatoll: Pull appropriate USB props from vendor_product.mk
Change-Id: I93b25c5d0989c83d1c8d7b7946a083771febdddd
2022-11-17 19:15:29 +00:00
Alexander Koskovich
bbfe405cdc
miatoll: Move Bluetooth power overlays to sysprops
* These were moved to sysprops in Android 13 [1] and while
   frameworks reads the values directly from power_profile.xml
   Bluetooth app reads from the properties.

 [1] 976d33062b%5E%21/#F0

Change-Id: I5bff67a15c537e8a47a19f30776fca6bf2c9fbe5
2022-11-17 19:15:26 +00:00
Alice Kuo
49d5d96c9a
miatoll: Disable LE audio related profiles
Bug: 231671426
Test: build
Change-Id: I57eaa7abe70e4c7739c707b09dc95530e10b5586
2022-11-17 19:15:26 +00:00
Sal Savage
a89bedb4c0
miatoll: Set default the Bluetooth class of device
The class of device is a string with a list of uint8t values:
90,2,12

The meaning is as follows:
{Service Field, Major class, Minor class}

Service Field: 0x5A -> 90
    Bit 17: Networking
    Bit 19: Capturing
    Bit 20: Object Transfer
    Bit 22: Telephony
MAJOR_CLASS: 0x02 -> 2 (Phone)
MINOR_CLASS: 0x0C -> 12 (Smart Phone)

Bug: 217452259
Test: make -j; -- check that bluetooth.device.class_of_device is
correct

Merged-In: I75a6fb83a6149f58372b7aa46ccc190fd4451ab0
Change-Id: I75a6fb83a6149f58372b7aa46ccc190fd4451ab0
2022-11-17 19:15:26 +00:00
Sal Savage
e060370414
miatoll: Update LE Audio profile properties
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Merged-In: I0d23d92ae4d75d6658c2ab2ca25122dd5ac68300
Change-Id: I0d23d92ae4d75d6658c2ab2ca25122dd5ac68300
2022-11-17 19:15:25 +00:00
Sal Savage
e7f76528e9
miatoll: Enable Bluetooth profiles with properties
Bug: 217448211
Test: make -j
Merged-In: I0a76275baf2c80894b6be71d79b3265021ac921b
Change-Id: I0a76275baf2c80894b6be71d79b3265021ac921b
2022-11-17 19:15:25 +00:00
Alexander Winkowski
9fa7f92b82
sm6250-common: Disable UBWC for WFD
As it turns out, atoll does not support UBWC:
[drm:sde_encoder_virt_atomic_check:1028] [sde error]enc43 mode unsupported, phys idx 0
[drm:sde_encoder_phys_wb_atomic_check:769] [sde error]invalid output format 3231564e

Change-Id: If445caf152428abb3dce74091dac9b4c9d2e26d5
2022-09-04 09:19:28 +00:00
Arvind Kumar
85b0f02c03
sm6250-common: Set manufacturer and soc properties
Set soc model and manufacturer properties

Change-Id: I9ecc1cb75a415f5df147d47234fd9d8b69e1e6b5
2022-08-26 18:27:15 +00:00
Alexander Winkowski
afc253433c
sm6250-common: Move Netflix prop to vendor
Change-Id: I83d13ded0b844aa308b49f6573571d595b5e827b
2022-08-17 19:40:15 +00:00
Alexander Winkowski
75f2d25a63
sm6250-common: Sync props with V13.0.2.0.SJWMIXM
Change-Id: I51895967401ec26aaa748cabf82c7f6d0cb5ecba
2022-08-17 19:40:00 +00:00
Alexander Winkowski
fcb17314b6
sm6250-common: Clean up properties
Those don't exist in blobs:
vendor.audio.capture.enforce_legacy_copp_sr=true
persist.vendor.qcomsysd.enabled=1

Default values:
vendor.display.comp_mask=0
vendor.display.disable_scaler=0
vendor.gralloc.disable_ubwc=0

Change-Id: I8092b378b0c82aeea4ad4bb5574587731884ceeb
2022-08-17 08:14:25 +00:00
Alexander Koskovich
495d12546e
sm6250-common: Remove radio properties where the value is the default
Change-Id: I46a4fd1bc358fa7503a470054e8c6cd14ccfd1c0
2022-08-17 08:13:54 +00:00
Alexander Koskovich
0f51c5c224
sm6250-common: Remove ro.com.android.dataroaming override
* build/make/target/product/full_base_telephony.mk
   24:    ro.com.android.dataroaming?=true

 * system_ext/etc/build.prop:ro.com.android.dataroaming=false
   vendor/build.prop:ro.com.android.dataroaming=true

   In QSSI builds the partition priority is: odm, vendor,
   product, system_ext, system.

Change-Id: Ia90d73ce62a156e4b88731cffd4d5f7a6dd795e6
2022-08-17 08:13:53 +00:00
Alexander Koskovich
27e5228084
sm6250-common: Drop implied Bluetooth properties
Change-Id: Ibf99eb0a1cfec92b849403db710df3239e1de203
2022-08-17 08:13:53 +00:00
Alexander Winkowski
73be6dca46
sm6250-common: Remove zram writeback leftovers
It has been disabled in kernel because of memory corruption.

Change-Id: I50e4cdc39b38a510d39032253606ddec3e41d22c
2022-05-26 13:14:35 +00:00
Alexander Winkowski
d21e3ace1d
Revert "sm6250-common: Import QTI Codec2 HAL and switch to Codec2 by default"
This reverts commit c45471638ae1101cff57e7d8ad7070783771c87f.

* Breaks media playback when uptime is considerably high.

Change-Id: I81b137d832daa034036240adc9a30531eb703893
2022-05-11 18:09:53 +00:00
Alexander Winkowski
86e456daa2
sm6250-common: Re-enable fluence
Fluence was disabled in commit 7f4d5137 ("sm6250-common: Align audio properties with CAF") as
it affects audio quality. But without it speaker paths have microphone broken so re-enable it
until this will be figured out.

Change-Id: Ie5092eacff794359db94a9f8655df7c7901ac365
2022-04-07 19:49:16 +01:00
Alexander Winkowski
befaea8f80
sm6250-common: Remove non-existent properties
grep hasn't found them neither in source code nor in blobs.

Change-Id: I4a4d2fc88815fc5f3b61ee3972534ed30f7ed131
2022-03-08 08:37:46 +00:00
Siddharth Kapoor
654f633113
sm6250-common: Turn on GPU protected contents.
BUG: 130028057
Test: ExoPlayer, Play Movies
Change-Id: I33acf9467227da08c3b98aca3bac69aca8db4b43
2022-03-08 08:18:54 +00:00
Midas Chien
c1e5bace18
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
2022-03-08 08:18:39 +00:00
Alexander Winkowski
7f4d513779
sm6250-common: Align audio properties with CAF
* From https://github.com/LineageOS/android_hardware_qcom_audio/blob/b7ba7613/configs/atoll/atoll.mk

* Keep changes introduced in previous commits

Change-Id: I2eed378247be51feb217c2867ec6904bacfdf492
2022-03-08 08:15:21 +00:00
Alexander Winkowski
f3c0adaf0c
sm6250-common: Add missing Bluetooth prop
* Used for FM radio.

Change-Id: I0e74379c80b2a6ea854d5cd0aad3a833f8862de9
2021-12-30 17:25:06 +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