video: tegra: work around overlay corruption on underflows
authorErik Gilling <konkers@android.com>
Wed, 12 Jan 2011 00:32:20 +0000 (16:32 -0800)
committerErik Gilling <konkers@android.com>
Wed, 12 Jan 2011 00:35:08 +0000 (16:35 -0800)
commit4ce07d6140b09aa49bfa823edbdd182ee74fa04e
tree7c31fec41714b253891fe30805552e6c573e8462
parent8df53e45999fa918c6955d9d103d3ac26c6c5ca4
video: tegra: work around overlay corruption on underflows

Overlays can get their internal state corrupted during and underflow
condition.  The only way to fix this state is to reset the DC.  If we get
4 consecutive frames with underflows, assume we're hosed and reset.

Change-Id: Icdf61517837c8570b8de35f585075de08aa35fe7
Signed-off-by: Erik Gilling <konkers@android.com>
Cc: Michael I. Gold <gold@nvidia.com>
arch/arm/mach-tegra/include/mach/dc.h
drivers/video/tegra/dc/dc.c
drivers/video/tegra/dc/dc_priv.h