diff options
author | Joel Kenny <jkenny@nvidia.com> | 2011-10-12 15:15:41 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:49:59 -0800 |
commit | a524f1b30b495babf871d8010ba7292e700610cb (patch) | |
tree | 15e9d4ccb687ba13199fde831e9280a930702f01 | |
parent | 9ec2c8bf7bf3a4f5989d0e944db62f3d571ad956 (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 <jmayo@nvidia.com>
Reviewed-by: Joel Kenny <jkenny@nvidia.com>
Tested-by: Joel Kenny <jkenny@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
(cherry picked from commit cbc4e10451137a972ef694d7698c7dab26017377)
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Change-Id: Id7101997db77e54861ef1045df5eccdfa4ee09eb
Reviewed-on: http://git-master/r/64065
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Rebase-Id: R8338a8bee51d297d66d8e0708f91627d202269ec
-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 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); } } |