* [PATCH] v4l2-compliance: Allow all the selection targets for subdevs
@ 2019-10-24 8:43 Ricardo Ribalda Delgado
0 siblings, 0 replies; only message in thread
From: Ricardo Ribalda Delgado @ 2019-10-24 8:43 UTC (permalink / raw)
To: hverkuil-cisco, sakari.ailus, linux-media, linux-kernel
Cc: Ricardo Ribalda Delgado
Subdev can also have non-active pixels, and using the _DEFAULT targets
we can capture only the active pixels.
Signed-off-by: Ricardo Ribalda Delgado <ribalda@kernel.org>
---
utils/v4l2-compliance/v4l2-test-subdevs.cpp | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/utils/v4l2-compliance/v4l2-test-subdevs.cpp b/utils/v4l2-compliance/v4l2-test-subdevs.cpp
index 29987b31..e4923180 100644
--- a/utils/v4l2-compliance/v4l2-test-subdevs.cpp
+++ b/utils/v4l2-compliance/v4l2-test-subdevs.cpp
@@ -388,20 +388,19 @@ int testSubDevFormat(struct node *node, unsigned which, unsigned pad)
struct target_info {
__u32 target;
- bool allowed;
bool readonly;
bool found;
};
static target_info targets[] = {
- { V4L2_SEL_TGT_CROP, true },
- { V4L2_SEL_TGT_CROP_DEFAULT, false, true },
- { V4L2_SEL_TGT_CROP_BOUNDS, true, true },
- { V4L2_SEL_TGT_NATIVE_SIZE, true },
- { V4L2_SEL_TGT_COMPOSE, true },
- { V4L2_SEL_TGT_COMPOSE_DEFAULT, false, true },
- { V4L2_SEL_TGT_COMPOSE_BOUNDS, true, true },
- { V4L2_SEL_TGT_COMPOSE_PADDED, false, true },
+ { V4L2_SEL_TGT_CROP },
+ { V4L2_SEL_TGT_CROP_DEFAULT, true },
+ { V4L2_SEL_TGT_CROP_BOUNDS, true },
+ { V4L2_SEL_TGT_NATIVE_SIZE },
+ { V4L2_SEL_TGT_COMPOSE },
+ { V4L2_SEL_TGT_COMPOSE_DEFAULT, true },
+ { V4L2_SEL_TGT_COMPOSE_BOUNDS, true },
+ { V4L2_SEL_TGT_COMPOSE_PADDED, true },
{ ~0U },
};
@@ -447,7 +446,6 @@ int testSubDevSelection(struct node *node, unsigned which, unsigned pad)
if (ret)
continue;
have_sel = true;
- fail_on_test(!targets[tgt].allowed);
fail_on_test(check_0(sel.reserved, sizeof(sel.reserved)));
fail_on_test(sel.which != which);
fail_on_test(sel.pad != pad);
--
2.23.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-24 8:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-24 8:43 [PATCH] v4l2-compliance: Allow all the selection targets for subdevs Ricardo Ribalda Delgado
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome