linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benoit Parrot <bparrot@ti.com>
To: Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
	Hans Verkuil <hverkuil@xs4all.nl>
Cc: <linux-media@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [Patch] media: i2c: tvp514x: Reported mbus format should be MEDIA_BUS_FMT_UYVY8_2X8
Date: Thu, 22 Sep 2016 16:52:18 -0500	[thread overview]
Message-ID: <20160922215218.GD23415@ti.com> (raw)
In-Reply-To: <20160914200313.13334-1-bparrot@ti.com>

Gentle ping!

Benoit

Benoit Parrot <bparrot@ti.com> wrote on Wed [2016-Sep-14 15:03:13 -0500]:
> The advertised V4L2 pixel format and Media Bus code don't match.
> The current media bud code advertised is MEDIA_BUS_FMT_YUYV8_2X8
> which does not reflect what the encoder actually outputs.
> This encoder generate MEDIA_BUS_FMT_UYVY8_2X8 so advertise as such.
> 
> Signed-off-by: Benoit Parrot <bparrot@ti.com>
> ---
>  drivers/media/i2c/tvp514x.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/media/i2c/tvp514x.c b/drivers/media/i2c/tvp514x.c
> index 7cf749fc7143..b611eefa1a97 100644
> --- a/drivers/media/i2c/tvp514x.c
> +++ b/drivers/media/i2c/tvp514x.c
> @@ -894,7 +894,7 @@ static int tvp514x_enum_mbus_code(struct v4l2_subdev *sd,
>  	if (index != 0)
>  		return -EINVAL;
>  
> -	code->code = MEDIA_BUS_FMT_YUYV8_2X8;
> +	code->code = MEDIA_BUS_FMT_UYVY8_2X8;
>  
>  	return 0;
>  }
> @@ -922,7 +922,7 @@ static int tvp514x_get_pad_format(struct v4l2_subdev *sd,
>  		return 0;
>  	}
>  
> -	format->format.code = MEDIA_BUS_FMT_YUYV8_2X8;
> +	format->format.code = MEDIA_BUS_FMT_UYVY8_2X8;
>  	format->format.width = tvp514x_std_list[decoder->current_std].width;
>  	format->format.height = tvp514x_std_list[decoder->current_std].height;
>  	format->format.colorspace = V4L2_COLORSPACE_SMPTE170M;
> @@ -946,7 +946,7 @@ static int tvp514x_set_pad_format(struct v4l2_subdev *sd,
>  	struct tvp514x_decoder *decoder = to_decoder(sd);
>  
>  	if (fmt->format.field != V4L2_FIELD_INTERLACED ||
> -	    fmt->format.code != MEDIA_BUS_FMT_YUYV8_2X8 ||
> +	    fmt->format.code != MEDIA_BUS_FMT_UYVY8_2X8 ||
>  	    fmt->format.colorspace != V4L2_COLORSPACE_SMPTE170M ||
>  	    fmt->format.width != tvp514x_std_list[decoder->current_std].width ||
>  	    fmt->format.height != tvp514x_std_list[decoder->current_std].height)
> -- 
> 2.9.0
> 

      reply	other threads:[~2016-09-22 21:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-14 20:03 [Patch] media: i2c: tvp514x: Reported mbus format should be MEDIA_BUS_FMT_UYVY8_2X8 Benoit Parrot
2016-09-22 21:52 ` Benoit Parrot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160922215218.GD23415@ti.com \
    --to=bparrot@ti.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@osg.samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).