platform/upstream/v4l-utils.git
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>
12 years agolibdvbv5: remove accidentially committed hunk
Gregor Jasny [Fri, 18 May 2012 21:17:11 +0000 (23:17 +0200)]
libdvbv5: remove accidentially committed hunk

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: Hide diseqc_addr symbol
Gregor Jasny [Fri, 18 May 2012 20:56:21 +0000 (22:56 +0200)]
libdvbv5: Hide diseqc_addr symbol

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: Check index parameter for lower bound
Gregor Jasny [Fri, 18 May 2012 20:55:13 +0000 (22:55 +0200)]
libdvbv5: Check index parameter for lower bound

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: Add missing headers
Gregor Jasny [Fri, 18 May 2012 20:27:19 +0000 (22:27 +0200)]
libdvbv5: Add missing headers

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: Add missing headers
Gregor Jasny [Fri, 18 May 2012 16:03:15 +0000 (18:03 +0200)]
libdvbv5: Add missing headers

Noticed by the Launchpad auto builders while building for
Ubuntu Quantal.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years ago[media] renamings and global parms removed
André Roth [Wed, 16 May 2012 21:52:18 +0000 (18:52 -0300)]
[media] renamings and global parms removed

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] refactored for user properties
André Roth [Wed, 16 May 2012 18:27:21 +0000 (15:27 -0300)]
[media] refactored for user properties

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] renamings and librarization
André Roth [Wed, 16 May 2012 18:27:20 +0000 (15:27 -0300)]
[media] renamings and librarization

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibdvbv5: Add header guards and missing includes
Gregor Jasny [Tue, 15 May 2012 19:19:01 +0000 (21:19 +0200)]
libdvbv5: Add header guards and missing includes

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4lconvert: Take bytesperline into account for packed YUV conversion
Gregor Jasny [Sun, 13 May 2012 11:34:29 +0000 (13:34 +0200)]
libv4lconvert: Take bytesperline into account for packed YUV conversion

The changes were tested with a modified vivi driver that added
256 padding bytes per line.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvbv5: Fix make dist
Gregor Jasny [Sun, 13 May 2012 15:04:58 +0000 (17:04 +0200)]
libdvbv5: Fix make dist

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agodvb: Fix dvbv5-scan frequency skip logic with Satellite
Mauro Carvalho Chehab [Sun, 13 May 2012 13:29:26 +0000 (10:29 -0300)]
dvb: Fix dvbv5-scan frequency skip logic with Satellite

Polarization should be taken into acount when checking frequencies on
DVB-S & friends.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] split README for utils/dvb/ and lib/libdvbv5
André Roth [Sun, 13 May 2012 11:17:30 +0000 (08:17 -0300)]
[media] split README for utils/dvb/ and lib/libdvbv5

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] renamed dvb_frontend.h to dvb-frontend.h
André Roth [Sun, 13 May 2012 11:17:29 +0000 (08:17 -0300)]
[media] renamed dvb_frontend.h to dvb-frontend.h

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] fixed bw for DVB-S
André Roth [Sun, 13 May 2012 11:17:28 +0000 (08:17 -0300)]
[media] fixed bw for DVB-S

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] added m4 directory to gitignore
André Roth [Sun, 13 May 2012 11:17:27 +0000 (08:17 -0300)]
[media] added m4 directory to gitignore

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] use extern C for c++
André Roth [Sun, 13 May 2012 11:17:26 +0000 (08:17 -0300)]
[media] use extern C for c++

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibdvbv5 shared lib
André Roth [Sun, 13 May 2012 11:29:03 +0000 (11:29 +0000)]
libdvbv5 shared lib

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] fixed off by one parameter check error
André Roth [Sun, 13 May 2012 11:17:24 +0000 (08:17 -0300)]
[media] fixed off by one parameter check error

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agodvb: fix the table parsing logic to avoid segfaults
Mauro Carvalho Chehab [Fri, 11 May 2012 20:19:07 +0000 (17:19 -0300)]
dvb: fix the table parsing logic to avoid segfaults

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibv4l2: Improve VIDIOC_*_FMT logging
Hans de Goede [Fri, 11 May 2012 11:51:03 +0000 (13:51 +0200)]
libv4l2: Improve VIDIOC_*_FMT logging

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4lcontrol: Add Lenovo Thinkpad X220 Tablet to upside down table
Jakob Haufe [Thu, 10 May 2012 18:26:48 +0000 (20:26 +0200)]
libv4lcontrol: Add Lenovo Thinkpad X220 Tablet to upside down table

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4lcontrol: Add another USB ID to ASUS table
Gregor Jasny [Thu, 10 May 2012 18:15:25 +0000 (20:15 +0200)]
libv4lcontrol: Add another USB ID to ASUS table

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agoqv4l2: fix endianness issues when mapping a V4L2 pixel format to a Qt format.
Hans Verkuil [Wed, 2 May 2012 21:09:53 +0000 (23:09 +0200)]
qv4l2: fix endianness issues when mapping a V4L2 pixel format to a Qt format.

