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>
Hans Verkuil [Fri, 17 Aug 2012 08:12:40 +0000 (10:12 +0200)]
v4lgrab: fix compiler warning.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 17 Aug 2012 08:11:10 +0000 (10:11 +0200)]
pixfmt-test: fix compiler warning.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 17 Aug 2012 08:07:00 +0000 (10:07 +0200)]
ioctl-test: update to latest ioctls, fix compiler warning.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Konke Radlow [Wed, 15 Aug 2012 14:30:58 +0000 (16:30 +0200)]
Add core TMC (Traffic Message Channel) support
Signed-off-by: Konke Radlow <koradlow@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 13 Aug 2012 14:33:55 +0000 (16:33 +0200)]
v4l2-compliance: improve S_HW_FREQ_SEEK tests.
Allow for valid ENODATA return code.
Improve checks for bounded/wrapped seeks.
Test seek for all tuners.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 13 Aug 2012 07:35:59 +0000 (09:35 +0200)]
rds: update email addresses.
Replace the Cisco email address with the private email address since the
Cisco summer job has finished.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Konke Radlow [Fri, 10 Aug 2012 15:46:26 +0000 (15:46 +0000)]
Add rds-ctl tool
Signed-off-by: Konke Radlow <koradlow@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Konke Radlow [Fri, 10 Aug 2012 15:46:25 +0000 (15:46 +0000)]
Add libv4l2rds library
Signed-off-by: Konke Radlow <koradlow@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
André Roth [Wed, 8 Aug 2012 12:53:17 +0000 (09:53 -0300)]
libdvbv5: descriptor allocation and freeing
Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
André Roth [Wed, 8 Aug 2012 12:53:16 +0000 (09:53 -0300)]
libdvbv5: renamed registration descriptor
Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
André Roth [Fri, 3 Aug 2012 09:26:59 +0000 (06:26 -0300)]
[media] libdvbv5: reworked table allocation/freeing
Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
André Roth [Fri, 3 Aug 2012 09:26:56 +0000 (06:26 -0300)]
[media] libdvbv5: dvb_dmx_open nonblocking
Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
André Roth [Fri, 3 Aug 2012 09:26:58 +0000 (06:26 -0300)]
[media] libdvbv5: added abort flag
Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
André Roth [Fri, 3 Aug 2012 09:26:57 +0000 (06:26 -0300)]
[media] libdvbv5: added dmx stop function
Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
André Roth [Fri, 3 Aug 2012 09:26:55 +0000 (06:26 -0300)]
[media] libdvbv5: allow more options in set_pesfilter
Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
André Roth [Fri, 3 Aug 2012 09:26:54 +0000 (06:26 -0300)]
libdvbv5: EIT parser
Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans Verkuil [Wed, 8 Aug 2012 12:03:53 +0000 (14:03 +0200)]
v4l2-ctl: add output streaming.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 6 Aug 2012 12:31:53 +0000 (14:31 +0200)]
v4l2-ctl: remove support for obsolete vtx and add missing v4l-subdev.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 6 Aug 2012 12:05:54 +0000 (14:05 +0200)]
v4l2-compliance: check that V4L2_CAP_ASYNCIO isn't used.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 3 Aug 2012 13:21:46 +0000 (15:21 +0200)]
v4l2-compliance: add hwseek tuner cap sanity check.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 3 Aug 2012 12:49:49 +0000 (14:49 +0200)]
v4l2-compliance: test frequency band enumeration.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 1 Aug 2012 20:20:45 +0000 (22:20 +0200)]
v4l2-ctl: add support for hwseek seek range.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 1 Aug 2012 19:57:20 +0000 (21:57 +0200)]
v4l2-ctl: add VIDIOC_ENUM_FREQ_BANDS support.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 1 Aug 2012 09:26:26 +0000 (11:26 +0200)]
v4l2-ctl: when streaming show fps.
Very useful when testing.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 1 Aug 2012 07:35:42 +0000 (09:35 +0200)]
v4l2-compliance: add support for M2M(_MPLANE) caps.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 1 Aug 2012 07:33:28 +0000 (09:33 +0200)]
v4l2-ctl: add support for new V4L2_CAP_VIDEO_M2M(_MPLANE) caps.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Tue, 31 Jul 2012 17:50:52 +0000 (19:50 +0200)]
Update to latest kernel headers.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 27 Jul 2012 12:52:38 +0000 (14:52 +0200)]
v4l2-ctl: add --stream-poll option.
This option makes the streaming loop use select() with the fd in
non-blocking mode, as opposed to the default blocking mode.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 27 Jul 2012 12:37:35 +0000 (14:37 +0200)]
v4l2-ctl: add support for streaming.
Adds video capture streaming support, either discarding the data or
writing it file or stdout.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 26 Jul 2012 13:16:56 +0000 (15:16 +0200)]
v4l2-ctl: add streaming options.
Currently the only available options query the buffers.
But this will be extended over time.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 26 Jul 2012 11:54:23 +0000 (13:54 +0200)]
v4l2-ctl: split off the miscellaneous options.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 26 Jul 2012 11:43:48 +0000 (13:43 +0200)]
v4l2-ctl: split off crop/selection options.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 26 Jul 2012 11:32:42 +0000 (13:32 +0200)]
v4l2-ctl: split off vbi options.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 26 Jul 2012 11:21:48 +0000 (13:21 +0200)]
v4l2-ctl: split off overlay options.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 26 Jul 2012 11:10:20 +0000 (13:10 +0200)]
v4l2-ctl: split off vidout options.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 26 Jul 2012 10:50:54 +0000 (12:50 +0200)]
v4l2-ctl: split off the vidcap options.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 26 Jul 2012 09:29:57 +0000 (11:29 +0200)]
v4l2-ctl: split off standards/timings options.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 26 Jul 2012 09:13:56 +0000 (11:13 +0200)]
v4l2-ctl: split off all input/output options.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 26 Jul 2012 08:57:45 +0000 (10:57 +0200)]
v4l2-ctl: split off tuner options.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 26 Jul 2012 08:32:06 +0000 (10:32 +0200)]
v4l2-ctl: split up this overly large source.
Phase one: split off the handling of the common options.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 25 Jul 2012 11:55:59 +0000 (13:55 +0200)]
v4l2-compliance: add VIDIOC_S/TRY_FMT tests.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Tue, 24 Jul 2012 13:51:32 +0000 (15:51 +0200)]
qv4l2: add support to stream raw frames into a file.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Tue, 24 Jul 2012 14:21:45 +0000 (16:21 +0200)]
qv4l2: Add ability to make a snapshot.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 23 Jul 2012 10:24:23 +0000 (12:24 +0200)]
v4l2-compliance: add VBI offset tests.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 23 Jul 2012 09:58:45 +0000 (11:58 +0200)]
qv4l2: fix input/std combobox handling for vbi devices.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 23 Jul 2012 09:58:25 +0000 (11:58 +0200)]
qv4l2: add vbi-tab to .gitignore.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 23 Jul 2012 10:26:30 +0000 (12:26 +0200)]
qv4l2: remove offset checks.
Always assume a 0 offset since the offset as returned by drivers is unreliable.
A later patch will add checks to v4l2-compliance to verify whether the offset
value as returned by the driver makes sense.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 23 Jul 2012 09:56:10 +0000 (11:56 +0200)]
v4l2-compliance: improve std input/output mask checks.
Make sure that ENUMSTD returns the same mask as is specified by
ENUMINPUT/OUTPUT. Also, test that QUERYSTD isn't supported for outputs.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 23 Jul 2012 09:01:13 +0000 (11:01 +0200)]
v4l2-ctl: only show common options by default.
And add new help options to see the various help categories. This should
simplify the use of v4l2-ctl.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 23 Jul 2012 08:46:50 +0000 (10:46 +0200)]
v4l2-compliance: improve querycap test, add missing newlines.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Sylwester Nawrocki [Sun, 22 Jul 2012 20:42:02 +0000 (22:42 +0200)]
v4l2-ctl: Add support for VIDIOC_G/S_SELECTION ioctls
This patch adds following commands for the selection API ioctls:
--get-selection, --set-selection,
--get-selection-output, --set-selection-output.
All supported selection rectangles at a video node are now also
displayed in case of --all command.
Signed-off-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 23 Jul 2012 08:02:00 +0000 (10:02 +0200)]
v4l2-compliance: Add commas to increase readability of displayed result
Signed-off-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 20 Jul 2012 13:03:10 +0000 (15:03 +0200)]
qv4l2: add support for sliced VBI.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 20 Jul 2012 10:47:56 +0000 (12:47 +0200)]
qv4l2: add raw VBI support.
Note: the slicing code was copied from zvbi. Eventually I intend to move the
slicing code to a library. It effectively transforms raw VBI into sliced VBI,
so that should make it very easy for applications to handle both raw and
sliced VBI.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 19 Jul 2012 11:42:44 +0000 (13:42 +0200)]
v4l2-compliance: add mem2mem support.
Some tests needed to be modified for mem2mem devices: such devices have
per-filehandle state so certain tests that check how two open device nodes
interact with one another are not valid for this class of devices.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 16 Jul 2012 13:52:04 +0000 (15:52 +0200)]
v4l2-compliance: use device_caps instead of capabilities.
Fix some querycap tests.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 16 Jul 2012 13:50:46 +0000 (15:50 +0200)]
v4l2-compliance: fix timings_cap test.
If the driver doesn't implement VIDIOC_DV_TIMINGS_CAP, then this test
failed when it should have returned OK.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 11 Jul 2012 12:06:56 +0000 (14:06 +0200)]
v4l2-compliance: improve DV timings checks.
Add tests for ENUM_DV_TIMINGS, QUERY_DV_TIMINGS and DV_TIMINGS_CAP.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans de Goede [Mon, 9 Jul 2012 11:23:41 +0000 (13:23 +0200)]
libv4l2: dqbuf: Don't requeue buffers which we are returning to the app
We retry dqbuf when we get a short frame or a decode error, but if the retries
are exhausted and the frame is short we will return the (short) buffer to the
caller, since returning a short frame is better then not returning anything
at all.
This means that we must not re-queue it then! Also see:
https://bugzilla.redhat.com/show_bug.cgi?id=838279
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Mon, 9 Jul 2012 08:13:11 +0000 (10:13 +0200)]
libv4l2: Ensure we always set buf->length when converting
Some apps blindly use buf->length when calling munmap, even if a previous
call (ie dqbuf) on the buffer failed. We used to not set buf->length to
our conversion buffer length when the actual ioctl call to the device, or
the format conversion failed.
When a dqbuf succeeded and the conversion failed this which would cause
us to leave buf->length set to the real buffer length rather then the
conversion buffer length, if the app then wrongly uses buf->length (*)
for a munmap we would not recognize this as munmap of the conversion
buffer and pass it through to the real munmap unmapping a part of
our conversion buf without being aware of this!
*) After from the point of the app a failed dqbuf, so it should not trust the
contents of buf at all.
This patch makes things work even for buggy apps, by always setting
buf->length when converting even if things fail.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Gregor Jasny [Sun, 8 Jul 2012 15:07:52 +0000 (17:07 +0200)]
libdvbv5: Fix compilation with hardening flags enabled
dvb-fe.c:874:3: error: format not a string literal and no format arguments [-Werror=format-security]
Standard flags set by dpkg-buildflags:
CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security
CPPFLAGS=-D_FORTIFY_SOURCE=2
CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security
LDFLAGS=-Wl,-z,relro
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
André Roth [Fri, 6 Jul 2012 18:23:12 +0000 (15:23 -0300)]
libdvbv5: Support multi section DVB tables, string parsing
Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
André Roth [Fri, 6 Jul 2012 18:23:11 +0000 (15:23 -0300)]
libdvbv5: Fix DiSEqC and LNB handling
Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
André Roth [Fri, 6 Jul 2012 18:23:10 +0000 (15:23 -0300)]
libdvbv5: New DVB table parsing
Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
André Roth [Fri, 6 Jul 2012 18:23:09 +0000 (15:23 -0300)]
libdvbv5: Fix set delsys other than current
Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>