Commit Graph
17 Commits
Author SHA1 Message Date
pjgowtham 70dee1e33f ferrari: Avoid shipping firmware
Let the devices be repairable for those who prefer it.

Change-Id: Id6b5d4a9bc894edd3ad08411c7c048ba56ee2b3b
2026-11-03 23:13:22 +05:30
pjgowtham 7816dfb0d0 ferrari: displayconfig: Default to max resolution on the first boot
Depends-on:I629d3b843f3f2a55c190c58bff03568db3ba8116
Change-Id: Iddc7a2574f94fafdffc7eba9fa2b1a962f44c6a2
2026-11-03 23:13:22 +05:30
pjgowtham b8a0022db5 ferrari: Initial tree update from RMX3301_15.0.0.1410(EX01)
Change-Id: I14581196331c7ba714c352c3fbca330683eedabf
2026-11-03 23:13:22 +05:30
pjgowtham 9a8be6bd25 Revert "lemonadep: We now run at 1080p by default ^.^"
This reverts commit 67e3055242.

Change-Id: I349159718e74b8231e7ede2cf6d4b4f0bc31cd0f
2026-11-03 23:13:22 +05:30
pjgowtham a60dd7ddd7 ferrari: Update display density for 1440p resolution
(1440/1080) * 450 = 600

Change-Id: I0007a5aac1ac771c03184a15b245a0cc0e3889da
2026-11-03 23:13:22 +05:30
pjgowtham 0aac7bd2ed ferrari: Redo brightness configuration and move partially to displayconfig
* Updated minimum brightness calculation from 4/2047 to 4/4095
to align with display DTSI's max level (qcom,mdss-brightness-min-level = 1,
qcom,mdss-brightness-max-level = 4095).

* Synced screenBrightnessRamp with Oplus SM8650.

* screenBrightnessMap is preferred as it supports only floating-point values.

* Calculated High Brightness Mode (HBM) transition point as 2047/(4095-4).
The transition lux is also obtained from OplusSmartBrightnessController.

* Removed some overlays so as to prefer the defaults.

* Update auto brightness overlays from stock display dumpsys under
OplusSmartBrightnessController.

Change-Id: I0b2513be866728f3ddf93f7fbe296d78d862c813
2026-11-03 23:13:22 +05:30
pjgowtham 7674431cd5 ferrari: Update supported framerates for camera
* Stock oplus camera does not expose 480p videos on any cameras and they are not needed.
* Rear Main camera: 60fps video is supported on oplus camera but unexposed, so lets expose it.
* Front cam: Only HD and FHD qualities are exposed and only upto 30fps in oplus camera. The same modes are exposed properly.
* UW: Supports upto HD FHD 30|60 fps but with shitty quality even in oplus camera. Oplus camera switches to main lens if 4k quality is selected. 60fps remains unexposed, so lets expose it
* Microscope supports HD 30|60 FPS modes. But unsupported FHD quality is exposed too.
2026-11-03 23:13:22 +05:30
pjgowtham 6d41f3e566 ferrari: Utilize oplus fingerprint HIDL with wrapper
Certain devices uses oplus fingerprint AIDL where we don't
have to build the wrapper.

Change-Id: Ie49a36d7199407d424ebaba9863ba1bd04e531a1
2026-11-03 23:12:52 +05:30
pjgowtham 0adb589e67 ferrari: Fix lockscreen text overlapping UDFPS sensor location
Now the text appears at an equal distance from the fod sensor and the bottom end of the screen

Change-Id: I752488fb2ad96c5f5c67a0ad87abc4f8527dcc8a
2026-11-02 17:28:59 +05:30
pjgowtham fc85b34089 ferrari: Update UDFPS sensor location for ferrari
sensorlocationX is calculated as width/2
sensorlocationY is calculated as (height - persist.vendor.fingerprint.optical.iconlocation) ie (3216 - 753 = 2463)
sensorRadius is calculated as persist.vendor.fingerprint.optical.iconsize/2 ie (228/2 = 114)
config_udfpsEnrollProgressBar is calculated as sensorRadius+5

Change-Id: If6556437abc7c760a45bd3f73f34e38f5d9bb3f2
2026-11-02 17:28:59 +05:30
pjgowtham 7afa1a8d47 ferrari: Remove unsupported powershare and tristatekey features
Change-Id: I29adc129eae09f5378537c0d0356b85da4774095
2026-11-02 17:28:59 +05:30
pjgowtham 9b8a4595bd ferrari: Commonize Lineage Health control charging path
There aren't two power drivers in kernel anymore starting SM8450.

Change-Id: I5e802bc87a1b2966f8e13190e2df44ac1df63597
2026-11-02 17:28:59 +05:30
pjgowtham c45805ab8c ferrari: Intial rebrand for realme GT 2 pro
Change-Id: I326aabe3c36b87106e567a028a59f37cf7c54603
2026-11-02 17:11:02 +05:30
pjgowtham 39ecce15d6 lemonadep: displayconfig: Correct inverted width and height
The initial densityMapping configuration had references from AOSP
DisplayDeviceConfig.java template which actually has this inverted.
Let's correct it to account for the native portrait orientation in phones.

Change-Id: I07c9567c1d0c72b7ed77c1fe8fdf399bae30dd85
2025-10-02 22:08:52 +01:00
pjgowtham d0ec07ca13 lemonadep: Remove prebuilt audio HAL
Change-Id: I6e2c879d97c9dce7a5731b7b3a4a377583cb91a8
2025-02-07 04:44:31 +02:00
pjgowtham 72e1a19ec1 lemonadep: displayconfig: Setup density mapping
Change-Id: I1a0cab5d554b072d889133128b49f8ccf4d4fb21
2024-11-12 19:34:50 +00:00
pjgowtham 3ebd863242 lemonadep: Move some parts from common
Following adding support for lunaa and martini

Change-Id: Idaab654774f31bf8bfc44d87f3779ea6cc8db94b
2023-04-10 13:19:00 +03:00