platform/upstream/v4l-utils.git
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>
12 years agolibdvbv5: Fix compilation on RHEL5
Gregor Jasny [Wed, 27 Jun 2012 08:04:16 +0000 (01:04 -0700)]
libdvbv5: Fix compilation on RHEL5

In file included from /usr/include/stdlib.h:438,
                 from ../../lib/include/dvb-fe.h:26,
                 from dvb-fe.c:22:
/usr/include/sys/types.h:62: error: conflicting types for 'dev_t'
/usr/include/linux/types.h:13: error: previous declaration of 'dev_t' was here
/usr/include/sys/types.h:67: error: conflicting types for 'gid_t'
/usr/include/linux/types.h:27: error: previous declaration of 'gid_t' was here
/usr/include/sys/types.h:72: error: conflicting types for 'mode_t'
/usr/include/linux/types.h:15: error: previous declaration of 'mode_t' was here
/usr/include/sys/types.h:77: error: conflicting types for 'nlink_t'
/usr/include/linux/types.h:16: error: previous declaration of 'nlink_t' was here
/usr/include/sys/types.h:82: error: conflicting types for 'uid_t'
/usr/include/linux/types.h:26: error: previous declaration of 'uid_t' was here

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agov4l2-compliance: Remove unsupported option from help message
Brilliantov Kirill Vladimirovich [Wed, 27 Jun 2012 17:33:21 +0000 (19:33 +0200)]
v4l2-compliance: Remove unsupported option from help message

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agobuildsystem: Use AM_SILENT_RULES only if available
Gregor Jasny [Wed, 27 Jun 2012 17:29:41 +0000 (19:29 +0200)]
buildsystem: Use AM_SILENT_RULES only if available

Automake on RHEL5 is too old for AM_SILENT_RULES.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4l: Compile wrappers only if shared libraries are enabled/available
Gregor Jasny [Wed, 27 Jun 2012 08:07:04 +0000 (01:07 -0700)]
libv4l: Compile wrappers only if shared libraries are enabled/available

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4l: Include autoconf config.h file to export logging symbols
Gregor Jasny [Mon, 25 Jun 2012 16:34:37 +0000 (18:34 +0200)]
libv4l: Include autoconf config.h file to export logging symbols

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: constify more parameters and fields
Gregor Jasny [Sun, 24 Jun 2012 16:02:15 +0000 (18:02 +0200)]
libdvbv5: constify more parameters and fields

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: Make dvb_copy_fe_props static
Gregor Jasny [Sun, 24 Jun 2012 16:01:14 +0000 (18:01 +0200)]
libdvbv5: Make dvb_copy_fe_props static

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: Stricter input validation
Gregor Jasny [Sun, 24 Jun 2012 15:58:23 +0000 (17:58 +0200)]
libdvbv5: Stricter input validation

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agoIgnore generated gettext files
Gregor Jasny [Sun, 24 Jun 2012 15:31:48 +0000 (17:31 +0200)]
Ignore generated gettext files

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4l: Properly detect GCC symbol visibility support
Gregor Jasny [Sun, 24 Jun 2012 15:19:29 +0000 (17:19 +0200)]
libv4l: Properly detect GCC symbol visibility support

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agov4l2-compliance: fix segfault.
Hans Verkuil [Sun, 24 Jun 2012 10:37:04 +0000 (12:37 +0200)]
v4l2-compliance: fix segfault.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: Fix out of tree builds
Gregor Jasny [Wed, 20 Jun 2012 16:18:31 +0000 (18:18 +0200)]
qv4l2: Fix out of tree builds

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agoRevert "[media] [v4l-utils] Add configure option to allow qv4l2 disable"
Gregor Jasny [Wed, 20 Jun 2012 15:31:37 +0000 (17:31 +0200)]
Revert "[media] [v4l-utils] Add configure option to allow qv4l2 disable"

This reverts commit 06e5235b4e1514f9234a21942261ba417deb106c.

Another patch to disable qv4l2 was already added via
7fc9fa40e7fd1a72688c6f43fc11e085079b3f0c

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years ago[media] [v4l-utils] Add configure option to allow qv4l2 disable
Ezequiel García [Wed, 30 May 2012 12:42:44 +0000 (09:42 -0300)]
[media] [v4l-utils] Add configure option to allow qv4l2 disable

