All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Kamil Debski <k.debski@samsung.com>
Cc: linux-media@vger.kernel.org, arun.kk@samsung.com
Subject: Re: [PATCH 1/2] v4l: s5p-mfc: Fix default pixel format selection for decoder
Date: Mon, 19 May 2014 10:57:59 +0200	[thread overview]
Message-ID: <5379C797.1080508@samsung.com> (raw)
In-Reply-To: <1400241824-18260-1-git-send-email-k.debski@samsung.com>

On 16/05/14 14:03, Kamil Debski wrote:
> The patch adding the v6 version of MFC changed the default format for
> the CAPTURE queue, but this also affects the v5 version. This patch
> solves this problem by checking the MFC version before assigning the
> default format.
> 
> Signed-off-by: Kamil Debski <k.debski@samsung.com>

Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>

> ---
>  drivers/media/platform/s5p-mfc/s5p_mfc_dec.c |   10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
> index a4e6668..ac43a4a 100644
> --- a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
> +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
> @@ -32,9 +32,6 @@
>  #include "s5p_mfc_opr.h"
>  #include "s5p_mfc_pm.h"
>  
> -#define DEF_SRC_FMT_DEC	V4L2_PIX_FMT_H264
> -#define DEF_DST_FMT_DEC	V4L2_PIX_FMT_NV12MT_16X16
> -
>  static struct s5p_mfc_fmt formats[] = {
>  	{
>  		.name		= "4:2:0 2 Planes 16x16 Tiles",
> @@ -1190,9 +1187,12 @@ void s5p_mfc_dec_ctrls_delete(struct s5p_mfc_ctx *ctx)
>  void s5p_mfc_dec_init(struct s5p_mfc_ctx *ctx)
>  {
>  	struct v4l2_format f;
> -	f.fmt.pix_mp.pixelformat = DEF_SRC_FMT_DEC;
> +	f.fmt.pix_mp.pixelformat = V4L2_PIX_FMT_H264;
>  	ctx->src_fmt = find_format(&f, MFC_FMT_DEC);
> -	f.fmt.pix_mp.pixelformat = DEF_DST_FMT_DEC;
> +	if (IS_MFCV6_PLUS(ctx->dev))
> +		f.fmt.pix_mp.pixelformat = V4L2_PIX_FMT_NV12MT_16X16;
> +	else
> +		f.fmt.pix_mp.pixelformat = V4L2_PIX_FMT_NV12MT;
>  	ctx->dst_fmt = find_format(&f, MFC_FMT_RAW);
>  	mfc_debug(2, "Default src_fmt is %x, dest_fmt is %x\n",
>  			(unsigned int)ctx->src_fmt, (unsigned int)ctx->dst_fmt);
> 


-- 
Sylwester Nawrocki
Samsung R&D Institute Poland

      parent reply	other threads:[~2014-05-19  8:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-16 12:03 [PATCH 1/2] v4l: s5p-mfc: Fix default pixel format selection for decoder Kamil Debski
2014-05-16 12:03 ` [PATCH 2/2] v4l: s5p-mfc: Limit enum_fmt to output formats of current version Kamil Debski
2014-05-19  9:06   ` Sylwester Nawrocki
2014-05-19 11:18   ` Arun Kumar K
2014-05-20  1:47   ` Pawel Osciak
2014-05-20 10:03     ` Kamil Debski
2014-05-19  8:57 ` Sylwester Nawrocki [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=5379C797.1080508@samsung.com \
    --to=s.nawrocki@samsung.com \
    --cc=arun.kk@samsung.com \
    --cc=k.debski@samsung.com \
    --cc=linux-media@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.