summaryrefslogtreecommitdiff
path: root/v4l2-apps/util/qv4l2/general-tab.cpp
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-01-05 18:53:47 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-05 18:53:47 -0200
commitfcb54f0fe6b8b57da03ef141b114f7c7be226dfd (patch)
treecac1c5245486aecf953562a7ab4bf1184f4a5bcd /v4l2-apps/util/qv4l2/general-tab.cpp
parentf6446935a2e144e7f845a951e80a9bf2d313ffda (diff)
parent76a1e5c0858e7b49c63708f044276f5142534b4b (diff)
downloadmediapointer-dvb-s2-fcb54f0fe6b8b57da03ef141b114f7c7be226dfd.tar.gz
mediapointer-dvb-s2-fcb54f0fe6b8b57da03ef141b114f7c7be226dfd.tar.bz2
merge: http://linuxtv.org/hg/~mkrufky/tda18271c2
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l2-apps/util/qv4l2/general-tab.cpp')
-rw-r--r--v4l2-apps/util/qv4l2/general-tab.cpp24
1 files changed, 23 insertions, 1 deletions
diff --git a/v4l2-apps/util/qv4l2/general-tab.cpp b/v4l2-apps/util/qv4l2/general-tab.cpp
index 93ab329ba..d7f5a98d2 100644
--- a/v4l2-apps/util/qv4l2/general-tab.cpp
+++ b/v4l2-apps/util/qv4l2/general-tab.cpp
@@ -31,7 +31,7 @@
#include <sys/ioctl.h>
#include <errno.h>
-GeneralTab::GeneralTab(int _fd, int n, QWidget *parent) :
+GeneralTab::GeneralTab(const char *device, int _fd, int n, QWidget *parent) :
QGrid(n, parent),
fd(_fd)
{
@@ -39,6 +39,28 @@ GeneralTab::GeneralTab(int _fd, int n, QWidget *parent) :
setSpacing(3);
+ memset(&querycap, 0, sizeof(querycap));
+ if (ioctl(fd, VIDIOC_QUERYCAP, &querycap) >=0) {
+ QLabel *l1 = new QLabel("Device:", this);
+ QLabel *l1t = new QLabel(device, this);
+ l1->setAlignment(Qt::AlignRight);
+
+ QLabel *l2 = new QLabel("Driver:", this);
+ l2->setAlignment(Qt::AlignRight);
+
+ QLabel *l2t = new QLabel((char *)querycap.driver, this);
+
+ QLabel *l3 = new QLabel("Card:", this);
+ l3->setAlignment(Qt::AlignRight);
+
+ QLabel *l3t = new QLabel((char *)querycap.card, this);
+
+ QLabel *l4 = new QLabel("Bus:", this);
+ l4->setAlignment(Qt::AlignRight);
+
+ QLabel *l4t = new QLabel((char *)querycap.bus_info, this);
+ }
+
memset(&tuner, 0, sizeof(tuner));
ioctl(fd, VIDIOC_G_TUNER, &tuner);
if (tuner.rangehigh>INT_MAX)