From 50e91c3df1c0e04522db5159f2a414ed9c90a350 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. (cherry picked from commit 8a4c47b17fae10a65e4816e419dff46b9f4785d1) Change-Id: I825b4c1659a9f4f982bc66513b08b95879f17dd5 Reviewed-on: http://git-master/r/62522 Reviewed-by: Lokesh Pathak Tested-by: Lokesh Pathak --- drivers/video/tegra/dc/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c index 3c7600eb63e8..c1190fdfd3dc 100644 --- a/drivers/video/tegra/dc/dc.c +++ b/drivers/video/tegra/dc/dc.c @@ -874,7 +874,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