video: tegra: dc: nvhdcp off in shutdown
Min-wuk Lee [Fri, 18 Oct 2013 07:39:19 +0000 (16:39 +0900)]
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
(cherry picked from commit 23af567e569a6f0259b9ad848671201555042c07)
Reviewed-on: http://git-master/r/302768
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

drivers/video/tegra/dc/dc.c

index a7dcb83..2269bc9 100644 (file)
@@ -2690,6 +2690,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);
 }