Tested on a little and a big endian machine.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-compliance: fix VIDIOC_G_FBUF test.
Hans Verkuil [Sun, 29 Apr 2012 19:33:38 +0000 (21:33 +0200)]
v4l2-compliance: fix VIDIOC_G_FBUF test.

If VIDIOC_G_FBUF returned 0, then that was seen as an error code due to a
faulty 'if' condition.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: QSpinBox should honor the control's step value.
Hans Verkuil [Sun, 29 Apr 2012 11:07:44 +0000 (13:07 +0200)]
qv4l2: QSpinBox should honor the control's step value.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-compliance: add tests for VIDIOC_G/S_PARM.
Hans Verkuil [Sat, 28 Apr 2012 17:20:20 +0000 (19:20 +0200)]
v4l2-compliance: add tests for VIDIOC_G/S_PARM.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-compliance: add tests for VIDIOC_G/S_JPEGCOMP.
Hans Verkuil [Sat, 28 Apr 2012 16:26:23 +0000 (18:26 +0200)]
v4l2-compliance: add tests for VIDIOC_G/S_JPEGCOMP.

Since these ioctls are on their way out a warning is issued if they are
implemented.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-compliance: add tests for VIDIOC_S_HW_FREQ_SEEK.
Hans Verkuil [Fri, 27 Apr 2012 21:38:23 +0000 (23:38 +0200)]
v4l2-compliance: add tests for VIDIOC_S_HW_FREQ_SEEK.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agolibv4lconvert: Fix interpretation of bit 7 of the Pixart JPEG marker
Hans de Goede [Fri, 27 Apr 2012 15:40:53 +0000 (17:40 +0200)]
libv4lconvert: Fix interpretation of bit 7 of the Pixart JPEG marker

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4lconvert: Further Pixart JPEG decompression tweaks
Hans de Goede [Fri, 27 Apr 2012 12:56:18 +0000 (14:56 +0200)]
libv4lconvert: Further Pixart JPEG decompression tweaks

Many thanks to Jean-François Moine <moinejf@free.fr> for digging the
quantization tables out of the windows driver.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agov4l2-compliance: EIO after getting/setting a control is now a warning
Hans Verkuil [Fri, 27 Apr 2012 11:42:42 +0000 (13:42 +0200)]
v4l2-compliance: EIO after getting/setting a control is now a warning

USB devices can return EIO when setting or getting certain controls due
to hardware constraints. Warn about this, but no longer treat it as an error.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-compliance: fix 'OK' results that should have been 'Not Supported'.
Hans Verkuil [Fri, 27 Apr 2012 11:29:06 +0000 (13:29 +0200)]
v4l2-compliance: fix 'OK' results that should have been 'Not Supported'.

For radio devices some format ioctls were reported as being 'OK' when it should
have been 'Not Supported'.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agolibv4lconvert: Drop Pixart JPEG frames with changing chrominance setting
Hans de Goede [Mon, 23 Apr 2012 21:18:24 +0000 (23:18 +0200)]
libv4lconvert: Drop Pixart JPEG frames with changing chrominance setting

Sometimes the pac7302 switches chrominance setting halfway though a
frame, with a quite ugly looking result, so lets drop such frames.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4lconvert: Dynamic quantization tables for Pixart JPEG
Hans de Goede [Mon, 23 Apr 2012 21:03:40 +0000 (23:03 +0200)]
libv4lconvert: Dynamic quantization tables for Pixart JPEG

