[media] vb2: allow read/write as long as the format is single planar
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 11 Apr 2014 07:40:03 +0000 (04:40 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 16 Apr 2014 21:51:58 +0000 (18:51 -0300)
commit7bb6edd37fc2e56297231cc854d7a17e336590db
tree7541ba7ac769c20f05a650d63a69908a22175008
parent74753cffa6fae399aef0f0a1a3315196e6e339cf
[media] vb2: allow read/write as long as the format is single planar

It was impossible to read() or write() a frame if the queue type was multiplanar.
Even if the current format is single planar. Change this to just check whether
the number of planes is 1 or more.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/videobuf2-core.c
This page took 0.02676 seconds and 5 git commands to generate.