disp: msm: sde: reset wb output crop during cwb disable
Reset the wb crop configs from hardware, while disabling concurrent writeback. This avoids stale configs which affects the subsequent writeback session. Change-Id: I4927effd0650bcdca2852a5d72c3e5478683a90f Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
d7c495fba1
commit
600e4ef057
@@ -549,6 +549,7 @@ static void _sde_encoder_phys_wb_setup_cwb(struct sde_encoder_phys *phys_enc, bo
|
|||||||
{
|
{
|
||||||
struct sde_encoder_phys_wb *wb_enc = to_sde_encoder_phys_wb(phys_enc);
|
struct sde_encoder_phys_wb *wb_enc = to_sde_encoder_phys_wb(phys_enc);
|
||||||
struct sde_hw_wb *hw_wb = wb_enc->hw_wb;
|
struct sde_hw_wb *hw_wb = wb_enc->hw_wb;
|
||||||
|
struct sde_hw_wb_cfg *wb_cfg = &wb_enc->wb_cfg;
|
||||||
struct sde_hw_ctl *hw_ctl = phys_enc->hw_ctl;
|
struct sde_hw_ctl *hw_ctl = phys_enc->hw_ctl;
|
||||||
struct sde_crtc *crtc = to_sde_crtc(wb_enc->crtc);
|
struct sde_crtc *crtc = to_sde_crtc(wb_enc->crtc);
|
||||||
struct sde_hw_pingpong *hw_pp = phys_enc->hw_pp;
|
struct sde_hw_pingpong *hw_pp = phys_enc->hw_pp;
|
||||||
@@ -606,6 +607,9 @@ static void _sde_encoder_phys_wb_setup_cwb(struct sde_encoder_phys *phys_enc, bo
|
|||||||
test_bit(SDE_WB_DCWB_CTRL, &hw_wb->caps->features))
|
test_bit(SDE_WB_DCWB_CTRL, &hw_wb->caps->features))
|
||||||
hw_wb->ops.bind_dcwb_pp_blk(hw_wb, enable, hw_pp->idx);
|
hw_wb->ops.bind_dcwb_pp_blk(hw_wb, enable, hw_pp->idx);
|
||||||
|
|
||||||
|
if (hw_wb->ops.setup_crop && !enable)
|
||||||
|
hw_wb->ops.setup_crop(hw_wb, wb_cfg, false);
|
||||||
|
|
||||||
if (hw_ctl->ops.update_intf_cfg) {
|
if (hw_ctl->ops.update_intf_cfg) {
|
||||||
hw_ctl->ops.update_intf_cfg(hw_ctl, &intf_cfg, enable);
|
hw_ctl->ops.update_intf_cfg(hw_ctl, &intf_cfg, enable);
|
||||||
SDE_DEBUG("[enc:%d wb:%d] in CWB/DCWB mode on CTL_%d PP-%d merge3d:%d\n",
|
SDE_DEBUG("[enc:%d wb:%d] in CWB/DCWB mode on CTL_%d PP-%d merge3d:%d\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user