path: root/drivers/video/tegra/dc/dc.c
diff options
authorJoel Kenny <>2011-10-12 15:15:41 -0700
committerDan Willemsen <>2011-11-30 21:49:59 -0800
commita524f1b30b495babf871d8010ba7292e700610cb (patch)
tree15e9d4ccb687ba13199fde831e9280a930702f01 /drivers/video/tegra/dc/dc.c
parent9ec2c8bf7bf3a4f5989d0e944db62f3d571ad956 (diff)
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
Diffstat (limited to 'drivers/video/tegra/dc/dc.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index c268b9c..9305929 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);