Inspired by a patch from Jean-François Moine <moinejf@free.fr>, I've spend
4 days on a row investigating (through trial and error) Pixart's JPEG
compression. This patch accumulates what I've learned from this, giving 2
important improvements:
1) Support for properly decompressing pac7302 generated images where some
   of the MCU-s are compressed with a lower quality / higher quantization
   values
2) Proper chrominance quantization tables for Pixart JPEG, getting rid of
   the sometimes horribly over saturation our decompression code was causing

The support for dynamic quantization tables this patch adds also allows us to
enable lower compression ratios in the kernel driver when running at a lower
framerate, resulting in better image quality.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agoRevert "tinyjpeg: Better luminance quantization table for Pixart JPEG"
Hans de Goede [Wed, 25 Apr 2012 14:39:55 +0000 (16:39 +0200)]
Revert "tinyjpeg: Better luminance quantization table for Pixart JPEG"

This reverts commit e2886326345e8750d96b2a5f5fae6dd47c76d534.

12 years agolibv4lconvert: Fix decoding of 160x120 Pixart JPEG images
Hans de Goede [Mon, 23 Apr 2012 17:43:07 +0000 (19:43 +0200)]
libv4lconvert: Fix decoding of 160x120 Pixart JPEG images

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agoqv4l2:add support for integer menu controls.
Hans Verkuil [Thu, 19 Apr 2012 14:45:05 +0000 (16:45 +0200)]
qv4l2:add support for integer menu controls.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-compliance: add integer menu support.
Hans Verkuil [Thu, 19 Apr 2012 14:31:28 +0000 (16:31 +0200)]
v4l2-compliance: add integer menu support.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-ctl: add support for integer menus.
Hans Verkuil [Thu, 19 Apr 2012 14:28:05 +0000 (16:28 +0200)]
v4l2-ctl: add support for integer menus.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-compliance: add tests for control events.
Hans Verkuil [Thu, 19 Apr 2012 14:21:02 +0000 (16:21 +0200)]
v4l2-compliance: add tests for control events.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agovideodev2.h: update to latest version.
Hans Verkuil [Thu, 19 Apr 2012 14:20:11 +0000 (16:20 +0200)]
videodev2.h: update to latest version.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoioctl-test: update to the latest list of ioctls.
Hans Verkuil [Thu, 19 Apr 2012 10:49:07 +0000 (12:49 +0200)]
ioctl-test: update to the latest list of ioctls.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agodvb: Fix spelling errors found by lintian
Gregor Jasny [Sat, 14 Apr 2012 21:12:15 +0000 (23:12 +0200)]
dvb: Fix spelling errors found by lintian

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4lconvert: Revert X201 upside down table entry
Gregor Jasny [Sat, 14 Apr 2012 16:46:23 +0000 (18:46 +0200)]
libv4lconvert: Revert X201 upside down table entry

Disabled due to http://bugs.debian.org/667958

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agodvb-file: Allow writing a zap/channel file for a DVBv5-only standard
Mauro Carvalho Chehab [Mon, 9 Apr 2012 21:25:01 +0000 (18:25 -0300)]
dvb-file: Allow writing a zap/channel file for a DVBv5-only standard

ISDB-T is not really supported by a DVB-T format. Yet, DVB-T tools
are able to work with with an ISDB-T frontend in compat mode.

So, while the conversion to a legacy format is not a rocket science,
it is interesting to allow writing/converting a DVB-T file for an
ISDB-T scan file.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agodvb-format-convert: fix argument check and helper message
Mauro Carvalho Chehab [Mon, 9 Apr 2012 20:13:28 +0000 (17:13 -0300)]
dvb-format-convert: fix argument check and helper message

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoDocumentation spelling fixes
Ville Skyttä [Mon, 9 Apr 2012 07:03:53 +0000 (09:03 +0200)]
Documentation spelling fixes

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4lconvert: Use bytesperline instead of width
Robert Abel [Sat, 25 Feb 2012 17:12:38 +0000 (18:12 +0100)]
libv4lconvert: Use bytesperline instead of width

Basically, I found that libv4l and its conversion functions usually
choose to ignore v4l2_pix_format.bytesperline, which seems to work out
most of the time.

I'm currently working with the mt9v032 camera on a Gumstix Overo board.
The mt9v032's driver pads output lines to 768 pixels, giving 0x900 bytes
per line. All code in bayer.c (the camera uses raw bayer pattern) is
written to assume bytesperline = width and thus everything goes horribly
wrong.

