From a524f1b30b495babf871d8010ba7292e700610cb Mon Sep 17 00:00:00 2001 From: Joel Kenny Date: Wed, 12 Oct 2011 15:15:41 -0700 Subject: video: tegra: dc: ignore unused overlays for bandwidth If an overlay is not being used, do not program the latency allowance. This is to avoid underflows that occur at a resolution of 19x12. When the unused overlays are reenabled, they underflow if the latency allowance has previously been increased to a very high value. Change-Id: Id381a74f5cc602d47199cb42d17f77b1086de70e Reviewed-on: http://git-master/r/58195 Reviewed-by: Jon Mayo Reviewed-by: Joel Kenny Tested-by: Joel Kenny Tested-by: Gerrit_Virtual_Submit (cherry picked from commit cbc4e10451137a972ef694d7698c7dab26017377) Signed-off-by: Jon Mayo Change-Id: Id7101997db77e54861ef1045df5eccdfa4ee09eb Reviewed-on: http://git-master/r/64065 Reviewed-by: Lokesh Pathak Tested-by: Lokesh Pathak Rebase-Id: R8338a8bee51d297d66d8e0708f91627d202269ec --- drivers/video/tegra/dc/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/video/tegra/dc/dc.c') diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c index c268b9c306a8..930592965628 100644 --- a/drivers/video/tegra/dc/dc.c +++ b/drivers/video/tegra/dc/dc.c @@ -977,7 +977,7 @@ static void tegra_dc_program_bandwidth(struct tegra_dc *dc) for (i = 0; i < DC_N_WINDOWS; i++) { struct tegra_dc_win *w = &dc->windows[i]; - if (w->bandwidth != w->new_bandwidth) + if (w->bandwidth != w->new_bandwidth && w->new_bandwidth != 0) tegra_dc_set_latency_allowance(dc, w); } } -- cgit v1.2.3