[v2,4/5] media: v4l: Add Broadcom sand format descriptions to v4l2-ioctl.c

Message ID 20230310194121.61928-5-jc@kynesim.co.uk (mailing list archive)
State New
Delegated to: Hans Verkuil
Headers
Series media: v4l: Add Broadcom sand format to the list of V4L formats |

Commit Message

John Cox March 10, 2023, 7:41 p.m. UTC
  Add short descriptions for Broadcom 8 and 10-bit packed 128 byte
column formats to v4l2-ioctl.h

Signed-off-by: John Cox <jc@kynesim.co.uk>
---
 drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Nicolas Dufresne March 15, 2023, 7:24 p.m. UTC | #1
Le vendredi 10 mars 2023 à 19:41 +0000, John Cox a écrit :
> Add short descriptions for Broadcom 8 and 10-bit packed 128 byte
> column formats to v4l2-ioctl.h
> 
> Signed-off-by: John Cox <jc@kynesim.co.uk>

Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>

> ---
>  drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c
> index b26da2650289..3120548aa139 100644
> --- a/drivers/media/v4l2-core/v4l2-ioctl.c
> +++ b/drivers/media/v4l2-core/v4l2-ioctl.c
> @@ -1353,6 +1353,8 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt)
>  	case V4L2_PIX_FMT_NV12_16L16:	descr = "Y/UV 4:2:0 (16x16 Linear)"; break;
>  	case V4L2_PIX_FMT_NV12_32L32:   descr = "Y/UV 4:2:0 (32x32 Linear)"; break;
>  	case V4L2_PIX_FMT_P010_4L4:	descr = "10-bit Y/UV 4:2:0 (4x4 Linear)"; break;
> +	case V4L2_PIX_FMT_NV12_C128:	descr = "Y/UV 4:2:0 (128b column)"; break;
> +	case V4L2_PIX_FMT_P030_C128:	descr = "10-bit Y/UV 4:2:0 (128b column)"; break;
>  	case V4L2_PIX_FMT_NV12M:	descr = "Y/UV 4:2:0 (N-C)"; break;
>  	case V4L2_PIX_FMT_NV21M:	descr = "Y/VU 4:2:0 (N-C)"; break;
>  	case V4L2_PIX_FMT_NV16M:	descr = "Y/UV 4:2:2 (N-C)"; break;
  

Patch

diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c
index b26da2650289..3120548aa139 100644
--- a/drivers/media/v4l2-core/v4l2-ioctl.c
+++ b/drivers/media/v4l2-core/v4l2-ioctl.c
@@ -1353,6 +1353,8 @@  static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt)
 	case V4L2_PIX_FMT_NV12_16L16:	descr = "Y/UV 4:2:0 (16x16 Linear)"; break;
 	case V4L2_PIX_FMT_NV12_32L32:   descr = "Y/UV 4:2:0 (32x32 Linear)"; break;
 	case V4L2_PIX_FMT_P010_4L4:	descr = "10-bit Y/UV 4:2:0 (4x4 Linear)"; break;
+	case V4L2_PIX_FMT_NV12_C128:	descr = "Y/UV 4:2:0 (128b column)"; break;
+	case V4L2_PIX_FMT_P030_C128:	descr = "10-bit Y/UV 4:2:0 (128b column)"; break;
 	case V4L2_PIX_FMT_NV12M:	descr = "Y/UV 4:2:0 (N-C)"; break;
 	case V4L2_PIX_FMT_NV21M:	descr = "Y/VU 4:2:0 (N-C)"; break;
 	case V4L2_PIX_FMT_NV16M:	descr = "Y/UV 4:2:2 (N-C)"; break;