video: tegra: dc: ignore unused overlays for bandwidth
authorJoel Kenny <jkenny@nvidia.com>
Wed, 12 Oct 2011 22:15:41 +0000 (15:15 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:49:59 +0000 (21:49 -0800)
commita524f1b30b495babf871d8010ba7292e700610cb
tree15e9d4ccb687ba13199fde831e9280a930702f01
parent9ec2c8bf7bf3a4f5989d0e944db62f3d571ad956
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
drivers/video/tegra/dc/dc.c