Commit Graph

96 Commits

Author SHA1 Message Date
Praveen Chavan
7f0bb2ee92 sm6150-common: properties: Add a property to enable prefetching video
persist.mm.enable.prefetch, if set to true, will enable
prefetching of video input from upstream source to help
improve playback performance for high frame-rate and
high bitrate content

Signed-off-by: Praveen Chavan <Praveen Chavan@users.noreply.github.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
PainKiller3
9a48c665f4 sm6150-common: properties: Disable vsync for CPU rendered Apps
* Choreographer VSync has some performance impact for CPU rendered apps
as the app has to wait for VSync to start a new frame draw. When the
frame draw time exceeds one VSync, this has a direct impact on the FPS.
debug.cpurend.vsync property controls the VSync for CPU rendered apps.

Disable VSync for CPU rendered app, by setting this property to false.

Change-Id: If8c6f9e182eac6d015dbb69fe2a74fc9b3a85c1f
Signed-off-by: PainKiller3 <ninadpatil100@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Pig
9d4975a21a sm6150-common: Move DPM feature property to /system_ext
* DPM blobs are under /system_ext.

Change-Id: I4664b7f3246f1184a61b180d226ed42d524d227a
Signed-off-by: Pig <pig.priv@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Vivekachooz
e0c219a422 sm6150-common: properties: Enable perf hint large composition cycle
Change-Id: I258fbed42de936bb059ed45839a5bb39aa4794fe
Signed-off-by: Vivekachooz <vivekachooz@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Pranav Kapoor
d47a0ff840 sm6150-common: properties: Disable debug.sf.enable_hwc_vds
* Fixes lags in native screen recorder
* Also set debug.sdm.support_writeback=0
* THIS MIGHT BREAK WIFI DISPLAY
* CHECK WHEN WFD BOOT JARS CAN BE BUILT

Change-Id: I82c5b8b4-b0b0-4ff9-8869-8cb4f11e9012
Signed-off-by: Pranav Kapoor <pranavkapoor001@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Alexander Koskovich
561ef31407 sm6150-common: Opt out of VIDEO_ENCODE flag for DeviceAsWebcam
DeviceAsWebcam is using USAGE_VIDEO_ENCODE [1] for buffers and
this results in combined usage: (VIDEO_ENCODER | CAMERA_OUTPUT).

On Qcom devices DeviceAsWebcam has red & blue colors swapped.

Originally we tried swapping HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS
with HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS in libgrallocutils,
however that inverted regular camera recording colors in some cases.

[1] d079a82ba4

Change-Id: I6c5f03fe7016f687855351c7ba15270050ea02e2
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Yumi Yukimura
f85f0d8b63 sm6150-common: Setup DeviceAsWebcam
Change-Id: Icf8e10cd21c4eef9a66af624971ffe9c4d39d992
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
rounak1619
04bc6b3b36 sm6150-common: properties: Fix lag while app opening and Qs lags
Change-Id: Ib90ffd7748ae7fe9d84e143c4e28a25b5d170042
Signed-off-by: rounak1619 <rounakmehata9@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
minaripenguin
be212a0677 sm6150-common: properties: Enable APK fs-verity
* for some reason, some apps automatically detects that we're rooted due to verityUtils failing to measure the apps apk fs-verity.

Change-Id: Ib716d6e375c9d1063a958523ad2de028115bcb3c
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
donjohanliebert
317beb822d Revert "sm6150-common: Redefine bluetooth a2dp offload capabilities"
This reverts commit 535ef6ad80.
* we do need this

Change-Id: If8c7f1024b41e324c084a523abb99c8bfaad09ac
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
AngeloGioacchino Del Regno
1af4936aea sm6150-common: properties: Enable Video Distribution Profile (VDP) on IMS
Enable support for the Video Distribution Profile (VDP) on the
IP Multimedia Subsystem (IMS) to enable operator video-calling
functionality on 4G IMS if the carrier supports it.

Change-Id: Iba23e5fb308a7b7868e910bc17634800c10e0a13
Signed-off-by: AngeloGioacchino Del Regno <kholk11@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
New Author Name
aaa58f6fd2 sm6150-common: properties: Drop ro.surface_flinger.force_hwc_copy_for_virtual_displays=true
fixes lag in pip mode