This patch could ease the job of a few people,
by providing an option they actually need.
OpenWRT [1] and Openembedded [2] are already disabling
qv4l2 by applying ugly patches.

[1] https://dev.openwrt.org/browser/packages/libs/libv4l/patches/004-disable-qv4l2.patch
[2] http://patches.openembedded.org/patch/21469/

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agokFreeBSD: Add stdint.h header file where (u)intXX_t types were used
Gregor Jasny [Mon, 18 Jun 2012 20:46:31 +0000 (22:46 +0200)]
kFreeBSD: Add stdint.h header file where (u)intXX_t types were used

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agodvb-utils: enable build on all systems
Gregor Jasny [Mon, 18 Jun 2012 17:40:22 +0000 (19:40 +0200)]
dvb-utils: enable build on all systems

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agobuildsystem: add contrib/freebsd/include as a header search path when not on Linux
Gregor Jasny [Mon, 18 Jun 2012 17:38:45 +0000 (19:38 +0200)]
buildsystem: add contrib/freebsd/include as a header search path when not on Linux

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agoAdd generated (k)FreeBSD header files
Gregor Jasny [Mon, 18 Jun 2012 17:29:04 +0000 (19:29 +0200)]
Add generated (k)FreeBSD header files

12 years agoAdd (k)FreeBSD header file generation to kernel sync target
Gregor Jasny [Mon, 18 Jun 2012 16:53:58 +0000 (18:53 +0200)]
Add (k)FreeBSD header file generation to kernel sync target

Signed-off-by: Gregor Jasny <gregor.jasny@citrix.com>
12 years agolibdvbv5: Properly use and link iconv on non Linux systems
Gregor Jasny [Mon, 18 Jun 2012 17:28:03 +0000 (19:28 +0200)]
libdvbv5: Properly use and link iconv on non Linux systems

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agodvbv5-zap: Use O_LARGEFILE only if available
Gregor Jasny [Mon, 18 Jun 2012 17:21:12 +0000 (19:21 +0200)]
dvbv5-zap: Use O_LARGEFILE only if available

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: Rewrite non portable select loop
Gregor Jasny [Mon, 18 Jun 2012 17:01:34 +0000 (19:01 +0200)]
libdvbv5: Rewrite non portable select loop

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: Use standard compliant header for malloc
Gregor Jasny [Mon, 18 Jun 2012 16:59:07 +0000 (18:59 +0200)]
libdvbv5: Use standard compliant header for malloc

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: Drop duplicate ioctl definitions
Gregor Jasny [Mon, 18 Jun 2012 16:56:58 +0000 (18:56 +0200)]
libdvbv5: Drop duplicate ioctl definitions

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agov4l2-compliance: remove incorrect timings test.
Hans Verkuil [Wed, 13 Jun 2012 12:09:37 +0000 (14:09 +0200)]
v4l2-compliance: remove incorrect timings test.

The 'reserved' field is a union with a struct. So don't test whether 'reserved'
was zeroed.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: fix incorrect handling of return value of v4lconvert_convert
Hans Verkuil [Wed, 13 Jun 2012 11:47:44 +0000 (13:47 +0200)]
qv4l2: fix incorrect handling of return value of v4lconvert_convert

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agolibv4l: Move dev ops to libv4lconvert
Gregor Jasny [Mon, 11 Jun 2012 19:59:25 +0000 (21:59 +0200)]
libv4l: Move dev ops to libv4lconvert

As discussed with Hans de Goede, this patch moves the plugin dev-ops
structure to libv4lconvert. It was also renamed to libv4l_dev_ops.

As a positive side effect we restored SONAME compatibility with
the 0.8.x releases.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agoqv4l2: Render icon for 32x32 pixel (was 32x36)
Gregor Jasny [Mon, 11 Jun 2012 19:21:10 +0000 (21:21 +0200)]
qv4l2: Render icon for 32x32 pixel (was 32x36)

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agords: Build only if linux/i2c-dev.h header is present
Gregor Jasny [Mon, 11 Jun 2012 19:00:17 +0000 (21:00 +0200)]
rds: Build only if linux/i2c-dev.h header is present

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agocontrib/test: Add to build system
Gregor Jasny [Mon, 11 Jun 2012 18:29:44 +0000 (20:29 +0200)]
contrib/test: Add to build system

