diff mbox series

[v7,05/13] media: verisilicon: Get bit depth for V4L2_PIX_FMT_NV15_4L4

Message ID 20230503083438.85139-6-benjamin.gaignard@collabora.com
State Accepted
Commit aa1e34c85b9e04ed7c4bb9798094799938eb0525
Headers show
Series AV1 stateless decoder for RK3588 | expand

Commit Message

Benjamin Gaignard May 3, 2023, 8:34 a.m. UTC
Let's the driver knows that V4L2_PIX_FMT_NV15_4L4 is a 10bits
pixel format.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@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 835518534e3b..d4c5035ab3e3 100644
--- a/drivers/media/platform/verisilicon/hantro_v4l2.c
+++ b/drivers/media/platform/verisilicon/hantro_v4l2.c
@@ -71,6 +71,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_NV15_4L4:
 		return 10;
 	default:
 		return 8;