summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/dc.c
diff options
context:
space:
mode:
authorFrancis Hart <fhart@nvidia.com>2011-12-12 12:33:39 +0200
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-01-10 08:12:43 -0800
commitb9a658c9cb48992716411298d1d61ca42997248f (patch)
tree86fcad7775aeffbefa702e6a17e92379f51b918a /drivers/video/tegra/dc/dc.c
parent8ca13c0820ea3578735043d4437f6c06b0894bd6 (diff)
video: tegra: dc: Fix support for YUV422R
The tegra display controller supports the YUV422R planar surface format, but this was not handled by the dc driver. This change also fixes the YUV422RA planar format variation. Bug 914375 Change-Id: I73ffd2f7434c71d8353c7e16ada5ac6b13fee86b Reviewed-on: http://git-master/r/69446 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> (cherry picked from commit a085ef1eeb332116f102d82af25f7a6451eb6329) Reviewed-on: http://git-master/r/73950 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/dc/dc.c')
-rw-r--r--drivers/video/tegra/dc/dc.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index 1ae7633..e9bbf11 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -131,14 +131,14 @@ static inline int tegra_dc_fmt_bpp(int fmt)
case TEGRA_WIN_FMT_YUV420P:
case TEGRA_WIN_FMT_YCbCr422P:
case TEGRA_WIN_FMT_YUV422P:
- return 8;
-
- case TEGRA_WIN_FMT_YCbCr422:
- case TEGRA_WIN_FMT_YUV422:
case TEGRA_WIN_FMT_YCbCr422R:
case TEGRA_WIN_FMT_YUV422R:
case TEGRA_WIN_FMT_YCbCr422RA:
case TEGRA_WIN_FMT_YUV422RA:
+ return 8;
+
+ case TEGRA_WIN_FMT_YCbCr422:
+ case TEGRA_WIN_FMT_YUV422:
/* FIXME: need to know the bpp of these formats */
return 0;
}
@@ -152,6 +152,10 @@ static inline bool tegra_dc_is_yuv_planar(int fmt)
case TEGRA_WIN_FMT_YCbCr420P:
case TEGRA_WIN_FMT_YCbCr422P:
case TEGRA_WIN_FMT_YUV422P:
+ case TEGRA_WIN_FMT_YCbCr422R:
+ case TEGRA_WIN_FMT_YUV422R:
+ case TEGRA_WIN_FMT_YCbCr422RA:
+ case TEGRA_WIN_FMT_YUV422RA:
return true;
}
return false;