Change-Id: I32775273b7c45a7ba3163cdbdeb2587416adb9a5
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Paul Keith
29de9e0437 sm6150-common: properties: Enable QCRIL radio power saving
Change-Id: I339d0fbec60b554c6b7930162f5a917e052fc5a1
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Guidix
9509686eb8 sm6150-common: properties: Enable support for kernel idle timer
- Kernel idle time enabled, as it supports better power management

Change-Id: I2736b5ebf0c97498a1a2854f747547d84757cd9e
Signed-off-by: Guidix <guidixm@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
justinweng
403af6b5ba sm6150-common: properties: Extend audio offload buffer size to 256kb
Extend buffer size for offload playback to reduce the frequency of CPU
wake up.
It makes ADSP to process more data one time and reduce the number of
times to wake up CPU.

Bug: 137973303
Test: MP3 playback
Change-Id: If8eb1d3041161979063bf852e2b0b397e87e7c05

Change-Id: Idff8ed8f4d0e7032054eebea45a62f8a7c5db50c
Signed-off-by: justinweng <justinweng@google.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Adithya R
5c358b97e8 sm6150-common: properties: Defer refresh rate changes when screen is off
Some devices with video mode panels experience refresh rate mismatches when the screen is turned off. Specifically:
- The scheduler sets the refresh rate to 120 Hz after the screen turns off at 60 Hz (VRR idle).
- However, the HWC ignores this change, resulting in SurfaceFlinger (SF) incorrectly assuming the device is at 120 Hz when the display is turned back on.
- This causes a mismatch, as HWC continues rendering at 60 Hz, leading to inconsistencies.

To enable this behavior, set the following property:
- `debug.sf.defer_refresh_rate_when_off=1`

Change-Id: I46fd9e6b983138c1f625d52a65451eb04ce42820
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
officialputuid
5897ea66d0 sm6150-common: properties: Remove Force triple frame buffers
* Causing some apps laggy & UI performance regression

Change-Id: I452b2d5f5293682a6065506359e359231fabeefd
Co-Authored-By: Reinazhard <reinazhard@gmail.com>
Co-Authored-By: Ratoriku <a1063021545@gmail.com>
Signed-off-by: officialputuid <officialputuid@hack.id>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
ghostrider-reborn
9940e3df87 sm6150-common: properties: Enable frame pacing for smoother visual performance
- Enabled `vendor.perf.framepacing.enable` to improve visual smoothness by regulating frame timing. This enhancement ensures consistent frame delivery, reducing stuttering and enhancing overall visual quality, particularly in graphics-intensive applications such as games.

Change-Id: I1a493fe97aa7dbcd757ca2336b683d3b8817cd2f
Signed-off-by: ghostrider-reborn <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
GeoPD
16c211fb88 sm6150-common: properties: Disable camera perflock
* Seems to improve the HDR processing in Gcam a bit fast
and we don't have any boostframework binaries either

Change-Id: If0b974fd10ce8d09bc8eb91669fa1ab06ac2e546
Signed-off-by: GeoPD <geoemmanuelpd2001@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Richard Raya
6f274fc2f3 sm6150-common: properties: Import suspend properties from gs201
053f552fae/device.mk (1114)

Change-Id: I3ad335c987abfd3e081342a0117567dcaef1c21f
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Pranav Vashi
3a08fdd70f sm6150-common: Move wide display prop to system.prop
* Vendor partition is RO and prop cannot be changed there to
  disable wide color gamut.

Change-Id: Ie5d90bc608f428c2be11d5159aaec98a6cdfbd03
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Adithya R
28bcb03e77 sm6150-common: Disable backpressure propagation in SF
* based on 7e86e7588a
 * depends on 3bc0f96f58

Change-Id: I4816ba34e0ddf96c9d6f1c049bf584a4190c9a8e
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Pranav Vashi
642251df47 sm6150-common: Set display props from stock
Change-Id: I0e2eb326c3e89f127c71e702645b26e1a009d74a
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:57:52 +00:00
Pranav Vashi
3a8cd2847f sm6150-common: Add back camera aux and privapp props
* Some blobs check these props directly.