During the conversion to autotools the contrib/test Makefile
got lost. Re-add the test tools. Thanks to Franck Bourdonnec
for pointing this out.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years ago[media] libdvbv5: constify and hide dvb_sat_lnb
Gregor Jasny [Fri, 18 May 2012 20:07:52 +0000 (17:07 -0300)]
[media] libdvbv5: constify and hide dvb_sat_lnb

[mchehab@redhat.com: patch rebased to apply against the latest version]
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoir-keytable: Add support for RC-5-SZ protocol
Gregor Jasny [Mon, 11 Jun 2012 17:09:20 +0000 (19:09 +0200)]
ir-keytable: Add support for RC-5-SZ protocol

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoqv4l2: fix vbi display.
Hans Verkuil [Mon, 11 Jun 2012 06:57:46 +0000 (08:57 +0200)]
qv4l2: fix vbi display.

Rather than (ab)use the normal libv4l picture format conversion, just do it
in a separate capVbiFrame method.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: add basic raw VBI support.
Hans Verkuil [Sun, 10 Jun 2012 13:25:28 +0000 (15:25 +0200)]
qv4l2: add basic raw VBI support.

Just show the VBI data as a greyscale picture.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agolibv4l*: add V4L2_CAP_DEVICE_CAPS support.
Hans Verkuil [Sun, 10 Jun 2012 13:04:39 +0000 (15:04 +0200)]
libv4l*: add V4L2_CAP_DEVICE_CAPS support.

If V4L2_CAP_DEVICE_CAPS is set, then use device_caps instead of capabilities
since that gives the exact capabilities of the device node.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: don't show afc if signal strength == 0.
Hans Verkuil [Sun, 10 Jun 2012 11:41:51 +0000 (13:41 +0200)]
qv4l2: don't show afc if signal strength == 0.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: add support for radio modulators.
Hans Verkuil [Sun, 10 Jun 2012 09:44:59 +0000 (11:44 +0200)]
qv4l2: add support for radio modulators.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: add channel detection.
Hans Verkuil [Sun, 10 Jun 2012 09:25:35 +0000 (11:25 +0200)]
qv4l2: add channel detection.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: add audio mode support.
Hans Verkuil [Sun, 10 Jun 2012 08:51:05 +0000 (10:51 +0200)]
qv4l2: add audio mode support.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: improve statusbar behavior.
Hans Verkuil [Sun, 10 Jun 2012 08:29:51 +0000 (10:29 +0200)]
qv4l2: improve statusbar behavior.

When capturing don't overwrite the statusbar with the frame number/rate if
it is showing something else (like a statustip from a control).

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: improve frequency and radio support.
Hans Verkuil [Sun, 10 Jun 2012 08:17:13 +0000 (10:17 +0200)]
qv4l2: improve frequency and radio support.

Enter frequency in MHz (TV) or kHz (radio) rather than the v4l2_frequency value.

Disable/remove all video related items when a radio device is selected.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: fix interval updating, use device_caps, handle conversion errors.
Hans Verkuil [Sun, 10 Jun 2012 07:31:58 +0000 (09:31 +0200)]
qv4l2: fix interval updating, use device_caps, handle conversion errors.

Choosing a new interval when capturing failed (of course), but the combobox
wasn't put back to the old position.

Now support device_caps for better capability reporting.

If a format can't be converted, then still memcpy it: that's better than a
black window.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-compliance: add tests for VIDIOC_REQBUFS/CREATE_BUFS.
Hans Verkuil [Wed, 6 Jun 2012 22:16:12 +0000 (00:16 +0200)]
v4l2-compliance: add tests for VIDIOC_REQBUFS/CREATE_BUFS.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agolibv4lconvert: fix setting/testing of supported_src_formats
Hans Verkuil [Tue, 5 Jun 2012 23:26:35 +0000 (01:26 +0200)]
libv4lconvert: fix setting/testing of supported_src_formats

data->supported_src_formats is a uint64_t.

This code:

data->supported_src_formats & (1 << i)

does not work since (1 << i) is a 32-bit value. It should be (1ULL << i) instead.

Interesting fact: on a 64-bit intel box (1 << 33) does a rotate, not a shift.
So (1 << 33) == 2.

