diff mbox series

[v3,04/13] media: verisilicon: Get bit depth for V4L2_PIX_FMT_NV12_10LE40_4L4

Message ID 20230111165931.753763-5-benjamin.gaignard@collabora.com
State Superseded
Headers show
Series [v3,01/13] dt-bindings: media: rockchip-vpu: Add rk3588 vpu compatible | expand

Commit Message

Benjamin Gaignard Jan. 11, 2023, 4:59 p.m. UTC
Let's the driver knows that V4L2_PIX_FMT_NV12_10LE40_4L4 is a 10bits
pixel format.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
---
 drivers/media/platform/verisilicon/hantro_v4l2.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/media/platform/verisilicon/hantro_v4l2.c b/drivers/media/platform/verisilicon/hantro_v4l2.c
index 2c7a805289e7..162110ac118d 100644
--- a/drivers/media/platform/verisilicon/hantro_v4l2.c
+++ b/drivers/media/platform/verisilicon/hantro_v4l2.c
@@ -69,6 +69,7 @@  int hantro_get_format_depth(u32 fourcc)
 	switch (fourcc) {
 	case V4L2_PIX_FMT_P010:
 	case V4L2_PIX_FMT_P010_4L4:
+	case V4L2_PIX_FMT_NV12_10LE40_4L4:
 		return 10;
 	default:
 		return 8;