Change-Id: I38d7f52d8ecbdfa4e17eb6f2fe250eebcbc8ed01
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:56:34 +00:00
helliscloser
8e67006761 sm6150-common: Explicitly disable "Enable GL comp backpressure"
When blur is enabled,
There is severe lag in; Launcher3 while scrolling apps in App drawer, Scrolling through recents and occasionally on QS pull down.

Enabling or completely removing the prop here d6233e0e7c doesn't seem to make an effect.
Explicitly disabling the "Enable GL comp backpressure" prop seems to slove the issue.

Lag & janks are gone now, even with blur.

Signed-off-by: helliscloser <mrumais@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:55:55 +00:00
Alex Buynytskyy
157575378b sm6150-common: Enable Incremental on new devices.
Bug: 185298880
Fixes: 185298880
Test: atest IncrementalFeatureTest
Change-Id: I06dcb75307d71e693ad58150889b208c063c664a
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:52:55 +00:00
Midas Chien
5af1c15be4 sm6150-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
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:51:37 +00:00
Yumi Yukimura
6d996151e4 sm6150-common: Migrate to QTI USB Gadget AIDL HAL
Change-Id: I6adbca2fab9a3fe0477d17f9786166828b786710
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Yumi Yukimura
cdd98bc410 sm6150-common: Switch to common QTI USB init scripts
Change-Id: I42864edf1cf554815fa24b12892afd21835d13c7
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Pawin Vongmasa
72ee26c740 sm6150-common: Move input surface to CCodec
Test: atest CtsMediaTestCases -- \
--module-arg CtsMediaTestCases:size:small
Bug: 131800183
Change-Id: I8783a7de4a4fdf7ff2eac6697c71f6592c9a9e06
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
dianlujitao
a8daecaf39 Revert "sm6150-common: Disable continuous transaction tracing on all build types"
Applied in vendor/lineage.

This reverts commit 87320fdb23.

Change-Id: I14393dfc0f083eab1a5e8ebb576e2a05ad50a8e1
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Bruno Martins
41ebde2e72 sm6150-common: Remove software OMX blobs
Default to C2 codecs from swcodec apex.

Change-Id: I32f0b0abe680c1f350268115a3cc5488a2a57ec3
2024-09-16 14:16:53 -04:00
Michael Bestas
489a1fcdad sm6150-common: Use AOSP default Codec2/OMX ranks
debug.stagefright.ccodec=4
is the default value in frameworks.

debug.stagefright.omx_default_rank=0
was used to rank OMX SW codecs lower than OMX HW codecs
but we have removed all OMX SW codecs now.

Change-Id: Idf55ec02c2c0f4d2fa73f949cffef0d820a54570
2024-09-16 14:16:53 -04:00
Andrzej Perczak
2c91f586b8 sm6150-common: Disable redir_party_num
Caused incoming caller number not being parsed correctly by Phone app on
VoLTE and VoWiFi. No idea why Xiaomi enabled this ancient prop.

Signed-off-by: Andrzej Perczak <linux@andrzejperczak.com>
Change-Id: I4d3d19b80bedd7410e638c78909a8a910bc10be8
2024-07-10 13:33:18 +05:30
Adithya R
98d7265fbe sm6150-common: Switch to full IWLAN mode
[basamaryan: This is needed to fix RIL on Android U]

Signed-off-by: basamaryan <basam.aryan@gmail.com>
Change-Id: Ie3fa610f71077b4ee2af1b4d57bd0c30b34f30fa
2024-04-10 13:26:45 -04:00
Edwin Moquete
2d10bb309b sm6150-common: Disable frame rate override feature
This is enabled by default on U, and it causes apps like
Chrome and YouTube to render the frame rate at 30FPS when
playing some videos.

Change-Id: I649bf03d550c2b9726c7957d15ed09e455d874ec
Signed-off-by: basamaryan <basam.aryan@gmail.com>
2024-04-10 13:26:44 -04:00
Alex Sarraf
d1e8fa2367 sm6150-common: display: Set debug.sf.auto_latch_unsignaled to 0
Need to explicitly set auto_latch_unsignaled property to
disabled state to keep latch-unsignaled as the default
behavior.

