Commit Graph

155 Commits

Author SHA1 Message Date
Midas Chien
a0e90ad8ce
techpack: drm/msm/sde: add sysfs node for trigger wake up early
Add sysfs node on crtc to trigger sde wake up early.
The command to trigger wake up early give in shell:

echo 1 > /sys/class/drm/sde-crtc-*/early_wakeup

Bug: 150196517
Test: trigger wake up and switch display power state
Test: testInflatingEmojiListViewFling
Test: testBrowseContentScroll
Change-Id: I96e6ad73e83e8a9e3e5e65e064c92f8e6a6d63f8
Signed-off-by: Midas Chien <midaschieh@google.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
Signed-off-by: Karan Parashar <karan@pixelos.net>
2024-10-12 19:11:22 +05:30
Adithya R
29df08815f
techpack/display: msm: Set idle state correctly
Set the idle state based on sde encoder's rc state.

Test:
watch -n 0.1 cat /sys/class/drm/card0/device/idle_state
- shows "active" when display is being updated
- "idle" otherwise

Change-Id: I3b7b8f9e8ab2b7dc008060493d7fb1d7323afd4c
Signed-off-by: Karan Parashar <karan@pixelos.net>
2024-10-12 19:11:22 +05:30
Adrian Salido
74a2c92068
techpack/display: msm: Add idle state sysfs node
Add a sysfs mechanism to track the idle state of display subsystem.
This allows user space to poll on the idle state node to detect when
display goes idle for longer than the time set.

Bug: 139655049
Bug: 126304228

DennySPb: adapt to sm8350
   * Change drm_encoder mask to 2

Change-Id: I21e3c7b0830a9695db9f65526c111ce5153d1764
Signed-off-by: Adrian Salido <salidoa@google.com>
Signed-off-by: Robb Glasser <rglasser@google.com>
(cherry picked from commit 11a2193b434cb3130743fbff89a161062883132e)
Signed-off-by: Ken Huang <kenbshuang@google.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-10-12 19:11:21 +05:30
FlowerSea0208
a8b1270931 techpack: camera: ois: Update from star-r-oss
Change-Id: I9dc3eca68ab3ba31d2ab84c7a22cd7c957edebba
2024-09-02 04:15:21 +08:00
Giovanni Ricca
950f07cb5c
audio: include: uapi: uint32_t -> __u32
Change-Id: I4410bcc5f302c663dc581fc0a91ecbcae2dd6793
2024-05-20 17:58:10 +02:00
Kristof Petho
ae195a0f2f
treewide: Fix compilation after disabling -fno-builtin
Change-Id: I634d8f8351d2bf10236ac57187dd99b9b8e10842
2024-05-20 17:40:20 +02:00
Cosmin Tanislav
26a9de9302
audio: asoc: remove build timestamp
Change-Id: I04575455ace857e8c19a6170a02fa0e3c7332f98
2024-05-20 17:40:19 +02:00
Giovanni Ricca
1e5c736793
audio: asoc: Disable UART debugging
Change-Id: I187b6b8125d5705cd16bb27ded01049cb42b4d6a
2024-05-20 17:40:18 +02:00
Adithya R
310a85e6dd
audio: dsp: Define CONFIG_QGKI_SYSTEM if mius is enabled
* required for mius proximity to work

Change-Id: I911cbf16565fdab178fe3752bcbda49a451ef23e
2024-05-20 17:40:17 +02:00
dianlujitao
ca774622c4
asoc: lahaina: Report correct key code of headset buttons
Change-Id: I8ecc1609d929ac5a8d4d73711b15b4a741d910a3
2024-05-20 17:40:16 +02:00
Arian
a8d11c7f09
audio: asoc: Update dai link ID for renoir
Commit 4da866e6de "asoc: Update the dai link IDs for MI2S dai links"
has introduced seperate dai link IDs for Rx and Tx dais. Apply
the change to the tfa codec used by renoir too.

Change-Id: I23fb0a95e315a9c1aa1adbe7fc57eb6cc5b94de9
2024-05-20 17:40:15 +02:00
Giovanni Ricca
ae47857469
audio: asoc: wcd938x: Fixup mmhardware_sysfs include path
* It's a global header, not a local one