Anyway, the patch for bayer => rgb as well as bayer => yuv is attached.
Basically, every time where width was assumed to be the offset to the
neighboring pixel below, now step is used.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4lconver: Add 06f8:301b pac7302 based cam to the quirk table
Hans de Goede [Sun, 8 Apr 2012 09:27:52 +0000 (11:27 +0200)]
libv4lconver: Add 06f8:301b pac7302 based cam to the quirk table

Reported-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agotinyjpeg: Better luminance quantization table for Pixart JPEG
Jean-Francois Moine [Fri, 23 Mar 2012 19:19:45 +0000 (20:19 +0100)]
tinyjpeg: Better luminance quantization table for Pixart JPEG

An other luminance quantization table gives a better quality to the
Pixart images created by the webcams handled by the gspca drivers
pac7302 and pac7311 (pixel format 'PJPG').

Tests have been done with 5 different pac7302 webcams. The marker was
always 0x44.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
12 years agolibv4lconvert: Fix building when configured with --without-jpeg
Hans de Goede [Sat, 7 Apr 2012 14:40:48 +0000 (16:40 +0200)]
libv4lconvert: Fix building when configured with --without-jpeg

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4lconver/tinyjpeg: Fix out of bounds array usage
Hans de Goede [Sat, 7 Apr 2012 14:31:12 +0000 (16:31 +0200)]
libv4lconver/tinyjpeg: Fix out of bounds array usage

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4l2: Prevent GCC 4.7 inlining error
Gregor Jasny [Fri, 6 Apr 2012 15:06:16 +0000 (17:06 +0200)]
libv4l2: Prevent GCC 4.7 inlining error

See: http://bugs.debian.org/667406

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agodvb: Fix help and version strings
Gregor Jasny [Fri, 6 Apr 2012 14:56:00 +0000 (16:56 +0200)]
dvb: Fix help and version strings

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4lconvert: Add LIFEBOOK T731 to upside down table
Gregor Jasny [Mon, 2 Apr 2012 19:21:59 +0000 (21:21 +0200)]
libv4lconvert: Add LIFEBOOK T731 to upside down table

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agov4l2-ctl/dbg: include config.h for --log-status.
Hans Verkuil [Fri, 30 Mar 2012 09:57:39 +0000 (11:57 +0200)]
v4l2-ctl/dbg: include config.h for --log-status.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agolibv4lconvert: Add ThinkPad Edge E325 to upside down table
Gregor Jasny [Sun, 25 Mar 2012 20:44:59 +0000 (22:44 +0200)]
libv4lconvert: Add ThinkPad Edge E325 to upside down table

12 years agoAdd ThinkPad X201 to upside down table
Gregor Jasny [Thu, 22 Mar 2012 21:05:14 +0000 (22:05 +0100)]
Add ThinkPad X201 to upside down table

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agoAdd ThinkPad X200 to upside down table
Gregor Jasny [Thu, 22 Mar 2012 21:01:47 +0000 (22:01 +0100)]
Add ThinkPad X200 to upside down table

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4l: Miscellaneous Comment Fixes
Robert Abel [Sat, 25 Feb 2012 14:48:46 +0000 (15:48 +0100)]
libv4l: Miscellaneous Comment Fixes

I found some minor spelling/grammar issues in the comments of libv4l. I
fixed the most irksome to me in the patch below.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agov4l2-ctl: add decoder/encoder_cmd support.
Hans Verkuil [Fri, 24 Feb 2012 12:10:29 +0000 (13:10 +0100)]
v4l2-ctl: add decoder/encoder_cmd support.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agovideodev2.h: update to latest version.
Hans Verkuil [Fri, 24 Feb 2012 10:27:31 +0000 (11:27 +0100)]
videodev2.h: update to latest version.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: Use int64_t instead of __off64_t
Gregor Jasny [Mon, 13 Feb 2012 14:35:06 +0000 (15:35 +0100)]
qv4l2: Use int64_t instead of __off64_t

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agobuildsystem: Convert pattern rules to portable make rules
Gregor Jasny [Mon, 13 Feb 2012 14:35:07 +0000 (15:35 +0100)]
buildsystem: Convert pattern rules to portable make rules

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agov4l2-ctl: Explicitely compare struct timespec members on (k)FreeBSD
Gregor Jasny [Sun, 19 Feb 2012 17:42:56 +0000 (18:42 +0100)]
v4l2-ctl: Explicitely compare struct timespec members on (k)FreeBSD

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agoutils: Remove unused features.h include
Gregor Jasny [Sun, 19 Feb 2012 17:38:47 +0000 (18:38 +0100)]
utils: Remove unused features.h include

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agoutils: Enable v4l2-compliance, v4l2-ctl, and v4l2-dbg again
Gregor Jasny [Sun, 19 Feb 2012 17:47:38 +0000 (18:47 +0100)]
utils: Enable v4l2-compliance, v4l2-ctl, and v4l2-dbg again

