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>
Thu, 7 Aug 2014 05:26:49 +0000 (14:26 +0900)
commit9e6c8fa9716faf9602dc67b082c63b0e6fbe108e
treee56ddd7a69f46f9837cc4adc6a970b00cc1c3b1d
parent9a99364d22f0600d90e0657e1dc48535740753e7
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