Change-Id: I6c91c29f767d2bc8db4158b204246ee455cb0b9d
2024-05-20 17:40:14 +02:00
FlowerSea0208
d8d7dfe1a9
audio: Add mars guards as well
Change-Id: I28daeb75c1bb5c14c78b8651d0516e0e9f7b57fc
2024-05-20 17:40:13 +02:00
Giovanni Ricca
b4459c83cc
audio: Update from redwood-s-oss
Change-Id: Iff2fb143a43da2f2905bf77df30c8b6e4468a3f0
2024-05-20 17:40:12 +02:00
Arian
e24af2db5b
audio: Update from zijin-s-oss
Change-Id: If45a74613bcf2a486f52bd86551cb08c9b4ff593
2024-05-20 17:40:11 +02:00
Arian
ad0e87e362
audio: Import xiaomi changes
Change-Id: I6d4e56bb6679467640f9438cd9f633e796ab0c6a
2024-05-20 17:40:10 +02:00
Giovanni Ricca
5aa7a2d36b
audio: asoc: Import iio us proximity
From branch: redwood-s-oss

Change-Id: Ibf31e4c1f0f7be92891588559c9bf55a98ec3fb0
2024-05-20 17:40:09 +02:00
Giovanni Ricca
d4d96e69b9
audio: dsp: Import mius
From branch: redwood-s-oss

Change-Id: I932db0c5c95e5ce1287ae388a87cd61b5654252c
2024-05-20 17:40:08 +02:00
Giovanni Ricca
17ca3415dc
audio: dsp: Import elliptic
From branch: redwood-s-oss

Change-Id: I797a2a9e9bbde8f9bf750b7429977747c31bd8a6
2024-05-20 17:40:07 +02:00
Giovanni Ricca
257a07db14
audio: asoc: tfa98xx: Fix misleading indentation
Change-Id: I51bd30ab075dbb54c3119f798d9e3fb8daad3be2
2024-05-20 17:40:06 +02:00
Giovanni Ricca
3318f63b7a
audio: asoc: Import tfa98xx codec
From branch: redwood-s-oss

Change-Id: I72d6f9c1d583b413d1209fc9a5bf61eb58b1c06b
2024-05-20 17:40:05 +02:00
Giovanni Ricca
1bbd9489fd
audio: asoc: Import tfa9874 codec
From branch: redwood-s-oss

Change-Id: I4c6692c503bc25f331eb635989a8881c44769007
2024-05-20 17:40:04 +02:00
Giovanni Ricca
500d3aaa20
audio: asoc: Import cs35l45 codec
From branch: redwood-s-oss

Change-Id: I60fe2293d8f6d8b4c78b6d5e2198f08d8d5fd9b8
2024-05-20 17:40:02 +02:00
Giovanni Ricca
15ffae710c
audio: asoc: Import cs35l41 codec
From branch: redwood-s-oss

Change-Id: Icc397bde36656de3c34036505f748b61dd45730b
2024-05-20 17:40:01 +02:00
Giovanni Ricca
785815825d
audio: asoc: Import aw88263s_m20 codec
From branch: redwood-s-oss

Change-Id: I79e6dc9f21d2a91c18540a83d8978aee4643eafb
2024-05-20 17:40:00 +02:00
Giovanni Ricca
e6693ad556
audio: asoc: Import aw88263s codec
From branch: redwood-s-oss

Change-Id: Ibd94e7b0a0721196d1181ee1498e1634fb67543f
2024-05-20 17:39:59 +02:00
Giovanni Ricca
8bc9cadb6a
Revert "asoc: lahaina: add 16 channel support on tdm interface"
This reverts commit 782c8273ed.

Change-Id: I5cd459439e51d6d3b8f3418b2a82966969817e8f
2024-05-20 17:39:58 +02:00
Giovanni Ricca
1ab94448bd
techpack: camera: Add wait for macro camera on K9E and M20
Change-Id: I4467cd6bf02fddfae79c37f576c5c74c167c0a3b
2024-05-20 17:39:57 +02:00
Arian
54789f8c2a
techpack: camera: Haydn is special
Change-Id: I8f75769da498aebdcd79c44ba521a3ce5927a993
2024-05-20 17:39:56 +02:00
Erfan Abdi
f1c63607d6
techpack: camera: Add wait for AF regulator hw disabling on K11
Change-Id: Ia1d68f57f040ac7f7c2e5fb82aa6794431de7802
2024-05-20 17:39:55 +02:00
Erfan Abdi
32f26284e2
techpack: camera: Add vana1 to vreg names enum
Change-Id: I2295bf92bf624474d0b07559bfbcf224e59dbbde
2024-05-20 17:39:54 +02:00
Giovanni Ricca
cecf4456e7
techpack: camera: cam_isp: Enlarge max_vfe_out_res expected size
Since 45dbb6c0cd, the camera kernel stack checks `num_ports` size from userspace.
For some reasons, the reported size is higher than what it expected [1]
This breaks some camera functionality (such as 60fps video recording) on yupik Xiaomi devices
To workaround this, let's enlarge the expected vfe size to match these cases

