mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-12 23:09:45 +03:00
test: v4l2_m2mdevice: Test control enumeration
Verify that the V4L2M2MDevice correctly enumerates controls supported by the device. The test currently fails, and will be fixed by a subsequent patch. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Xavier Roumegue <xavier.roumegue@oss.nxp.com>
This commit is contained in:
parent
dbd937e375
commit
2cc5654633
1 changed files with 5 additions and 0 deletions
|
@ -95,6 +95,11 @@ protected:
|
|||
V4L2VideoDevice *capture = vim2m_->capture();
|
||||
V4L2VideoDevice *output = vim2m_->output();
|
||||
|
||||
if (capture->controls().empty() || output->controls().empty()) {
|
||||
cerr << "VIM2M device has no control" << endl;
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
V4L2DeviceFormat format = {};
|
||||
if (capture->getFormat(&format)) {
|
||||
cerr << "Failed to get capture format" << endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue