diff options
author | Joel Kenny <jkenny@nvidia.com> | 2011-10-12 15:15:41 -0700 |
---|---|---|
committer | Lokesh Pathak <lpathak@nvidia.com> | 2011-11-10 07:09:52 -0800 |
commit | 50e91c3df1c0e04522db5159f2a414ed9c90a350 (patch) | |
tree | e88baa7ac18594ca4b6d5cde34d98f0e224322e4 /drivers | |
parent | db68e9e93efa9de467b5c741dcf979dd113606d2 (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.
(cherry picked from commit 8a4c47b17fae10a65e4816e419dff46b9f4785d1)
Change-Id: I825b4c1659a9f4f982bc66513b08b95879f17dd5
Reviewed-on: http://git-master/r/62522
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/tegra/dc/dc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |