summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
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;