MMFMWK-8395 kmssink: add NV12_10LE support for DRM dumb buffer

upstream status: imx specific
Signed-off-by: Haihua Hu <jared.hu@nxp.com>
diff --git a/sys/kms/gstkmsallocator.c b/sys/kms/gstkmsallocator.c
index cec14a6..4cfc6d5 100644
--- a/sys/kms/gstkmsallocator.c
+++ b/sys/kms/gstkmsallocator.c
@@ -152,6 +152,7 @@
     case GST_VIDEO_FORMAT_NV16:
     case GST_VIDEO_FORMAT_NV61:
     case GST_VIDEO_FORMAT_NV24:
+    case GST_VIDEO_FORMAT_NV12_10LE:
       estride = (plane == 0 ? 1 : 2) *
           GST_VIDEO_FORMAT_INFO_SCALE_WIDTH (finfo, plane, stride);
       break;
diff --git a/sys/kms/gstkmsutils.c b/sys/kms/gstkmsutils.c
index d297d50..1f7baec 100644
--- a/sys/kms/gstkmsutils.c
+++ b/sys/kms/gstkmsutils.c
@@ -113,6 +113,9 @@
     case DRM_FORMAT_NV16:
       bpp = 8;
       break;
+    case DRM_FORMAT_P010:
+      bpp = 10;
+      break;
     case DRM_FORMAT_UYVY:
     case DRM_FORMAT_YUYV:
     case DRM_FORMAT_YVYU:
@@ -162,6 +165,7 @@
     case DRM_FORMAT_YUV422:
     case DRM_FORMAT_NV12:
     case DRM_FORMAT_NV21:
+    case DRM_FORMAT_P010:
       ret = height * 3 / 2;
       break;
     case DRM_FORMAT_NV16: