Parcourir la source

drm/exynos: mixer: also allow NV21 for the video processor

All the necessary code is already there, just need to
handle the format in the switch statement.

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Acked-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Tobias Jakobi il y a 10 ans
Parent
commit
8f2590f8e3
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      drivers/gpu/drm/exynos/exynos_mixer.c

+ 3 - 0
drivers/gpu/drm/exynos/exynos_mixer.c

@@ -393,6 +393,9 @@ static void vp_video_buffer(struct mixer_context *ctx, int win)
 	case DRM_FORMAT_NV12:
 	case DRM_FORMAT_NV12:
 		crcb_mode = false;
 		crcb_mode = false;
 		break;
 		break;
+	case DRM_FORMAT_NV21:
+		crcb_mode = true;
+		break;
 	default:
 	default:
 		DRM_ERROR("pixel format for vp is wrong [%d].\n",
 		DRM_ERROR("pixel format for vp is wrong [%d].\n",
 				plane->pixel_format);
 				plane->pixel_format);