Commit 363b06aa authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Inki Dae

drm/exynos: Use DRM_FORMAT_{NV12, YUV420} instead of DRM_FORMAT_{NV12M, YUV420M}

The NV12M/YUV420M formats are identical to the already existing standard
NV12/YUV420 formats. The M variants will be removed, so convert the
driver to use the standard names.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
parent 47819ba2
...@@ -31,10 +31,10 @@ ...@@ -31,10 +31,10 @@
static inline int exynos_drm_format_num_buffers(uint32_t format) static inline int exynos_drm_format_num_buffers(uint32_t format)
{ {
switch (format) { switch (format) {
case DRM_FORMAT_NV12M: case DRM_FORMAT_NV12:
case DRM_FORMAT_NV12MT: case DRM_FORMAT_NV12MT:
return 2; return 2;
case DRM_FORMAT_YUV420M: case DRM_FORMAT_YUV420:
return 3; return 3;
default: default:
return 1; return 1;
......
...@@ -365,7 +365,7 @@ static void vp_video_buffer(struct mixer_context *ctx, int win) ...@@ -365,7 +365,7 @@ static void vp_video_buffer(struct mixer_context *ctx, int win)
switch (win_data->pixel_format) { switch (win_data->pixel_format) {
case DRM_FORMAT_NV12MT: case DRM_FORMAT_NV12MT:
tiled_mode = true; tiled_mode = true;
case DRM_FORMAT_NV12M: case DRM_FORMAT_NV12:
crcb_mode = false; crcb_mode = false;
buf_num = 2; buf_num = 2;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment