From: Mauro Carvalho Chehab <m.chehab@samsung.com>
To: Philipp Zabel <p.zabel@pengutronix.de>
Cc: linux-media@vger.kernel.org,
"Kamil Debski" <k.debski@samsung.com>,
"Javier Martin" <javier.martin@vista-silicon.com>,
"Sylwester Nawrocki" <s.nawrocki@samsung.com>,
"Gaëtan Carlier" <gcembed@gmail.com>,
"Wei Yongjun" <weiyj.lk@gmail.com>
Subject: Re: [PATCH v2 1/8] [media] coda: use vb2_set_plane_payload instead of setting v4l2_planes[0].bytesused directly
Date: Fri, 26 Jul 2013 10:02:39 -0300 [thread overview]
Message-ID: <20130726100239.3fa8dee3@samsung.com> (raw)
In-Reply-To: <1371801334-22324-2-git-send-email-p.zabel@pengutronix.de>
Hi Philipp,
Em Fri, 21 Jun 2013 09:55:27 +0200
Philipp Zabel <p.zabel@pengutronix.de> escreveu:
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Please provide a description of the patch.
Thanks!
Mauro
> ---
> drivers/media/platform/coda.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c
> index c4566c4..90f3386 100644
> --- a/drivers/media/platform/coda.c
> +++ b/drivers/media/platform/coda.c
> @@ -1662,12 +1662,12 @@ static irqreturn_t coda_irq_handler(int irq, void *data)
> wr_ptr = coda_read(dev, CODA_REG_BIT_WR_PTR(ctx->idx));
> /* Calculate bytesused field */
> if (dst_buf->v4l2_buf.sequence == 0) {
> - dst_buf->v4l2_planes[0].bytesused = (wr_ptr - start_ptr) +
> - ctx->vpu_header_size[0] +
> - ctx->vpu_header_size[1] +
> - ctx->vpu_header_size[2];
> + vb2_set_plane_payload(dst_buf, 0, wr_ptr - start_ptr +
> + ctx->vpu_header_size[0] +
> + ctx->vpu_header_size[1] +
> + ctx->vpu_header_size[2]);
> } else {
> - dst_buf->v4l2_planes[0].bytesused = (wr_ptr - start_ptr);
> + vb2_set_plane_payload(dst_buf, 0, wr_ptr - start_ptr);
> }
>
> v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, "frame size = %u\n",
--
Cheers,
Mauro
next prev parent reply other threads:[~2013-07-26 13:02 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-21 7:55 [PATCH v2 0/8] CODA7541 decoding support Philipp Zabel
2013-06-21 7:55 ` [PATCH v2 1/8] [media] coda: use vb2_set_plane_payload instead of setting v4l2_planes[0].bytesused directly Philipp Zabel
2013-07-26 13:02 ` Mauro Carvalho Chehab [this message]
2013-07-26 13:22 ` Philipp Zabel
2013-06-21 7:55 ` [PATCH v2 2/8] [media] coda: dynamic IRAM setup for encoder Philipp Zabel
2013-06-21 7:55 ` [PATCH v2 3/8] [media] coda: do not allocate maximum number of framebuffers " Philipp Zabel
2013-06-21 7:55 ` [PATCH v2 4/8] [media] coda: update CODA7541 to firmware 1.4.50 Philipp Zabel
2013-06-21 7:55 ` [PATCH v2 5/8] [media] coda: add bitstream ringbuffer handling for decoder Philipp Zabel
2013-06-21 7:55 ` [PATCH v2 6/8] [media] coda: dynamic IRAM setup " Philipp Zabel
2013-07-26 15:18 ` Mauro Carvalho Chehab
2013-07-29 12:30 ` Philipp Zabel
2013-06-21 7:55 ` [PATCH v2 7/8] [media] coda: split encoder specific parts out of device_run and irq_handler Philipp Zabel
2013-06-21 7:55 ` [PATCH v2 8/8] [media] coda: add CODA7541 decoding support Philipp Zabel
2013-06-27 10:10 ` Kamil Debski
2013-06-27 14:19 ` Philipp Zabel
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=20130726100239.3fa8dee3@samsung.com \
--to=m.chehab@samsung.com \
--cc=gcembed@gmail.com \
--cc=javier.martin@vista-silicon.com \
--cc=k.debski@samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=s.nawrocki@samsung.com \
--cc=weiyj.lk@gmail.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