diff options
author | Jon Mayo <jmayo@nvidia.com> | 2011-09-20 19:01:23 -0700 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-10-07 12:57:18 -0700 |
commit | cee2dad328baa7034ccb21d2acd6a48c067c5d26 (patch) | |
tree | 24ec19e8785dfb5cffe33a149922502bc058e2b2 /arch | |
parent | b9f98d123bc62ddce2562774921a374f5f89be9a (diff) |
arm: tegra: ventana: 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/53628
(cherry picked from commit c14cc78c0ecc008e44784ef28b5ea83eff5e47fb)
Change-Id: I46eb9973de667e714317d1c24d05430532fafa68
Reviewed-on: http://git-master/r/56445
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-ventana-panel.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-ventana-panel.c b/arch/arm/mach-tegra/board-ventana-panel.c index 3f9fcd7a871d..3fe4d04f56cf 100644 --- a/arch/arm/mach-tegra/board-ventana-panel.c +++ b/arch/arm/mach-tegra/board-ventana-panel.c @@ -343,8 +343,12 @@ struct early_suspend ventana_panel_early_suspender; static void ventana_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(); |