aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-common.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-common.cpp b/utils/v4l2-ctl/v4l2-ctl-common.cpp
index e68114d..c660d15 100644
--- a/utils/v4l2-ctl/v4l2-ctl-common.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-common.cpp
@@ -224,7 +224,10 @@ static void list_devices()
err = ioctl(fd, MEDIA_IOC_DEVICE_INFO, &mdi);
if (!err) {
- bus_info = mdi.bus_info;
+ if (mdi.bus_info[0])
+ bus_info = mdi.bus_info;
+ else
+ bus_info = std::string("platform:") + mdi.driver;
if (mdi.model[0])
card = mdi.model;
else

Privacy Policy