From: Philipp Zabel
Date: Wed, 29 Aug 2012 11:22:00 +0000 (-0300)
Subject: [media] media: coda: set up buffers to be sized as negotiated with s_fmt
X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~3^2^2~124
X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e34db0661dc7945e5412a568f38dd170c78099d1;p=pandora-kernel.git
[media] media: coda: set up buffers to be sized as negotiated with s_fmt
This fixes a failure in vb2_qbuf in user pointer mode where
__qbuf_userptr checks if the buffer queued by userspace is large
enough. The failure would happen if coda_queue_setup was called
with empty fmt (and thus set the expected buffer size to the maximum
resolution), and userspace queues buffers of smaller size -
corresponding to the negotiated dimensions - were queued.
Explicitly setting sizeimage to the value negotiated via s_fmt
fixes the issue.
Signed-off-by: Philipp Zabel
Acked-by: Javier Martin
Signed-off-by: Mauro Carvalho Chehab
---
Reading git-diff-tree failed