summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMin-wuk Lee <mlee@nvidia.com>2013-10-18 16:39:19 +0900
committerGabby Lee <galee@nvidia.com>2013-10-22 22:11:45 -0700
commit23af567e569a6f0259b9ad848671201555042c07 (patch)
treed27413bb49b50481de2bba747a760ed99c86969b
parent3335336bc5ea9e17066cb99e7c7c3a83b73504c3 (diff)
video: tegra: dc: nvhdcp off in shutdown
If dc out type is hdmi, nvhdcp off is necessary ahead of dc disabling to avoid flicker in hdmi display. Having suspend which includes nvhdcp off, here as a workaround. Bug 1389592 Change-Id: I1b9501890d75cb2681ed18c353b404fabb333d0c Signed-off-by: Min-wuk Lee <mlee@nvidia.com> Reviewed-on: http://git-master/r/301102 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Gabby Lee <galee@nvidia.com>
-rw-r--r--drivers/video/tegra/dc/dc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index 8a19bc87f54c..4601d623e3eb 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -2693,6 +2693,14 @@ static void tegra_dc_shutdown(struct platform_device *ndev)
if (!dc || !dc->enabled)
return;
+ /*
+ * To have nvhdcp off
+ * FIXME: destroy is more desirable
+ */
+ if (dc->out->type == TEGRA_DC_OUT_HDMI &&
+ dc->out_ops && dc->out_ops->suspend)
+ dc->out_ops->suspend(dc);
+
tegra_dc_disable(dc);
}