An updated v4l_compat tarball provides all necessary defines and structs.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4lconvert: Fix printf conversion modifier
Gregor Jasny [Tue, 14 Feb 2012 19:27:57 +0000 (20:27 +0100)]
libv4lconvert: Fix printf conversion modifier

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agov4l2-ctl: Remove unneeded linux/types.h header include
Gregor Jasny [Tue, 14 Feb 2012 08:35:31 +0000 (09:35 +0100)]
v4l2-ctl: Remove unneeded linux/types.h header include

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibdvb5: Fix printf conversion modifier
Gregor Jasny [Tue, 14 Feb 2012 08:34:35 +0000 (09:34 +0100)]
libdvb5: Fix printf conversion modifier

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agoutils: use klogctl only if available
Gregor Jasny [Tue, 14 Feb 2012 19:25:52 +0000 (20:25 +0100)]
utils: use klogctl only if available

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4l: Check for correct mode_t promotion type at configure time
Gregor Jasny [Tue, 14 Feb 2012 19:21:37 +0000 (20:21 +0100)]
libv4l: Check for correct mode_t promotion type at configure time

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agoDo not use v4l-utils copy of kernel headers on non Linux architectures
Gregor Jasny [Wed, 8 Feb 2012 20:12:03 +0000 (21:12 +0100)]
Do not use v4l-utils copy of kernel headers on non Linux architectures

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4l: Apply conditionals for FreeBSD to kFreeBSD, too
Gregor Jasny [Sun, 5 Feb 2012 17:31:36 +0000 (18:31 +0100)]
libv4l: Apply conditionals for FreeBSD to kFreeBSD, too

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agobuildsystem: Build some of the utils only on Linux
Gregor Jasny [Wed, 1 Feb 2012 17:41:33 +0000 (18:41 +0100)]
buildsystem: Build some of the utils only on Linux

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agobuildsystem: Find argp library during configure run
Gregor Jasny [Wed, 1 Feb 2012 17:41:32 +0000 (18:41 +0100)]
buildsystem: Find argp library during configure run

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agobuildsystem: Find library providing dlopen symbols at configure time
Gregor Jasny [Wed, 1 Feb 2012 17:41:29 +0000 (18:41 +0100)]
buildsystem: Find library providing dlopen symbols at configure time

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agoAdd missing includes
Gregor Jasny [Wed, 1 Feb 2012 17:41:30 +0000 (18:41 +0100)]
Add missing includes

They were discovered while compiling on FreeBSD.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agoutils: Rename devname to devicename to avoid FreeBSD stdlib conflict
Gregor Jasny [Wed, 1 Feb 2012 17:41:31 +0000 (18:41 +0100)]
utils: Rename devname to devicename to avoid FreeBSD stdlib conflict

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4lconvert: add missing const for input pointer
Gregor Jasny [Wed, 1 Feb 2012 17:41:36 +0000 (18:41 +0100)]
libv4lconvert: add missing const for input pointer

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4l: update upside down device table
Gregor Jasny [Sun, 5 Feb 2012 16:09:55 +0000 (17:09 +0100)]
libv4l: update upside down device table

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4lconvert: replace strndupa with more portable strndup
Gregor Jasny [Thu, 2 Feb 2012 19:25:07 +0000 (20:25 +0100)]
libv4lconvert: replace strndupa with more portable strndup

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agoPrepare 0.9.0-test1 release v4l-utils-0.9.0-test1
Gregor Jasny [Thu, 2 Feb 2012 19:37:02 +0000 (20:37 +0100)]
Prepare 0.9.0-test1 release

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4lconvert: Add missing colon in ASUS upside down table
Gregor Jasny [Wed, 1 Feb 2012 21:06:33 +0000 (22:06 +0100)]
libv4lconvert: Add missing colon in ASUS upside down table

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agoUse globs to shorten ASUS upside down table
Gregor Jasny [Tue, 31 Jan 2012 19:59:24 +0000 (20:59 +0100)]
Use globs to shorten ASUS upside down table

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
CC: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4l: update upside down device table
Gregor Jasny [Sun, 29 Jan 2012 22:39:54 +0000 (23:39 +0100)]
libv4l: update upside down device table

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4lcontrol: Add new matching algorithm for upside down table
Gregor Jasny [Sun, 29 Jan 2012 16:56:04 +0000 (17:56 +0100)]
libv4lcontrol: Add new matching algorithm for upside down table

