diff options
author | Jon Mayo <jmayo@nvidia.com> | 2011-09-20 18:56:09 -0700 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-10-07 12:57:21 -0700 |
commit | 8c2e16bc1025dade3ec64a63de372174472a23a0 (patch) | |
tree | de564b81587f5494748f64f85a079b4cffa1b1f9 /arch | |
parent | cee2dad328baa7034ccb21d2acd6a48c067c5d26 (diff) |
arm: tegra: enterprise: HDMI audio while screen is blank
continue to play HDMI audio past earlysuspend (when internal screen is
powered down). this is accomplished by using FB_BLANK_NORMAL on HDMI
display in earlysuspend instead of FB_BLANK_POWERDOWN.
bug 857117
bug 868916
Reviewed-on: http://git-master/r/53625
(cherry picked from commit cf5d83a14af135bfe181294433006fd4018dcdd9)
Change-Id: Ic497de9621ddcea59c27e02c3656f1be6e436855
Reviewed-on: http://git-master/r/56446
Tested-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/board-enterprise-panel.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-panel.c b/arch/arm/mach-tegra/board-enterprise-panel.c index efc9a3c84b06..4e2d79d0f50c 100644 --- a/arch/arm/mach-tegra/board-enterprise-panel.c +++ b/arch/arm/mach-tegra/board-enterprise-panel.c @@ -696,8 +696,12 @@ struct early_suspend enterprise_panel_early_suspender; static void enterprise_panel_early_suspend(struct early_suspend *h) { unsigned i; - for (i = 0; i < num_registered_fb; i++) - fb_blank(registered_fb[i], FB_BLANK_POWERDOWN); + + /* power down LCD, add use a black screen for HDMI */ + if (num_registered_fb > 0) + fb_blank(registered_fb[0], FB_BLANK_POWERDOWN); + if (num_registered_fb > 1) + fb_blank(registered_fb[1], FB_BLANK_NORMAL); #ifdef CONFIG_TEGRA_CONVSERVATIVE_GOV_ON_EARLYSUPSEND cpufreq_save_default_governor(); cpufreq_set_conservative_governor(); |