diff options
author | Bharat Nihalani <bnihalani@nvidia.com> | 2012-02-10 17:06:34 +0530 |
---|---|---|
committer | Lokesh Pathak <lpathak@nvidia.com> | 2012-02-22 07:15:51 -0800 |
commit | 4b59e70c117ae8001ed865f78b30706390cd9cc4 (patch) | |
tree | 200340278ded5c6fecbd8317c21c7c073cabbea6 | |
parent | 93c4e79a75a6c7e0ce8b0b80c2bbf7f10b504983 (diff) |
ARM: tegra: whistler: 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 934699
Original change done for other boards by Jon Mayo <jmayo@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/83104
(cherry picked from commit 00f2c63b39c4b41dc07c0fb3d9b2bfde81e84936)
Change-Id: Ia773235a4e5e57d3caa17f78a51df3c2be7e6d9d
Reviewed-on: http://git-master/r/84889
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/board-whistler-panel.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/board-whistler-panel.c b/arch/arm/mach-tegra/board-whistler-panel.c index 9bdde43b8925..9516a315c912 100644 --- a/arch/arm/mach-tegra/board-whistler-panel.c +++ b/arch/arm/mach-tegra/board-whistler-panel.c @@ -314,9 +314,12 @@ struct early_suspend whistler_panel_early_suspender; static void whistler_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 blank 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(); |