upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:59:05 +0000 (11:59 +0900)
commit1e47e0a302f284a1c88144bccb609ff38262fb73
tree08a84023c6a4a93354637928e69c51b5c0550c05
parentf21b3946f79026ae6e70943fb20230474fd1538d
upstream: [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