Mauro Carvalho Chehab [Fri, 14 Dec 2012 17:04:18 +0000 (15:04 -0200)]
keytable: reorder functions to put similar code together
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Fri, 14 Dec 2012 17:02:27 +0000 (15:02 -0200)]
keytable: merge two identical structures into one
While here, better name the event structures.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Fri, 14 Dec 2012 16:00:23 +0000 (14:00 -0200)]
ir-keytable: Add support for testing EV_ABS events
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans Verkuil [Fri, 14 Dec 2012 13:05:20 +0000 (14:05 +0100)]
qv4l2: add support for control events.
qv4l2 can now handle control events, ensuring that control changes done
from another application (e.g. v4l2-ctl) will appear in qv4l2 as well.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 14 Dec 2012 11:37:42 +0000 (12:37 +0100)]
qv4l2: add missing information for string and integer controls
The setWhat() method didn't report all the control information for string
and integer controls.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Gregor Jasny [Sun, 9 Dec 2012 12:32:20 +0000 (13:32 +0100)]
Prepare for 0.9.3 release
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Sat, 8 Dec 2012 18:35:26 +0000 (19:35 +0100)]
v4l-compliance: Work around missing ENODATA on (k)FreeBSD
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Hans Verkuil [Thu, 6 Dec 2012 17:52:54 +0000 (18:52 +0100)]
v4l2-ctl: --list-buffers didn't work for multiplanar formats.
buf.length was set to 0 instead of VIDEO_MAX_PLANES with the result
that nothing was printed.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 6 Dec 2012 11:07:17 +0000 (12:07 +0100)]
v4l-utils/utils: fix bug in parse_subopt()
The parse_subopt function did a wrong NULL check, which could cause an
application crash if the sub-option wasn't specified.
This function is used in rds-ctl, v4l2-ctl and v4l2-dbg and is now fixed
in all three.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 5 Dec 2012 10:00:36 +0000 (11:00 +0100)]
v4l2-compliance: add test whether V4L2_MEMORY_DMABUF is supported.
Also add VIDIOC_EXPBUF to the TODO list, since we don't have a test
for that yet.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 5 Dec 2012 09:48:13 +0000 (10:48 +0100)]
ioctl-test: add the new EXPBUF ioctl.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 5 Dec 2012 09:41:47 +0000 (10:41 +0100)]
v4l-utils: sync with latest kernel headers.
I had to make quite a few changes due to the introduction of the uapi
directory, lots of paths had to be changed.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Patrick Boettcher [Mon, 3 Dec 2012 09:05:04 +0000 (10:05 +0100)]
parse_tcpdump_log.pl: add option to filter transfers for certain devices
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Patrick Boettcher [Mon, 3 Dec 2012 08:59:06 +0000 (09:59 +0100)]
parse_tcpdump_log.pl: fix grammar
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Patrick Boettcher [Mon, 3 Dec 2012 09:01:04 +0000 (10:01 +0100)]
parse_tcpdump_log.pl: bail out if header is not valid
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans Verkuil [Mon, 3 Dec 2012 10:14:50 +0000 (11:14 +0100)]
v4l2-ctl: remove unused tuner_list() function.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Mauro Carvalho Chehab [Sun, 2 Dec 2012 12:56:48 +0000 (10:56 -0200)]
parse_tcpdump_log.pl: use autoflush
Use perl autoflush mode. This speeds up parsing, when this script
is piped to another one, like:
./parse_tcpdump_log.pl --device usbmon2 | ./parse_foo.pl
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 1 Dec 2012 17:44:25 +0000 (15:44 -0200)]
parse_tcpdump_log.pl: add an option to list the usbmon devices
Adds a routine to list the connected USB devices, and their
associated usbmon ports.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Gregor Jasny [Fri, 30 Nov 2012 23:53:38 +0000 (00:53 +0100)]
Prepare for 0.9.2 release
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Fri, 30 Nov 2012 23:28:13 +0000 (00:28 +0100)]
libv4l-mplane: Use HAVE_VISIBILITY as condition for visibility attribute
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Fri, 30 Nov 2012 23:09:28 +0000 (00:09 +0100)]
libv4l-mplane: Convert target to build as plugin only
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Fri, 30 Nov 2012 22:41:55 +0000 (23:41 +0100)]
libv4l-mplane: Drop libv4l-mplane.pc
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Fri, 30 Nov 2012 22:35:18 +0000 (23:35 +0100)]
libv4l-mplane: replace libdir with libv4l2plugindir
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Fri, 30 Nov 2012 23:12:27 +0000 (00:12 +0100)]
v4l2gl: Git-ignore v4l2gl binary
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Mauro Carvalho Chehab [Fri, 30 Nov 2012 21:57:09 +0000 (19:57 -0200)]
v4l2gl: remove a bogus comment
This was added by mistake.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Fri, 30 Nov 2012 21:13:37 +0000 (19:13 -0200)]
contrib/test: Add a GL test application
This test application is a fork of v4l2grab.
This small application sets a RGB24 texture and uses it to display
the video contents.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 24 Nov 2012 21:54:40 +0000 (19:54 -0200)]
libv4l-mplane: Properly convert all returned fields for *BUF
Not all fields were converted back to the non-MPLANE struct. Convert them,
as otherwise userspace may fail.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 24 Nov 2012 11:57:57 +0000 (09:57 -0200)]
Add a libv4l plugin for mplane handling
Devices with only mplane buffer types require some special conversion,
in order to be able to be used by standard applications. Add a libv4l
plugin to handle it.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans Verkuil [Fri, 23 Nov 2012 13:28:20 +0000 (14:28 +0100)]
v4l2-ctl: load initial frames from the file as well.
When streaming to output v4l2-ctl would load the initial frames with a colorbar,
even though a file was specified. Fill those initial frames from the file as well.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 23 Nov 2012 13:14:57 +0000 (14:14 +0100)]
v4l2-ctl: add --stream-loop for streaming to an output.
When streaming from a file to an output it can be useful to loop the file
when the end is reached. Add the --stream-off option to do that.
Also improve the code to stop when a partial frame is read instead of pointlessly
trying to read data from the filehandle even if there isn't any.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 22 Nov 2012 11:53:47 +0000 (12:53 +0100)]
v4l2-ctl: zero bytesperline.
Some drivers allow applications to set bytesperline to a value larger than
the minimum necessary. This makes it possible to specify additional padding.
However, v4l2-ctl does a G_FMT before setting a new format, and currently it
doesn't reset bytesperline. So if the old format was 1920x1080, and you switch
to 1280x720, then bytesperline will still be at the old 1920 value.
This patch ensures that bytesperline is reset to 0 before calling S_FMT, thus
overwriting any old bytesperline values.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Frank Schäfer [Sun, 21 Oct 2012 16:58:42 +0000 (19:58 +0300)]
libv4lconvert: clarify the behavior and resulting restrictions of v4lconvert_convert()
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Antonio Ospite [Wed, 10 Oct 2012 12:39:22 +0000 (09:39 -0300)]
m920x_parse.pl: add support for consuming the output of parse-sniffusb2.pl
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Antonio Ospite [Wed, 10 Oct 2012 12:39:21 +0000 (09:39 -0300)]
m920x_parse.pl: fix strict and warnings checks
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Antonio Ospite [Wed, 10 Oct 2012 12:39:20 +0000 (09:39 -0300)]
m920x_parse.pl: use string comparison operators
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Aapo Tahkola [Wed, 10 Oct 2012 12:39:19 +0000 (09:39 -0300)]
contrib: add a script to convert usbmon captures to usbsnoop
This makes it possible to reuse tools written for usbsnoop with captures
done using a virtual machine and usbmon.
Signed-off-by: Aapo Tahkola <aet@rasterburn.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Aapo Tahkola [Wed, 10 Oct 2012 12:39:18 +0000 (09:39 -0300)]
contrib: add some scripts to extract m920x firmwares from USB dumps
Signed-off-by: Aapo Tahkola <aet@rasterburn.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Gregor Jasny [Sun, 14 Oct 2012 17:37:51 +0000 (19:37 +0200)]
buildsystem: simplify directory and feature setting
See: http://www.flameeyes.eu/autotools-mythbuster/
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Sun, 14 Oct 2012 12:59:21 +0000 (14:59 +0200)]
buildsystem: Query Qt rcc tool location and fall back to rcc if not available (like on RHEL5)
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Sun, 14 Oct 2012 12:41:09 +0000 (14:41 +0200)]
buildsystem: query udev directory via pkg-config
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Sun, 14 Oct 2012 12:14:26 +0000 (14:14 +0200)]
buildsystem: tightened EXTRA_DIST rules
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Sun, 14 Oct 2012 11:48:37 +0000 (13:48 +0200)]
buildsystem: Generate Makefile in lib and utils dir, too
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Sun, 14 Oct 2012 11:11:22 +0000 (13:11 +0200)]
contrib/test: exclude from install
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Sun, 14 Oct 2012 10:34:23 +0000 (12:34 +0200)]
Extended ChangeLog
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Tue, 9 Oct 2012 17:44:14 +0000 (19:44 +0200)]
Prepare for 0.8.8 release
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Tue, 9 Oct 2012 17:48:50 +0000 (19:48 +0200)]
libdvbv5: Fix header location
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Tue, 9 Oct 2012 17:43:33 +0000 (19:43 +0200)]
Preliminary ChangeLog update
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Mon, 8 Oct 2012 19:20:01 +0000 (21:20 +0200)]
(k)FreeBSD: Fix videodev2 header
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Mauro Carvalho Chehab [Mon, 8 Oct 2012 01:14:16 +0000 (22:14 -0300)]
rc_keymaps: Sync it with the Kernel drivers
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Mon, 8 Oct 2012 01:13:29 +0000 (22:13 -0300)]
gen_keytables.pl: Some keytables have mouse buttons
Update the script to not fail when a button is found.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Gregor Jasny [Sun, 7 Oct 2012 16:53:52 +0000 (18:53 +0200)]
buildsystem: Easse cross compiling on Debian derivates
Debian based libtool packages suffer from a cross compiling problem
where the rpaths are not picked up properly. See:
- https://bugs.lttng.org/issues/321
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=297726
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Sun, 7 Oct 2012 16:33:57 +0000 (18:33 +0200)]
(k)FreeBSD: Sync also new v4l2-common.h and v4l2-controls.h headers
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Konke Radlow [Sat, 6 Oct 2012 10:29:19 +0000 (12:29 +0200)]
rds-ctl.cpp: add a default value for the wait_limit for RDS-Data
Signed-off-by: Konke Radlow <koradlow@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Gregor Jasny [Sat, 6 Oct 2012 11:38:52 +0000 (13:38 +0200)]
Ran make sync-with-kernel and updated everything.
Sync point: staging/for_v3.7 78a0b06
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Mon, 1 Oct 2012 18:46:48 +0000 (20:46 +0200)]
libv4lcontrol: Add Fujitsu Lifebook NH77/ED to upside down table
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Hans Verkuil [Mon, 1 Oct 2012 08:54:44 +0000 (10:54 +0200)]
v4l2-compliance: Add checks for ENODATA when settings/getting timings.
ENODATA should be returned if the API used for getting, changing, querying
or enumerating the current video timings is not supported by the current input
or output.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 1 Oct 2012 08:44:41 +0000 (10:44 +0200)]
v4l2-compliance: prohibit the use of V4L2_BUF_TYPE_PRIVATE.
It is no longer allowed to use this buffer type.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 1 Oct 2012 08:38:38 +0000 (10:38 +0200)]
v4l2-compliance: mark non-NULL priv as an error.
Although the spec allows the priv field of v4l2_pix_format to be non-NULL,
in practice this is almost certainly an error. There should be no reason for
drivers to actually use this field.
We probably should look at changing the spec, possibly freeing up at least one
field for other use.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 1 Oct 2012 08:35:54 +0000 (10:35 +0200)]
v4l2-compliance: prohibit multi and single plane caps
Either multiplanar caps should be used or single planar, but not both.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Gregor Jasny [Sun, 30 Sep 2012 17:59:05 +0000 (19:59 +0200)]
libv4l: Symlink wrapper libraries to libdir
The curent approach to install the wrapper libraries into a @prefix@/lib/
subdirectory has the downside that the user has to specify the full path
for preloading. Finding out the correct path is sometimes not that easy,
especially if crossarch or multiarch are involved.
With that commit a symlink is created and the loader should pick the
suitable library itself.
From now on it should be enough to run "LD_PRELOAD=v4l2convert.so vlc"
instead of specifying the full path.
I chose symlinks to the private dir and not the other way round to make
the wrappers co-installable across multiple SONAME generations.
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Gregor Jasny [Sun, 30 Sep 2012 17:35:00 +0000 (19:35 +0200)]
Add basic cross compiling instructions
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Hans Verkuil [Thu, 27 Sep 2012 14:15:16 +0000 (16:15 +0200)]
v4l2-ctl: add support for streaming mplane formats.
v4l2-ctl is now able to stream multiplanar formats.
However, this depends on a bugfix in vb2 with respect to how QUERYBUF
handles the length field in v4l2_buffer. That fix hasn't been merged
yet, though.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 27 Sep 2012 09:05:16 +0000 (11:05 +0200)]
v4l2-compliance: 'platform:' is a valid prefix as well.
Non-bus drivers need the prefix 'platform:'.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 27 Sep 2012 07:17:52 +0000 (09:17 +0200)]
Rename V4L2_IN/OUT_CAP_CUSTOM_TIMINGS to V4L2_IN/OUT_CAP_DV_TIMINGS
The _CUSTOM_TIMINGS name is deprecated and will be removed in the future,
so replace it with the new _DV_TIMINGS name in the code.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 27 Sep 2012 07:14:01 +0000 (09:14 +0200)]
Ran make sync-with-kernel and updated everything.
Fixed a number of incorrect paths after the reorg as well.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 27 Sep 2012 07:00:57 +0000 (09:00 +0200)]
Sync to latest videodev2.h and v4l2-controls.h headers.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 26 Sep 2012 11:40:25 +0000 (13:40 +0200)]
v4l2-ctl/rds-ctl: fix --silent handling.
v4l2-ctl mentioned --silent in the usage text, but did not actually add
the option, and rds-ctl added the option, but didn't mention it in the
usage text.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 19 Sep 2012 07:37:20 +0000 (09:37 +0200)]
v4l2-compliance: fix incorrect string compare.
OptSilent should be turned on when streaming to stdout. Unfortunately
the test for filename '-' (== stdout) was wrong, causing it to be turned
on when *not* streaming to stdout.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Tue, 18 Sep 2012 13:44:28 +0000 (15:44 +0200)]
v4l2-ctl: print format after a TRY_FMT ioctl.
The only reason to use a try_fmt ioctl is to see what format will be
chosen, so always print the format in this case instead of only when
the verbose flag is set.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 13 Sep 2012 15:37:07 +0000 (17:37 +0200)]
v4l2-compliance: add hw_freq_seek test for invalid tuner.
Add a test for VIDIOC_S_HW_FREQ_SEEK to verify that selecting an invalid
tuner will return an error.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 12 Sep 2012 15:04:28 +0000 (17:04 +0200)]
v4l2-compliance: add first simple QUERYBUF tests.
These test just check whether QUERYBUF can be called after REQBUFS
or CREATE_BUFS.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 12 Sep 2012 11:16:12 +0000 (13:16 +0200)]
v4l2-compliance: add new test to verify if the format is really global.
When you change the format using VIDIOC_S_FMT and then read back the
format with VIDIOC_G_FMT on another filehandle then the two formats
should match, except for M2M devices where the format is actually
per-filehandle.
Many older drivers store the format in the filehandle, which is wrong.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Tue, 11 Sep 2012 10:05:25 +0000 (12:05 +0200)]
v4l2-compliance: fix V4L2_CAP_AUDIO check.
This test never worked correctly due to a wrong if condition.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Tue, 11 Sep 2012 09:15:18 +0000 (11:15 +0200)]
v4l2-compliance: check that VIDIOC_TRY_EXT_CTRLS can be called with count == 0
The spec explicitly states that VIDIOC_TRY_EXT_CTRLS with a count of 0
should be used to test for valid control classes. Test this.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 10 Sep 2012 17:30:33 +0000 (19:30 +0200)]
v4l2-compliance: zero some v4l2_window field for TRY_FMT.
For overlays the clip, clipcount and bitmap fields should be zeroed
to prevent EFAULT errors when the struct contents is set to 0xff.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans de Goede [Sun, 9 Sep 2012 21:29:24 +0000 (23:29 +0200)]
libv4lconvert: Add 1ae7:2001 to list of pac7302 cams
Reported-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Frank Schäfer [Sun, 9 Sep 2012 18:36:06 +0000 (20:36 +0200)]
libv4lconvert: fix format of the error messages concerning jpeg frame size mismatch
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Gregor Jasny [Tue, 21 Aug 2012 06:46:31 +0000 (23:46 -0700)]
libdvbv5: Fix byte swapping for embedded toolchains
Reported-by: "Lad, Prabhakar" <prabhakar.lad@ti.com>
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Hans Verkuil [Sun, 9 Sep 2012 08:30:53 +0000 (10:30 +0200)]
v4l2-ctl: fix standard parsing.
The standard parsing code wasn't case insensitive and it also didn't
give an error if it couldn't parse the standard.
So pal-60 would work while PAL-60 would silently fail to parse and give
a bogus standard mask.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 7 Sep 2012 15:52:13 +0000 (17:52 +0200)]
v4l2-compliance: make bus_info tests more precise.
An empty bus_info will now fail, and the bus_info must be formatted according
to specific rules.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 5 Sep 2012 15:29:47 +0000 (17:29 +0200)]
v4l2-compliance: do the read/write tests in non-blocking mode.
Many devices will block when trying to read from it if e.g. there is no
valid channel or video signal present. So do this test in non-blocking mode.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 5 Sep 2012 13:33:38 +0000 (15:33 +0200)]
v4l2-compliance: fix VIDIOC_G_SLICED_VBI_CAP tests.
The return value checks were incorrect.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 3 Sep 2012 14:36:54 +0000 (16:36 +0200)]
v4l2-compliance: Not Supported -> OK (Not Supported)
The 'Not Supported' result was confusing: this is not an error, it
just says that the tested API is not implemented in the driver, and that's
OK since that API is optional.
Renaming this to 'OK (Not Supported)' should clarify this result.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Sun, 26 Aug 2012 17:43:10 +0000 (10:43 -0700)]
v4l2-ctl/rds-ctl: fix tuner capabilities list
v4l2-ctl was missing some RDS caps and rds-ctl did have those caps, but printed
it with spaces instead of dashes, making it hard to read.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Sun, 26 Aug 2012 17:30:40 +0000 (10:30 -0700)]
rds-ctl: fix wrong device name in usage text.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 24 Aug 2012 10:11:28 +0000 (12:11 +0200)]
rds-ctl: add --rbds option.
Added a new rbds option to select RBDS decoding instead of the default RDS
decoding. Note that this also fixes a bug where RBDS decoding was the
default.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
CC: Konke Radlow <koradlow@gmail.com>
Hans Verkuil [Fri, 24 Aug 2012 10:11:09 +0000 (12:11 +0200)]
libv4l2rds.h: fix typo.
is_rdbs -> is_rbds
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
CC: Konke Radlow <koradlow@gmail.com>
Hans Verkuil [Wed, 22 Aug 2012 09:07:12 +0000 (11:07 +0200)]
v4l2-compliance: add VIDIOC_G_ENC_INDEX test.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Tue, 21 Aug 2012 14:33:22 +0000 (16:33 +0200)]
v4l2-compliance: add VIDIOC_(TRY_)DECODER_CMD tests.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Tue, 21 Aug 2012 14:17:34 +0000 (16:17 +0200)]
v4l2-compliance: add tests for VIDIOC_(TRY_)ENCODER_CMD.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Mauro Carvalho Chehab [Mon, 20 Aug 2012 01:52:21 +0000 (22:52 -0300)]
dvb: Whitespace cleanup
No functional changes. Just remove bad whitespacing.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Mon, 20 Aug 2012 01:51:17 +0000 (22:51 -0300)]
libdvbv5: Add a few missing handlers for ATSC-MH
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 19 Aug 2012 22:26:08 +0000 (19:26 -0300)]
dvbv5-scan: Cleanup print_frontend_stats() printf logic
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 19 Aug 2012 19:46:22 +0000 (16:46 -0300)]
dvb-file: Fix error message for some unknown file formats
This also solves a bug when parsing ATSC tables.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 19 Aug 2012 17:47:55 +0000 (14:47 -0300)]
dvbv5-zap, dvbv5-scan: Improve error status logic
Only display stats when the frontend is returning values for
them.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 19 Aug 2012 17:46:48 +0000 (14:46 -0300)]
libdvbv5/dvb-fe: Fix return code
Return 0 if no error; errorno otherwise.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 19 Aug 2012 16:55:03 +0000 (13:55 -0300)]
dvbv5-zap: get rid of human_readable parameter
This is not really "human readable", as the stats measure units
are not known, due to a DVB API deficiency. Just get rid of it,
as we'll be improving this status routine.
Also, instead of scrolling, just print status on a single line,
after locking.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 19 Aug 2012 16:50:12 +0000 (13:50 -0300)]
libdvbv5: Check if the stats is valid and return it to userspace
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 19 Aug 2012 13:40:05 +0000 (10:40 -0300)]
dvbv5-zap: send prints to stderr
As the output of dvbv5-zap could be redirected, send prints
to stderr.
While here, also prints if the audio pid were filtered, if not in
quiet mode, in order to do the same thing as with the video pid.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans Verkuil [Fri, 17 Aug 2012 08:36:03 +0000 (10:36 +0200)]
v4l2-compliance: update fixme.txt file.
Several issues in this list have been resolved, so update the file
accordingly.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>