disp: msm: add changes missing during snapshots
This change ports the missing changes from 4.14 to 4.19 that were missed. It includes changes up until commit 0f8fb25421ff ("cnss2: Add device version to SOC info structure"). Change-Id: Idfdfe891f146e389e3c65cc3fc4c98d93220e789 Signed-off-by: Samantha Tran <samtran@codeaurora.org>
This commit is contained in:
@@ -385,8 +385,10 @@ static void sde_encoder_phys_vid_setup_timing_engine(
|
||||
u32 qsync_min_fps = 0;
|
||||
unsigned long lock_flags;
|
||||
struct sde_hw_intf_cfg intf_cfg = { 0 };
|
||||
bool is_split_link = false;
|
||||
|
||||
if (!phys_enc || !phys_enc->sde_kms || !phys_enc->hw_ctl) {
|
||||
if (!phys_enc || !phys_enc->sde_kms || !phys_enc->hw_ctl ||
|
||||
!phys_enc->hw_intf) {
|
||||
SDE_ERROR("invalid encoder %d\n", !phys_enc);
|
||||
return;
|
||||
}
|
||||
@@ -401,7 +403,8 @@ static void sde_encoder_phys_vid_setup_timing_engine(
|
||||
SDE_DEBUG_VIDENC(vid_enc, "enabling mode:\n");
|
||||
drm_mode_debug_printmodeline(&mode);
|
||||
|
||||
if (phys_enc->split_role != ENC_ROLE_SOLO) {
|
||||
is_split_link = phys_enc->hw_intf->cfg.split_link_en;
|
||||
if (phys_enc->split_role != ENC_ROLE_SOLO || is_split_link) {
|
||||
mode.hdisplay >>= 1;
|
||||
mode.htotal >>= 1;
|
||||
mode.hsync_start >>= 1;
|
||||
|
Viittaa uudesa ongelmassa
Block a user