On a 32-bit powerpc platform it is a proper shift, so (1 << 33) == 0.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-compliance: fix signed/unsigned comparison warnings.
Hans Verkuil [Tue, 5 Jun 2012 22:10:14 +0000 (00:10 +0200)]
v4l2-compliance: fix signed/unsigned comparison warnings.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agolibv4lconvert: add support for Y4 and Y6 pixel formats.
Hans Verkuil [Tue, 5 Jun 2012 20:32:04 +0000 (22:32 +0200)]
libv4lconvert: add support for Y4 and Y6 pixel formats.

Yes, libv4lconvert now supports bw-qcam!

How could we ever have done without it? :-)

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-ctl: improve --set-dv-bt-timings.
Hans Verkuil [Tue, 5 Jun 2012 14:45:41 +0000 (16:45 +0200)]
v4l2-ctl: improve --set-dv-bt-timings.

Thanks to Mats Randgaard for this patch.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agolibdvbv5: Fix tuning
Mauro Carvalho Chehab [Mon, 4 Jun 2012 22:18:16 +0000 (19:18 -0300)]
libdvbv5: Fix tuning

The previous patch broke DVB tuning. fix it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibdvbv5: Add a function to fill the per-delsys properties
Mauro Carvalho Chehab [Mon, 4 Jun 2012 17:50:53 +0000 (14:50 -0300)]
libdvbv5: Add a function to fill the per-delsys properties

This function were currently part of the dvb_set_sys() logic. Move it into
a separate function, in order to allow it to be re-used by the DVB scan
tools.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agodvbv5-scan: Avoid segfault for the first frequency on the table
Mauro Carvalho Chehab [Mon, 4 Jun 2012 12:38:32 +0000 (09:38 -0300)]
dvbv5-scan: Avoid segfault for the first frequency on the table

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agov4l2-ctl: Replace fm-eur_us with fm-eur-us
Hans de Goede [Sat, 2 Jun 2012 12:46:17 +0000 (14:46 +0200)]
v4l2-ctl: Replace fm-eur_us with fm-eur-us

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agov4l2-ctl: Make --help output fit in 80 columns
Hans de Goede [Sat, 2 Jun 2012 12:07:51 +0000 (14:07 +0200)]
v4l2-ctl: Make --help output fit in 80 columns

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agov4l2-ctl: Add support for setting the band to S_TUNER / S_MODULATOR
Hans de Goede [Sun, 27 May 2012 09:45:13 +0000 (11:45 +0200)]
v4l2-ctl: Add support for setting the band to S_TUNER / S_MODULATOR

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agov4l2-ctl: Add support for printing band info to G_TUNER / G_MODULATOR code
Hans de Goede [Sun, 27 May 2012 08:33:21 +0000 (10:33 +0200)]
v4l2-ctl: Add support for printing band info to G_TUNER / G_MODULATOR code

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agov4l2-ctl: Add support for new hwseek tuner capabilities
Hans de Goede [Sat, 2 Jun 2012 09:25:40 +0000 (11:25 +0200)]
v4l2-ctl: Add support for new hwseek tuner capabilities

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agoAdd HW_SEEK and TUNER_BAND capabilities to videodev2.h
Hans de Goede [Sat, 2 Jun 2012 09:11:53 +0000 (11:11 +0200)]
Add HW_SEEK and TUNER_BAND capabilities to videodev2.h

Bring in the pending (reviewed and acked) changes from:
http://git.linuxtv.org/hverkuil/media_tree.git/shortlog/refs/heads/bands

As these are needed to add support for these new API-s to v4l2-ctl.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agoAdd configure option to allow qv4l2 disable
Ezequiel Garcia [Wed, 30 May 2012 13:42:44 +0000 (10:42 -0300)]
Add configure option to allow qv4l2 disable

This patch could ease the job of a few people,
by providing an option they actually need.
OpenWRT [1] and Openembedded [2] are already disabling
qv4l2 by applying ugly patches.

