diff options
author | Chong Zhang <chzhang@nvidia.com> | 2011-01-28 17:15:34 -0800 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-02-16 00:11:23 -0800 |
commit | 6f29288ac9c3891111e18691b6a04d871872b311 (patch) | |
tree | 0b5576036109874db3727f70e1c1df6c446b23d3 | |
parent | 53f075d9cd8faf6b621fabf09aea641ba5273abe (diff) |
video: tegra: fix max yres in stereo hdmi case
tegra_fb_set_windowattr() has logic to adjust
window y according to yres, however when in stereo
mode, the max y allowed should be v_active, which
could be larger than yres.
bug 784597
Change-Id: I63342be8e2d87396502574f3a8dd0fb2769a47a8
Reviewed-on: http://git-master/r/17537
Reviewed-by: Chong Zhang <chzhang@nvidia.com>
Tested-by: Chong Zhang <chzhang@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
-rw-r--r-- | drivers/video/tegra/fb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c index 01b3d756b930..5941dfbbca28 100644 --- a/drivers/video/tegra/fb.c +++ b/drivers/video/tegra/fb.c @@ -39,6 +39,7 @@ #include "host/dev.h" #include "nvmap/nvmap.h" +#include "dc/dc_priv.h" struct tegra_fb_info { struct tegra_dc_win *win; @@ -398,8 +399,8 @@ static int tegra_fb_set_windowattr(struct tegra_fb_info *tegra_fb, return 0; } - xres = tegra_fb->info->var.xres; - yres = tegra_fb->info->var.yres; + xres = tegra_fb->win->dc->mode.h_active; + yres = tegra_fb->win->dc->mode.v_active; win->flags = TEGRA_WIN_FLAG_ENABLED; if (flip_win->attr.blend == TEGRA_FB_WIN_BLEND_PREMULT) |