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

Commit bc9784a0 authored by Vishnuvardhan Prodduturi's avatar Vishnuvardhan Prodduturi Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: Set correct flush bit for writeback mixer.



Wrong flush bit is being set for writeback mixer which can cause
MDP hang/unexpected behaviour when the mixer is used in line mode.
This patch addresses the issue by setting the correct flush bit.

Change-Id: Ie0c2ee27b1f466164a8fb84f7daae9309b74d1d8
Signed-off-by: default avatarVishnuvardhan Prodduturi <vproddut@codeaurora.org>
parent a525e5d0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1497,6 +1497,8 @@ update_mixer:

	if (mixer->num == MDSS_MDP_INTF_LAYERMIXER3)
		ctl->flush_bits |= BIT(20);
	else if (mixer->type == MDSS_MDP_MIXER_TYPE_WRITEBACK)
		ctl->flush_bits |= BIT(9) << mixer->num;
	else
		ctl->flush_bits |= BIT(6) << mixer->num;