[1] https://dev.openwrt.org/browser/packages/libs/libv4l/patches/004-disable-qv4l2.patch
[2] http://patches.openembedded.org/patch/21469/

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: fix the DVB write routine
Mauro Carvalho Chehab [Wed, 30 May 2012 15:21:40 +0000 (12:21 -0300)]
libdvbv5: fix the DVB write routine

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibdvbv5: Fix DiSEqC output
Mauro Carvalho Chehab [Wed, 30 May 2012 14:23:25 +0000 (11:23 -0300)]
libdvbv5: Fix DiSEqC output

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Handle a calloc() error
Mauro Carvalho Chehab [Wed, 30 May 2012 14:15:56 +0000 (11:15 -0300)]
utils/dvb: Handle a calloc() error

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibdvbv5: Improve INFO messages when emulation mode is enabled
Mauro Carvalho Chehab [Wed, 30 May 2012 12:54:23 +0000 (09:54 -0300)]
libdvbv5: Improve INFO messages when emulation mode is enabled

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibdvbv5: Verbose DiSEqC commangs, when verbose is on
Mauro Carvalho Chehab [Wed, 30 May 2012 12:18:26 +0000 (09:18 -0300)]
libdvbv5: Verbose DiSEqC commangs, when verbose is on

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agodvb: Allow forcing the usage of DVBv3 calls on dvbv5-scan and dvbv5-zap
Mauro Carvalho Chehab [Wed, 30 May 2012 11:50:31 +0000 (08:50 -0300)]
dvb: Allow forcing the usage of DVBv3 calls on dvbv5-scan and dvbv5-zap

Forcing the usage of DVBv3 API allows testing the backward compatibility
of the application with Kernels before 3.3.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibdvbv5: Add ATSC-MH API bits
Mauro Carvalho Chehab [Tue, 29 May 2012 21:10:13 +0000 (18:10 -0300)]
libdvbv5: Add ATSC-MH API bits

Adds the missing bits for ATSC-MH. Not tested though.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibdvbv5: Fix DVB-S2/DVB-T2 support if DVB version is < 5.5
Mauro Carvalho Chehab [Tue, 29 May 2012 20:55:51 +0000 (17:55 -0300)]
libdvbv5: Fix DVB-S2/DVB-T2 support if DVB version is < 5.5

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agodvb: Update README to reflect its tests with DVB-S
Mauro Carvalho Chehab [Tue, 29 May 2012 20:44:33 +0000 (17:44 -0300)]
dvb: Update README to reflect its tests with DVB-S

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] libdvbv5: Fix LNBf offset calculus
André Roth [Thu, 24 May 2012 21:02:10 +0000 (18:02 -0300)]
[media] libdvbv5: Fix LNBf offset calculus

Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] libdvbv5: Fix tuning command
André Roth [Thu, 24 May 2012 21:02:09 +0000 (18:02 -0300)]
[media] libdvbv5: Fix tuning command

Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agov4l2-ctl: split up the huge usage message.
Hans Verkuil [Mon, 28 May 2012 12:33:47 +0000 (14:33 +0200)]
v4l2-ctl: split up the huge usage message.

Split up the usage message in easier to understand chunks, and only display
the relevant chunk where possible.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoRemove config.h.in from git
Hans de Goede [Sat, 26 May 2012 11:19:13 +0000 (13:19 +0200)]
Remove config.h.in from git

It is auto-generated so it does not belong in git

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agov4l2-ctl: Add a --tuner-index cmdline option
Hans de Goede [Sat, 26 May 2012 11:10:02 +0000 (13:10 +0200)]
v4l2-ctl: Add a --tuner-index cmdline option

This allows doing a g_tuner, s_tuner, g_modulator, s_modulator, g_frequency,
s_frequency or s_hw_freq_seek operation on a different tuner/modulator
then the one with index 0.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agov4l2-ctl: Be consistent in handling v4l2_frequency.type for modulators
Hans de Goede [Sat, 26 May 2012 10:59:40 +0000 (12:59 +0200)]
v4l2-ctl: Be consistent in handling v4l2_frequency.type for modulators

Currently for a S_FREQUENCY we set v4l2_frequency.type to V4L2_TUNER_RADIO,
but on G_FREQUENCY we leave it unset. The spec states that the type field
should be ignored by modulators, but since we're setting it on
S_FREQUENCY, lets be consistent and also set if on G_FREQUENCY.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agov4l2-ctl: Remove double G_TUNER on G_FREQUENCY
Hans de Goede [Sat, 26 May 2012 10:51:19 +0000 (12:51 +0200)]
v4l2-ctl: Remove double G_TUNER on G_FREQUENCY

Remove a left-over from commit b18142f9, where the code for determining the
frequency factor (V4L2_TUNER_CAP_LOW), was changed to use a G_MODULATOR
instead of a G_TUNER for MODULATORS.

This left over causes an unnecessary double G_TUNER for regular tuners, and
an unwanted G_TUNER call for modulators.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agov4l2-compliance: various fixes.
Hans Verkuil [Sat, 26 May 2012 07:46:45 +0000 (09:46 +0200)]
v4l2-compliance: various fixes.