Implemented after this proposal from Hans de Goede:

   Add another matching algorithm, besides the current match all fields if single row algorithm
   to be specific, I would like a 3 step matching algorithm first of all match the dmi_board_vendor
   against a list of strings known to be used by Manufacturer A, then match dmi_board_name against
   a list of known to have upside down laptop models, then match the usb-id against a list of
   webcams known to be used by Manufacturer A.

   This is mainly targeting Asus, since they tend to have many models and sometimes change the
   model webcam used inside a certain model notebook.

   This way we can hopefully define a set of rules which will catch most Asus laptops, including
   models we have not seen yet, without catching the few models which do have their laptop the right
   way up.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4lcontrol: Prefix sysfs root with environment variable value
Gregor Jasny [Sun, 29 Jan 2012 16:47:06 +0000 (17:47 +0100)]
libv4lcontrol: Prefix sysfs root with environment variable value

If the LIBV4LCONTROL_SYSFS_PREFIX value is set it will be added
as a prefix to the sysfs root. This allows to fake USB and DMI
values to test upside down table entries.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
12 years agov4l2-ctl: add support for VIDIOC_S_HW_FREQ_SEEK.
Hans Verkuil [Sat, 28 Jan 2012 12:00:49 +0000 (13:00 +0100)]
v4l2-ctl: add support for VIDIOC_S_HW_FREQ_SEEK.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agodvbv5-scan: Don't process the same freq from channel file twice
Mauro Carvalho Chehab [Wed, 25 Jan 2012 10:57:33 +0000 (08:57 -0200)]
dvbv5-scan: Don't process the same freq from channel file twice

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agodvbv5-scan: Allow changing the default output file
Mauro Carvalho Chehab [Tue, 24 Jan 2012 20:03:51 +0000 (18:03 -0200)]
dvbv5-scan: Allow changing the default output file

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agodvb-file: Fix a segfault if network_name is not filled
Mauro Carvalho Chehab [Tue, 24 Jan 2012 20:01:59 +0000 (18:01 -0200)]
dvb-file: Fix a segfault if network_name is not filled

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agodvb-fe-tool: Fix two warnings
Mauro Carvalho Chehab [Tue, 24 Jan 2012 19:54:29 +0000 (17:54 -0200)]
dvb-fe-tool: Fix two warnings

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd the missing license comments to the files
Mauro Carvalho Chehab [Tue, 24 Jan 2012 19:03:14 +0000 (17:03 -0200)]
Add the missing license comments to the files

While everything is GPLv2 only, the license were missed on
some files. Properly fill them.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agodvb: Use the generic read/write file functions
Mauro Carvalho Chehab [Tue, 24 Jan 2012 17:28:51 +0000 (15:28 -0200)]
dvb: Use the generic read/write file functions

This way, on every place, it is possible to read or write using
the legacy or the new formats.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agodvb: Move the generic read/write routines to the library
Mauro Carvalho Chehab [Tue, 24 Jan 2012 17:00:59 +0000 (15:00 -0200)]
dvb: Move the generic read/write routines to the library

Instead of having them only for dvb-format-convert, move them
to the library. This way, they can be used by the other tools.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agodvb-file: Add support for writing at the legacy formats
Mauro Carvalho Chehab [Tue, 24 Jan 2012 15:52:30 +0000 (13:52 -0200)]
dvb-file: Add support for writing at the legacy formats

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>