Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c667c77f authored by Krishna Manikandan's avatar Krishna Manikandan
Browse files

disp: msm: sde: disable CWB crop after cwb session is ended



Add changes to disable CWB crop params as part of writeback
disable.

Change-Id: I18582ceb502e759ec4b67568562ac95ff3f0d359
Signed-off-by: default avatarKrishna Manikandan <mkrishn@codeaurora.org>
parent 5599d64b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1727,6 +1727,9 @@ static void sde_encoder_phys_wb_disable(struct sde_encoder_phys *phys_enc)
	}

	if (phys_enc->in_clone_mode) {
		if (hw_wb->ops.setup_crop)
			hw_wb->ops.setup_crop(hw_wb, NULL, false);

		_sde_encoder_phys_wb_setup_cwb(phys_enc, false);
		_sde_encoder_phys_wb_update_cwb_flush(phys_enc, false);
		phys_enc->enable_state = SDE_ENC_DISABLING;
+1 −2
Original line number Diff line number Diff line
@@ -215,9 +215,8 @@ static void sde_hw_wb_crop(struct sde_hw_wb *ctx, struct sde_hw_wb_cfg *wb, bool
	struct sde_hw_blk_reg_map *c = &ctx->hw;
	u32 crop_xy;

	crop_xy = (wb->crop.y << 16) | wb->crop.x;

	if (crop) {
		crop_xy = (wb->crop.y << 16) | wb->crop.x;
		SDE_REG_WRITE(c, WB_CROP_CTRL, 0x1);
		SDE_REG_WRITE(c, WB_CROP_OFFSET, crop_xy);
	} else {