platform/upstream/v4l-utils.git
12 years agolibv4lconvert: fix format of the error messages concerning jpeg frame size mismatch
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>
12 years agolibdvbv5: Fix byte swapping for embedded toolchains
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>
12 years agov4l2-ctl: fix standard parsing.
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>
12 years agov4l2-compliance: make bus_info tests more precise.
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>
12 years agov4l2-compliance: do the read/write tests in non-blocking mode.
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>
12 years agov4l2-compliance: fix VIDIOC_G_SLICED_VBI_CAP tests.
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>
12 years agov4l2-compliance: Not Supported -> OK (Not Supported)
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>
12 years agov4l2-ctl/rds-ctl: fix tuner capabilities list
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>
12 years agords-ctl: fix wrong device name in usage text.
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>
12 years agords-ctl: add --rbds option.
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>
12 years agolibv4l2rds.h: fix typo.
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>
12 years agov4l2-compliance: add VIDIOC_G_ENC_INDEX test.
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>
12 years agov4l2-compliance: add VIDIOC_(TRY_)DECODER_CMD tests.
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>
12 years agov4l2-compliance: add tests for VIDIOC_(TRY_)ENCODER_CMD.
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>
12 years agodvb: Whitespace cleanup
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>
12 years agolibdvbv5: Add a few missing handlers for ATSC-MH
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>
12 years agodvbv5-scan: Cleanup print_frontend_stats() printf logic
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>
12 years agodvb-file: Fix error message for some unknown file formats
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>
12 years agodvbv5-zap, dvbv5-scan: Improve error status logic
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>
12 years agolibdvbv5/dvb-fe: Fix return code
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>
12 years agodvbv5-zap: get rid of human_readable parameter
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>
12 years agolibdvbv5: Check if the stats is valid and return it to userspace
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>
12 years agodvbv5-zap: send prints to stderr
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>
12 years agov4l2-compliance: update fixme.txt file.
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>
12 years agov4lgrab: fix compiler warning.
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>
12 years agopixfmt-test: fix compiler warning.
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>
12 years agoioctl-test: update to latest ioctls, fix compiler warning.
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>
12 years agoAdd core TMC (Traffic Message Channel) support
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>
12 years agov4l2-compliance: improve S_HW_FREQ_SEEK tests.
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>
12 years agords: update email addresses.
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>
12 years agoAdd rds-ctl tool
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>
12 years agoAdd libv4l2rds library
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>
12 years agolibdvbv5: descriptor allocation and freeing
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>
12 years agolibdvbv5: renamed registration descriptor
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>
12 years ago[media] libdvbv5: reworked table allocation/freeing
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>
12 years ago[media] libdvbv5: dvb_dmx_open nonblocking
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>
12 years ago[media] libdvbv5: added abort flag
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>
12 years ago[media] libdvbv5: added dmx stop function
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>
12 years ago[media] libdvbv5: allow more options in set_pesfilter
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>
12 years agolibdvbv5: EIT parser
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>
12 years agov4l2-ctl: add output streaming.
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>
12 years agov4l2-ctl: remove support for obsolete vtx and add missing v4l-subdev.
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>
12 years agov4l2-compliance: check that V4L2_CAP_ASYNCIO isn't used.
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>
12 years agov4l2-compliance: add hwseek tuner cap sanity check.
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>
12 years agov4l2-compliance: test frequency band enumeration.
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>
12 years agov4l2-ctl: add support for hwseek seek range.
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>
12 years agov4l2-ctl: add VIDIOC_ENUM_FREQ_BANDS support.
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>
12 years agov4l2-ctl: when streaming show fps.
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>
12 years agov4l2-compliance: add support for M2M(_MPLANE) caps.
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>
12 years agov4l2-ctl: add support for new V4L2_CAP_VIDEO_M2M(_MPLANE) caps.
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>
12 years agoUpdate to latest kernel headers.
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>
12 years agov4l2-ctl: add --stream-poll option.
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>
12 years agov4l2-ctl: add support for streaming.
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>
12 years agov4l2-ctl: add streaming options.
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>
12 years agov4l2-ctl: split off the miscellaneous options.
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>
12 years agov4l2-ctl: split off crop/selection options.
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>
12 years agov4l2-ctl: split off vbi options.
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>
12 years agov4l2-ctl: split off overlay options.
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>
12 years agov4l2-ctl: split off vidout options.
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>
12 years agov4l2-ctl: split off the vidcap options.
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>
12 years agov4l2-ctl: split off standards/timings options.
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>
12 years agov4l2-ctl: split off all input/output options.
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>
12 years agov4l2-ctl: split off tuner options.
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>
12 years agov4l2-ctl: split up this overly large source.
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>
12 years agov4l2-compliance: add VIDIOC_S/TRY_FMT tests.
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>
12 years agoqv4l2: add support to stream raw frames into a file.
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>
12 years agoqv4l2: Add ability to make a snapshot.
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>
12 years agov4l2-compliance: add VBI offset tests.
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>
12 years agoqv4l2: fix input/std combobox handling for vbi devices.
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>
12 years agoqv4l2: add vbi-tab to .gitignore.
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>
12 years agoqv4l2: remove offset checks.
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>
12 years agov4l2-compliance: improve std input/output mask checks.
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>
12 years agov4l2-ctl: only show common options by default.
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>
12 years agov4l2-compliance: improve querycap test, add missing newlines.
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>
12 years agov4l2-ctl: Add support for VIDIOC_G/S_SELECTION ioctls
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>
12 years agov4l2-compliance: Add commas to increase readability of displayed result
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>
12 years agoqv4l2: add support for sliced VBI.
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>
12 years agoqv4l2: add raw VBI support.
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>
12 years agov4l2-compliance: add mem2mem support.
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>
12 years agov4l2-compliance: use device_caps instead of capabilities.
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>
12 years agov4l2-compliance: fix timings_cap test.
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>
12 years agov4l2-compliance: improve DV timings checks.
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>
12 years agolibv4l2: dqbuf: Don't requeue buffers which we are returning to the app
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>
12 years agolibv4l2: Ensure we always set buf->length when converting
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>
12 years agolibdvbv5: Fix compilation with hardening flags enabled
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>
12 years agolibdvbv5: Support multi section DVB tables, string parsing
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>
12 years agolibdvbv5: Fix DiSEqC and LNB handling
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>
12 years agolibdvbv5: New DVB table parsing
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>
12 years agolibdvbv5: Fix set delsys other than current
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>
12 years agolibdvbv5: Fix dvb-file USER CMD
André Roth [Fri, 6 Jul 2012 18:23:08 +0000 (15:23 -0300)]
libdvbv5: Fix dvb-file USER CMD

Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibv4l: use syscall() on kFreeBSD instead of __syscall()
Gregor Jasny [Fri, 6 Jul 2012 15:13:35 +0000 (17:13 +0200)]
libv4l: use syscall() on kFreeBSD instead of __syscall()

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years ago[media] keytable: first search table in userdir, then in systemdir
Gregor Jasny [Sat, 23 Jun 2012 15:36:47 +0000 (12:36 -0300)]
[media] keytable: first search table in userdir, then in systemdir

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] keytable: Preinstall keytables relative to sysconfdir
Gregor Jasny [Sat, 23 Jun 2012 15:36:46 +0000 (12:36 -0300)]
[media] keytable: Preinstall keytables relative to sysconfdir

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] keytable: Make udev rules dir configurable
Gregor Jasny [Sat, 23 Jun 2012 15:36:45 +0000 (12:36 -0300)]
[media] keytable: Make udev rules dir configurable

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agov4l2-compliance: improve RDS capability checking.
Hans Verkuil [Thu, 5 Jul 2012 11:16:37 +0000 (13:16 +0200)]
v4l2-compliance: improve RDS capability checking.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agovideodev2.h: copy the latest version from the kernel.
Hans Verkuil [Fri, 29 Jun 2012 11:54:59 +0000 (13:54 +0200)]
videodev2.h: copy the latest version from the kernel.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agovideodev2.h: update to the latest kernel version.
Hans Verkuil [Fri, 29 Jun 2012 11:52:48 +0000 (13:52 +0200)]
videodev2.h: update to the latest kernel version.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoRevert "v4l2-ctl: Add support for printing band info to G_TUNER / G_MODULATOR code"
Hans Verkuil [Fri, 29 Jun 2012 11:52:23 +0000 (13:52 +0200)]
Revert "v4l2-ctl: Add support for printing band info to G_TUNER / G_MODULATOR code"

This reverts commit 7590300afb1c809ca84f58f925653d84422c49ad.

The multiband support is going to be implemented differently.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoRevert "v4l2-ctl: Add support for setting the band to S_TUNER / S_MODULATOR"
Hans Verkuil [Fri, 29 Jun 2012 11:52:00 +0000 (13:52 +0200)]
Revert "v4l2-ctl: Add support for setting the band to S_TUNER / S_MODULATOR"

This reverts commit ac23fa07d11daf1d1f95ea9f73a6dc589e984742.

The multiband support is going to be implemented differently.

Conflicts:

utils/v4l2-ctl/v4l2-ctl.cpp

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoRevert "v4l2-ctl: Replace fm-eur_us with fm-eur-us"
Hans Verkuil [Fri, 29 Jun 2012 11:50:32 +0000 (13:50 +0200)]
Revert "v4l2-ctl: Replace fm-eur_us with fm-eur-us"

This reverts commit d0240d8d081e5c59246d543c9d53091497f229ee.

The multiband support is going to be implemented differently.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>