summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorFrancis Hart <fhart@nvidia.com>2011-12-12 05:33:39 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:02:01 -0400
commitc496f9613660a795891ea9d17ae4df083edde5a1 (patch)
treee7a5b12b7160b75fa34a4294eca0def5d0877236 /drivers/video
parentf6b8332e3fa721b240bedc742124874e881cd200 (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> Rebase-Id: R94b5242f33fa292f44c83bc7b1da2ec4fb4505f3
Diffstat (limited to 'drivers/video')
-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 a69a2554a..6eb036ba9 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -127,14 +127,14 @@ static inline int tegra_dc_fmt_bpp(int fmt)
127 case TEGRA_WIN_FMT_YUV420P: 127 case TEGRA_WIN_FMT_YUV420P:
128 case TEGRA_WIN_FMT_YCbCr422P: 128 case TEGRA_WIN_FMT_YCbCr422P:
129 case TEGRA_WIN_FMT_YUV422P: 129 case TEGRA_WIN_FMT_YUV422P:
130 return 8;
131
132 case TEGRA_WIN_FMT_YCbCr422:
133 case TEGRA_WIN_FMT_YUV422:
134 case TEGRA_WIN_FMT_YCbCr422R: 130 case TEGRA_WIN_FMT_YCbCr422R:
135 case TEGRA_WIN_FMT_YUV422R: 131 case TEGRA_WIN_FMT_YUV422R:
136 case TEGRA_WIN_FMT_YCbCr422RA: 132 case TEGRA_WIN_FMT_YCbCr422RA:
137 case TEGRA_WIN_FMT_YUV422RA: 133 case TEGRA_WIN_FMT_YUV422RA:
134 return 8;
135
136 case TEGRA_WIN_FMT_YCbCr422:
137 case TEGRA_WIN_FMT_YUV422:
138 /* FIXME: need to know the bpp of these formats */ 138 /* FIXME: need to know the bpp of these formats */
139 return 0; 139 return 0;
140 } 140 }
@@ -148,6 +148,10 @@ static inline bool tegra_dc_is_yuv_planar(int fmt)
148 case TEGRA_WIN_FMT_YCbCr420P: 148 case TEGRA_WIN_FMT_YCbCr420P:
149 case TEGRA_WIN_FMT_YCbCr422P: 149 case TEGRA_WIN_FMT_YCbCr422P:
150 case TEGRA_WIN_FMT_YUV422P: 150 case TEGRA_WIN_FMT_YUV422P:
151 case TEGRA_WIN_FMT_YCbCr422R:
152 case TEGRA_WIN_FMT_YUV422R:
153 case TEGRA_WIN_FMT_YCbCr422RA:
154 case TEGRA_WIN_FMT_YUV422RA:
151 return true; 155 return true;
152 } 156 }
153 return false; 157 return false;