From: Kamil Debski <k.debski@samsung.com>
To: 'Andrzej Hajda' <a.hajda@samsung.com>,
'Seung-Woo Kim' <sw0312.kim@samsung.com>,
linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org,
mchehab@osg.samsung.com
Cc: m.szyprowski@samsung.com, s.nawrocki@samsung.com
Subject: RE: [PATCH] s5p-mfc: fix state check from encoder queue_setup
Date: Thu, 20 Aug 2015 12:17:53 +0200 [thread overview]
Message-ID: <001a01d0db31$7a636880$6f2a3980$@samsung.com> (raw)
In-Reply-To: <55D333CF.9000504@samsung.com>
Hi,
> From: Andrzej Hajda [mailto:a.hajda@samsung.com]
> Sent: Tuesday, August 18, 2015 3:32 PM
>
> On 05/13/2015 09:25 AM, Seung-Woo Kim wrote:
> > MFCINST_GOT_INST state is set to encoder context with set_format only
> > for catpure buffer. In queue_setup of encoder called during reqbufs,
> > it is checked MFCINST_GOT_INST state for both capture and output
> > buffer. So this patch fixes to encoder to check MFCINST_GOT_INST state
> > only for capture buffer from queue_setup.
> >
> > Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
>
> Looks OK.
>
> Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Acked-by: Kamil Debski <k.debski@samsung.com>
>
> Regards
> Andrzej
Best wishes,
Kamil Debski
>
>
> > ---
> > drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 9 +++++----
> > 1 files changed, 5 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
> > b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
> > index e65993f..2e57e9f 100644
> > --- a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
> > +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
> > @@ -1819,11 +1819,12 @@ static int s5p_mfc_queue_setup(struct
> vb2_queue *vq,
> > struct s5p_mfc_ctx *ctx = fh_to_ctx(vq->drv_priv);
> > struct s5p_mfc_dev *dev = ctx->dev;
> >
> > - if (ctx->state != MFCINST_GOT_INST) {
> > - mfc_err("inavlid state: %d\n", ctx->state);
> > - return -EINVAL;
> > - }
> > if (vq->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
> > + if (ctx->state != MFCINST_GOT_INST) {
> > + mfc_err("inavlid state: %d\n", ctx->state);
> > + return -EINVAL;
> > + }
> > +
> > if (ctx->dst_fmt)
> > *plane_count = ctx->dst_fmt->num_planes;
> > else
> >
prev parent reply other threads:[~2015-08-20 10:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-13 7:25 [PATCH] s5p-mfc: fix state check from encoder queue_setup Seung-Woo Kim
2015-08-18 13:31 ` Andrzej Hajda
2015-08-20 10:17 ` Kamil Debski [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='001a01d0db31$7a636880$6f2a3980$@samsung.com' \
--to=k.debski@samsung.com \
--cc=a.hajda@samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=mchehab@osg.samsung.com \
--cc=s.nawrocki@samsung.com \
--cc=sw0312.kim@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