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>
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>
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>
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
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>
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
* 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