media: tvp5150: Fix mbus format to UYUV instead of YUYV.
v2 cover media: tvp5150: Fix mbus format to UYUV instead of YUYV.
Changes since v2:
- Swap order of patches 3 and 4 to make the series bisectable.
[PATCH v2 1/3] media: tvp5150: Fix mbus format.
[PATCH v2 2/3] i.MX27: visstrim_m10: Remove use of MX2_CAMERA_SWAP16. [PATCH v2 3/3] media: mx2_camera: Fix mbus format handling.
PATCH v2 1/3 media: tvp5150: Fix mbus format.
According to p.14 fig 3-3 of the datasheet (SLES098A) this decoder transmits data in UYVY format.
--- drivers/media/video/tvp5150.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/media/video/tvp5150.c +2 -2
@@ -821,7 +821,7 @@ static int tvp5150_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned index,if (index)return -EINVAL ; - *code =V4L2_MBUS_FMT_YUYV8_2X8 ; + *code =V4L2_MBUS_FMT_UYVY8_2X8 ;return 0 ; }
@@ -845,7 +845,7 @@ static int tvp5150_mbus_fmt(struct v4l2_subdev *sd, f->width = decoder->rect.width; f->height = decoder->rect.height; - f->code =V4L2_MBUS_FMT_YUYV8_2X8 ; + f->code =V4L2_MBUS_FMT_UYVY8_2X8 ; f->field =V4L2_FIELD_SEQ_TB ; f->colorspace =V4L2_COLORSPACE_SMPTE170M ;
Signature · 1 line
1.7.0.4
PATCH v2 2/3 i.MX27: visstrim_m10: Remove use of MX2_CAMERA_SWAP16.
In reply to Javier Martin--- arch/arm/mach-imx/mach-imx27_visstrim_m10.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-imx/mach-imx27_visstrim_m10.c +1 -1
@@ -164,7 +164,7 @@ static struct platform_device visstrim_tvp5150 = {static struct mx2_camera_platform_data visstrim_camera = { - .flags =MX2_CAMERA_CCIR |MX2_CAMERA_CCIR_INTERLACE |MX2_CAMERA_SWAP16 |MX2_CAMERA_PCLK_SAMPLE_RISING , + .flags =MX2_CAMERA_CCIR |MX2_CAMERA_CCIR_INTERLACE |MX2_CAMERA_PCLK_SAMPLE_RISING , .clk =100000 , };
Signature · 1 line
1.7.0.4
Sascha Hauer
maintainerPATCH v2 2/3 i.MX27: visstrim_m10: Remove use of MX2_CAMERA_SWAP16.
Quoted 2 lines · Javier Martin
Signed-off-by Javier Martin <[email protected]>
Should go via the media tree.
Sascha
Quoted 21 lines
--- arch/arm/mach-imx/mach-imx27_visstrim_m10.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-imx/mach-imx27_visstrim_m10.c +1
-1@@ -164,7 +164,7 @@ static struct platform_device visstrim_tvp5150 = {static struct mx2_camera_platform_data visstrim_camera = { - .flags =MX2_CAMERA_CCIR |MX2_CAMERA_CCIR_INTERLACE |MX2_CAMERA_SWAP16 |MX2_CAMERA_PCLK_SAMPLE_RISING , + .flags =MX2_CAMERA_CCIR |MX2_CAMERA_CCIR_INTERLACE |MX2_CAMERA_PCLK_SAMPLE_RISING , .clk =100000 , };Signature · 1 line
1.7.0.4
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
PATCH v2 3/3 media: mx2_camera: Fix mbus format handling.
In reply to Javier MartinRemove MX2_CAMERA_SWAP16 and MX2_CAMERA_PACK_DIR_MSB flags so that the driver can negotiate with the attached sensor whether the mbus format needs convertion from UYUV to YUYV or not.
--- arch/arm/plat-mxc/include/mach/mx2_cam.h | 2 - drivers/media/video/mx2_camera.c | 52 +++++++++++++++++++++++++++--- 2 files changed, 47 insertions(+), 7 deletions(-)
arch/arm/plat-mxc/include/mach/mx2_cam.h +0 -2
@@ -23,7 +23,6 @@#ifndef __MACH_MX2_CAM_H_#define __MACH_MX2_CAM_H_ -#define MX2_CAMERA_SWAP16 (1 << 0)#define MX2_CAMERA_EXT_VSYNC (1 << 1)#define MX2_CAMERA_CCIR (1 << 2)#define MX2_CAMERA_CCIR_INTERLACE (1 << 3)
@@ -31,7 +30,6 @@#define MX2_CAMERA_GATED_CLOCK (1 << 5)#define MX2_CAMERA_INV_DATA (1 << 6)#define MX2_CAMERA_PCLK_SAMPLE_RISING (1 << 7) -#define MX2_CAMERA_PACK_DIR_MSB (1 << 8)/** * struct mx2_camera_platform_data - optional platform data for mx2_camera
drivers/media/video/mx2_camera.c +47 -5
94 lines not on this page · raw message
Signature · 1 line
1.7.0.4