[media] vb2: reject output buffers with V4L2_FIELD_ALTERNATE
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 7 Apr 2014 12:20:39 +0000 (09:20 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 16 Apr 2014 21:46:35 +0000 (18:46 -0300)
commite35e41b57624b9a8c0014420cdfb24454e4773c5
tree6e00a462572fd2aaf9575fd7dadbead65a0b5541
parentebd7c50510f4b56285bb9fb4ba56a501c9c8f7df
[media] vb2: reject output buffers with V4L2_FIELD_ALTERNATE

This is not allowed by the spec and does in fact not make any sense.
Return -EINVAL if this is the case.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Pawel Osciak <pawel@osciak.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