From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: linux-media@vger.kernel.org
Cc: laurent.pinchart@ideasonboard.com
Subject: [PATCH 1/1] yavta: Set plane size for mplane buffers in qbuf
Date: Mon, 15 Dec 2014 17:27:44 +0200 [thread overview]
Message-ID: <1418657264-20388-1-git-send-email-sakari.ailus@linux.intel.com> (raw)
The plane size was left zero for mplane buffers when queueing a buffer. Fix
this.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
yavta.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/yavta.c b/yavta.c
index 7f9e814..77e5a41 100644
--- a/yavta.c
+++ b/yavta.c
@@ -979,8 +979,12 @@ static int video_queue_buffer(struct device *dev, int index, enum buffer_fill_mo
if (dev->memtype == V4L2_MEMORY_USERPTR) {
if (video_is_mplane(dev)) {
- for (i = 0; i < dev->num_planes; i++)
- buf.m.planes[i].m.userptr = (unsigned long)dev->buffers[index].mem[i];
+ for (i = 0; i < dev->num_planes; i++) {
+ buf.m.planes[i].m.userptr = (unsigned long)
+ dev->buffers[index].mem[i];
+ buf.m.planes[i].length =
+ dev->buffers[index].size[i];
+ }
} else {
buf.m.userptr = (unsigned long)dev->buffers[index].mem[0];
}
--
2.1.0.231.g7484e3b
next reply other threads:[~2014-12-15 15:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-15 15:27 Sakari Ailus [this message]
2014-12-15 16:31 ` [PATCH 1/1] yavta: Set plane size for mplane buffers in qbuf Laurent Pinchart
2014-12-15 20:02 ` Sakari Ailus
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=1418657264-20388-1-git-send-email-sakari.ailus@linux.intel.com \
--to=sakari.ailus@linux.intel.com \
--cc=laurent.pinchart@ideasonboard.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox