media: common: saa7146: fix broken V4L2_PIX_FMT_YUV422P support
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 2 Mar 2023 10:21:47 +0000 (10:21 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 15 Apr 2023 07:52:06 +0000 (08:52 +0100)
The U and V components were swapped. Drop the FORMAT_BYTE_SWAP
to fix this.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/common/saa7146/saa7146_video.c

index dd0d803..bc4e8d1 100644 (file)
@@ -51,7 +51,7 @@ static struct saa7146_format formats[] = {
                .pixelformat    = V4L2_PIX_FMT_YUV422P,
                .trans          = YUV422_DECOMPOSED,
                .depth          = 16,
-               .flags          = FORMAT_BYTE_SWAP|FORMAT_IS_PLANAR,
+               .flags          = FORMAT_IS_PLANAR,
        }, {
                .pixelformat    = V4L2_PIX_FMT_YVU420,
                .trans          = YUV420_DECOMPOSED,