In current implementstion, driver is checking against _MPLANE buffer
types, but the type field in struct v4l2_selection is supposed to never
use the _MPLANE variants.
The commit
eaec420f530d ("[media] v4l2-ioctl/exynos: fix G/S_SELECTION's
type handling") is converging non-mplane and _MPLANE formats to non-mpalne
formats. This is to allow applications to pass _MPLANE and non-mpalne
buffer types, and the driver only handles the non-mplane formats. Fix
this driver accordingly.
Signed-off-by: Satish Kumar Nagireddy <satish.nagireddy.nagireddy@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
struct xvip_m2m_dma *dma = ctx->xdev->dma;
int ret = 0;
struct xvip_m2m_dma *dma = ctx->xdev->dma;
int ret = 0;
- if (s->type != V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE &&
- s->type != V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE)
+ if (s->type != V4L2_BUF_TYPE_VIDEO_OUTPUT &&
+ s->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
return -EINVAL;
switch (s->target) {
return -EINVAL;
switch (s->target) {
u32 min_width, max_width;
int ret = 0;
u32 min_width, max_width;
int ret = 0;
- if (s->type != V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE &&
- s->type != V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE)
+ if (s->type != V4L2_BUF_TYPE_VIDEO_OUTPUT &&
+ s->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
return -EINVAL;
switch (s->target) {
return -EINVAL;
switch (s->target) {