diff mbox

[07/15] mediactl: libv4l2subdev: add VYUY8_2X8 mbus code

Message ID 1453133860-21571-8-git-send-email-j.anaszewski@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jacek Anaszewski Jan. 18, 2016, 4:17 p.m. UTC
The VYUY8_2X8 media bus format is the only one supported
by the S5C73M3 camera sensor, that is a part of the media
device on the Exynos4412-trats2 board.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 utils/media-ctl/libv4l2subdev.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Sakari Ailus Feb. 15, 2016, 3:55 p.m. UTC | #1
Hi Jacek,

On Mon, Jan 18, 2016 at 05:17:32PM +0100, Jacek Anaszewski wrote:
> The VYUY8_2X8 media bus format is the only one supported
> by the S5C73M3 camera sensor, that is a part of the media
> device on the Exynos4412-trats2 board.
> 
> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
> Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
>  utils/media-ctl/libv4l2subdev.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/utils/media-ctl/libv4l2subdev.c b/utils/media-ctl/libv4l2subdev.c
> index 069ded6..5175188 100644
> --- a/utils/media-ctl/libv4l2subdev.c
> +++ b/utils/media-ctl/libv4l2subdev.c
> @@ -780,6 +780,7 @@ static struct {
>  	{ "YUYV", MEDIA_BUS_FMT_YUYV8_1X16 },
>  	{ "YUYV1_5X8", MEDIA_BUS_FMT_YUYV8_1_5X8 },
>  	{ "YUYV2X8", MEDIA_BUS_FMT_YUYV8_2X8 },
> +	{ "VYUY8_2X8", V4L2_MBUS_FMT_VYUY8_2X8 },
>  	{ "UYVY", MEDIA_BUS_FMT_UYVY8_1X16 },
>  	{ "UYVY1_5X8", MEDIA_BUS_FMT_UYVY8_1_5X8 },
>  	{ "UYVY2X8", MEDIA_BUS_FMT_UYVY8_2X8 },

I have a patch taking the codes directly from media-bus-fmt.h; it's here:

<URL:http://www.spinics.net/lists/linux-media/msg96651.html>

Could you use the definition from that one instead? (I think all you need to
do is to drop the patch.)
diff mbox

Patch

diff --git a/utils/media-ctl/libv4l2subdev.c b/utils/media-ctl/libv4l2subdev.c
index 069ded6..5175188 100644
--- a/utils/media-ctl/libv4l2subdev.c
+++ b/utils/media-ctl/libv4l2subdev.c
@@ -780,6 +780,7 @@  static struct {
 	{ "YUYV", MEDIA_BUS_FMT_YUYV8_1X16 },
 	{ "YUYV1_5X8", MEDIA_BUS_FMT_YUYV8_1_5X8 },
 	{ "YUYV2X8", MEDIA_BUS_FMT_YUYV8_2X8 },
+	{ "VYUY8_2X8", V4L2_MBUS_FMT_VYUY8_2X8 },
 	{ "UYVY", MEDIA_BUS_FMT_UYVY8_1X16 },
 	{ "UYVY1_5X8", MEDIA_BUS_FMT_UYVY8_1_5X8 },
 	{ "UYVY2X8", MEDIA_BUS_FMT_UYVY8_2X8 },