[1] 10-01 22:49:53.142 7430 7430 I CAM_ERR : CAM-ISP: cam_isp_update_dual_config: 129 num_ports 25 more than max_vfe_out_res 23

Change-Id: Id4ea44a07f5c50ea5a716e5910a7574d426a3515
Suggested-by: Alexander Winkowski <dereference23@outlook.com>
Signed-off-by: Giovanni Ricca <giovanniricca@proton.me>
2024-05-20 17:39:54 +02:00
Giovanni Ricca
7a8162f3b8
techpack: camera: Enlarge cfg timeout
Change-Id: Ic79f0c4459cc763620601cd251c41439ddb44f28
2024-05-20 17:39:53 +02:00
Giovanni Ricca
d9a1565419
techpack: camera: Increase watchdog timeout
Change-Id: Iaba59cf443095191939fe2cc6b20364796e9929f
2024-05-20 17:39:52 +02:00
Giovanni Ricca
7444966af8
techpack: camera: Increase mac ctx value
Change-Id: I69e7f85adaec9978d914dbf16dc0cff53e3e8960
2024-05-20 17:39:51 +02:00
Giovanni Ricca
38f7d7576b
techpack: camera: Increase flush requests
Change-Id: Ib8191afd0c9a984fb883b34cf0f26c3ee7d23580
2024-05-20 17:39:50 +02:00
Cosmin Tanislav
1faf254e9d
techpack: camera: ois: import xiaomi changes 2024-05-20 17:39:49 +02:00
Cosmin Tanislav
31bd471411
techpack: camera: core: add support for powering up external isp 2024-05-20 17:39:48 +02:00
Arian
153e92063a
techpack: camera: csiphy: Guard overriding csiphy register values
Xiaomi guarded that in a few branches, unfortunately not consistently.
This is a combination of the following branches:
venus-r-oss, mona-r-oss, haydn-r-oss, star-r-oss, odin-r-oss, lisa-r-oss, vili-r-oss

K2 uses this in venus-r-oss
K8 uses this in odin-r-oss
K11 uses this in haydn-r-oss and star-r-oss
J18 uses this in star-r-oss
K3S uses this in vili-r-oss

Change-Id: If940a64897dbc70134c14c4be1b64b390f2d8879
2024-05-20 17:39:47 +02:00
Cosmin Tanislav
b08f895848
techpack: camera: csiphy: override csiphy register values for higher than 3.5GHz 2024-05-20 17:39:46 +02:00
Cosmin Tanislav
06612551d0
techpack: camera: sensor: implement optimization disabling 2024-05-20 17:39:45 +02:00
Cosmin Tanislav
84ef47733c
techpack: camera: req_mgr: do not send timestamp for offline context 2024-05-20 17:39:44 +02:00
Arian
ffcb8b4841
techpack: camera: Increase req mgr events further
Match star-r-oss and odin-r-oss

Change-Id: I3e4f14243861dd129cc0caf3fc416b243cbda6d6
2024-05-20 17:39:43 +02:00
Cosmin Tanislav
d62777e783
techpack: camera: increase req mgr events 2024-05-20 17:39:42 +02:00
Cosmin Tanislav
8414c83871
techpack: camera: req_mgr: increase max handles to match stock camera module 2024-05-20 17:39:41 +02:00
Cosmin Tanislav
22b0bc011e
techpack: camera: lock cci core read and write operations 2024-05-20 17:39:40 +02:00
Arian
106abd4fa5
techpack: display: Refactor doze modes
* Add support for low and high brightness lp modes
  and toggle between them at the brightness
  threshold of 100.
* Handle nolp based on mi,aod-nolp-command-enabled

Change-Id: Ib915ab3d47e6a5b0cd45397a3afac2c08aa31784
2024-05-20 17:39:39 +02:00
Arian
72c3991179
techpack: display: Notify on fps change events
Change-Id: Idea8ae6ae4a2edd02188bb78140585b61a99bd9f
2024-05-20 17:39:38 +02:00
Arian
76703a3aa9
techpack: display: Add dynamic_fps node
Change-Id: I3caa088d98511e472f6264ed69fd3df2ad35f433
2024-05-20 17:39:37 +02:00
Giovanni Ricca
a2f80b8575
techpack: display: Change max QP values for selected panel
* From redwood-s-oss

Change-Id: Iab6f435f16ec2234370b89ef3d589ff9bc027daf
2024-05-20 17:39:36 +02:00