diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2011-08-24 09:49:35 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-06 18:04:09 (GMT) |
commit | 25a27d91006091e28532053c95fa36b70b79d3ad (patch) | |
tree | 9012e2126e118b5579b149e99320c4e7ccea9ba8 /drivers/media/video/pwc/pwc-if.c | |
parent | c1426bc727b78808fb956f7402b689144c1506ee (diff) | |
download | linux-fsl-qoriq-25a27d91006091e28532053c95fa36b70b79d3ad.tar.xz |
[media] media: vb2: fix handling MAPPED buffer flag
MAPPED flag was set for the buffer only if all it's planes were mapped and
relied on a simple mapping counter. This assumption is really bogus,
especially because the buffers may be mapped multiple times. Also the
meaning of this flag for muliplane buffers was not really useful. This
patch fixes this issue by setting the MAPPED flag for the buffer if any of
it's planes is in use (what means that has been mapped at least once), so
MAPPED flag can be used as 'in_use' indicator.
Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
CC: Pawel Osciak <pawel@osciak.com>
Tested-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pwc/pwc-if.c')
0 files changed, 0 insertions, 0 deletions