Change-Id: I3856caaf0a68e7e720819f25338d1eb9196f56b0
2024-04-10 13:26:44 -04:00
basamaryan
b6ac30a37a Revert "sm6150-common: Don't latch unsignal buffers"
This reverts commit be8d0f020d.

Change-Id: I5c27894395e5b8bf29f633ef307f7bf8b91235e8
2024-04-10 13:26:44 -04:00
Alec Mouri
1b03139bb9 sm6150-common: Force some devices to treat 170M as sRGB in SF
Bug: 229442032
Test: builds, boots
Change-Id: If144724a342be4a74f823aa25ff8a74fe3d2843a
2023-11-14 13:10:37 -05:00
David Sehr
13e98270e2 sm6150-common: Enable usage of dex2oat64
Use 64-bit dex2oat for better dexopt time.

Bug: 153380900
Test: boot and install an application
Change-Id: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
(cherry picked from commit 126f03be80f57a8a0411842011152d9381589b78)
Merged-In: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
2023-11-14 13:10:37 -05:00
Arian
1fc4297c00 sm6150-common: Use FBE v2
AOSP defaults to v1 on devices shipped with Q or earlier,
explicitly enable v2 for these devices to use 16-byte padding

e575f4ed96/libfscrypt/fscrypt.cpp (L205)

Change-Id: I20e5f31007a2c01bc993c09e644205bf23ebd8ae
2023-08-20 18:47:33 +02:00
Jaegeuk Kim
a07e5e276e sm6150-common: Support adoptable storage encryption
Change-Id: I8225ef0499192503deafa440644d7ee3c177079f
2023-08-20 18:47:33 +02:00
Arian
7524cc06e5 sm6150-common: Use the new volume metadata encryption method
Change-Id: Iec8f0e612a00a792ad6e8d07c37a8d7a0e7f7158
2023-08-20 18:47:33 +02:00
Arian
a7aad8d60e sm6150-common: Move more RIL properties to vendor
Change-Id: Iee7e36b2b4b441a0e038313ceba9314df13e74ca
2023-06-05 11:38:04 +02:00
Jayachandran C
8542099fdf sm6150-common: Move default network property to vendor partition
This fixes GSI image overriding the default value

Bug: 153852350
Test: Manually verified after flashing the GSI image
Change-Id: I78b415862c420c23121ec03d6953814cd628ea9a
2023-06-05 11:38:04 +02:00
Weikai Kong
af694709f1 sm6150-common: Add back ro.vendor.extension_library definition
* We aren't using QCOM's perfd but our blobs still check for this.
 * To avoid unnecessary errors, let's just add it back.

Change-Id: Icc44b330f21a658cfa8ded691a6628d8f62c3649
2023-06-05 11:38:04 +02:00
SamarV-121
87320fdb23 sm6150-common: Disable continuous transaction tracing on all build types
Change-Id: I95657a00e38f1229675682e784b20cca12c119b0
2023-06-04 10:55:57 +02:00
Ady Abraham
0bd5d02b54 sm6150-common: Enable GL comp backpressure
Enable backpressure for client composition to avoid jank due to
HWC queue stuffing.

Test: 1. Open Camera
      2. Swipe horizontally to go back to previous app.

Bug: 138083790
Change-Id: I3d26aa470c1660b23bd97133f39858f92638aca8
2023-06-04 10:55:57 +02:00
SamarV-121
0b9591f89f sm6150-common: Remove obsolete debug.sf.disable_backpressure
* It has been removed in Android S
 * 2ec5391acf

Change-Id: I23a210a37ad257f0c8b7a3c5e1d59b2ac20cde9a
2023-06-04 10:55:57 +02:00
Alex Sarraf
e6630baeb0 sm6150-common: Disable SF client composition cache
Disable SF client composition cache. Helps with framework
client target fence management.

Change-Id: I73e03e76f51d00fafad38479be00f4005be50665
2023-06-04 10:55:57 +02:00