- set node.caps to vcap.device_caps if possible
- G/S_CTRL didn't test properly for the corner case where there are no
  controls at all.
- fix an overly strict test: 'LANG1 capability, but NTSC-M standard'. If the
  tuner supports PAL as well, then this is perfectly legal.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: add support for the new timings ioctls.
Hans Verkuil [Tue, 22 May 2012 09:07:04 +0000 (11:07 +0200)]
qv4l2: add support for the new timings ioctls.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-ctl: add support for the new timings ioctls.
Hans Verkuil [Tue, 22 May 2012 09:05:41 +0000 (11:05 +0200)]
v4l2-ctl: add support for the new timings ioctls.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agovideodev2.h: update to latest version.
Hans Verkuil [Tue, 22 May 2012 08:56:02 +0000 (10:56 +0200)]
videodev2.h: update to latest version.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agolibdvbv5: Fix build error with hardening build flags
Gregor Jasny [Mon, 21 May 2012 19:14:01 +0000 (21:14 +0200)]
libdvbv5: Fix build error with hardening build flags

On Debian and Ubuntu the following hardening flags are used:
(see dpkg-buildflags --export=sh)

export CFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security"
export CPPFLAGS="-D_FORTIFY_SOURCE=2"
export CXXFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security"
export FFLAGS="-g -O2"
export LDFLAGS="-Wl,-z,relro"

Without this commit the following error occurs:

dvb-fe.c:56:3: error: format not a string literal and no format arguments [-Werror=format-security]
dvb-fe.c:61:3: error: format not a string literal and no format arguments [-Werror=format-security]

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: log levels
André Roth [Sat, 19 May 2012 22:38:54 +0000 (19:38 -0300)]
libdvbv5: log levels

Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibdvbv5: renamings for dvb-sat, dvb-scan
Mauro Carvalho Chehab [Sun, 20 May 2012 18:09:27 +0000 (15:09 -0300)]
libdvbv5: renamings for dvb-sat, dvb-scan

From: André Roth <neolynx@gmail.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibdvbv5: log functions for dvb-fe and libsat
André Roth [Sat, 19 May 2012 22:38:52 +0000 (19:38 -0300)]
libdvbv5: log functions for dvb-fe and libsat

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibdvbv5: Fix dvb-frontend.h include location
Gregor Jasny [Sun, 20 May 2012 18:04:48 +0000 (20:04 +0200)]
libdvbv5: Fix dvb-frontend.h include location

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: Remove outdated duplicate header file
Gregor Jasny [Sun, 20 May 2012 17:48:00 +0000 (19:48 +0200)]
libdvbv5: Remove outdated duplicate header file

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: Correct output paths of gen_dvb_structs and write missing header
Gregor Jasny [Sun, 20 May 2012 17:46:35 +0000 (19:46 +0200)]
libdvbv5: Correct output paths of gen_dvb_structs and write missing header

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: correct Makefile path for kernel sync target
Gregor Jasny [Sun, 20 May 2012 17:07:57 +0000 (19:07 +0200)]
libdvbv5: correct Makefile path for kernel sync target

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: Fix function indentation
Mauro Carvalho Chehab [Sat, 19 May 2012 17:27:54 +0000 (14:27 -0300)]
libdvbv5: Fix function indentation

We use Kernel CodingStyle here. So, let's fix indentation for those
two functions.

Cc: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibdvbv5: ignore user commands on fe
André Roth [Sat, 19 May 2012 09:18:49 +0000 (06:18 -0300)]
libdvbv5: ignore user commands on fe

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibdvbv5: libscan renamings
André Roth [Sat, 19 May 2012 09:18:50 +0000 (06:18 -0300)]
libdvbv5: libscan renamings

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibdvbv5: add a function to get API cmd names
André Roth [Sat, 19 May 2012 09:18:48 +0000 (06:18 -0300)]
libdvbv5: add a function to get API cmd names

As the DVBv5 library have their own commands, create
a function to retrieve both DVBv5 and API internal
command names.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibdvbv5: Add configure option to fall back to static build
Gregor Jasny [Fri, 18 May 2012 21:54:32 +0000 (23:54 +0200)]
libdvbv5: Add configure option to fall back to static build

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>