platform/upstream/v4l-utils.git
14 years agolibv4l: improve mr97310a decompression
Theodore Kilgore [Fri, 16 Oct 2009 06:34:43 +0000 (08:34 +0200)]
libv4l: improve mr97310a decompression

Bring mr97310a decompression in line with the latest gphoto code, resulting
in a much better picure

Priority: normal

Signed-off-by: Theodore Kilgore <kilgota@banach.math.auburn.edu>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down devices table
Hans de Goede [Thu, 15 Oct 2009 12:47:03 +0000 (14:47 +0200)]
libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down devices table
Hans de Goede [Mon, 12 Oct 2009 07:22:56 +0000 (09:22 +0200)]
libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: Fix a bug in sw autogain for cams whose exposure minimum != 0
Hans de Goede [Sun, 11 Oct 2009 08:15:57 +0000 (10:15 +0200)]
libv4l: Fix a bug in sw autogain for cams whose exposure minimum != 0

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: Start of 0.6.3 dev cycle
Hans de Goede [Fri, 9 Oct 2009 08:53:28 +0000 (10:53 +0200)]
libv4l: Start of 0.6.3 dev cycle

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: 0.6.2 release
Hans de Goede [Fri, 9 Oct 2009 08:35:47 +0000 (10:35 +0200)]
libv4l: 0.6.2 release

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: Enable software whitebalance and autogain for mr97310a cameras
Hans de Goede [Fri, 9 Oct 2009 08:32:13 +0000 (10:32 +0200)]
libv4l: Enable software whitebalance and autogain for mr97310a cameras

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: Put usb id in controls shm segment name for USB devices
Hans de Goede [Fri, 9 Oct 2009 08:25:49 +0000 (10:25 +0200)]
libv4l: Put usb id in controls shm segment name for USB devices

Put usb id in controls shm segment name for USB devices, to better
distuingish between devices plugged into the same port

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: Check a cam has the necessary controls before enabling autogain
Hans de Goede [Fri, 9 Oct 2009 07:45:17 +0000 (09:45 +0200)]
libv4l: Check a cam has the necessary controls before enabling autogain

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down devices table
Hans de Goede [Fri, 9 Oct 2009 06:36:42 +0000 (08:36 +0200)]
libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down devices table
Hans de Goede [Wed, 7 Oct 2009 10:06:11 +0000 (12:06 +0200)]
libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down devices table
Hans de Goede [Sun, 4 Oct 2009 14:16:09 +0000 (16:16 +0200)]
libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: autogain: avoid very low exposure values
Hans de Goede [Thu, 1 Oct 2009 15:11:47 +0000 (17:11 +0200)]
libv4l: autogain: avoid very low exposure values

Determine a value below which we try to not lower the exposure,
as most exposure controls tend to jump with big steps in the low
range, causing oscilation, so we prefer to use gain when exposure
has hit this value.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: avoid overshooting when doing autogain
Hans de Goede [Thu, 1 Oct 2009 10:04:14 +0000 (12:04 +0200)]
libv4l: avoid overshooting when doing autogain

If we were decreasing gain/expo and change to increasing, or vica versa,
half the number of steps to avoid overshooting and oscilating.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down devices table
Hans de Goede [Thu, 1 Oct 2009 06:29:58 +0000 (08:29 +0200)]
libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down devices table
Hans de Goede [Wed, 30 Sep 2009 08:05:38 +0000 (10:05 +0200)]
libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down devices table
Hans de Goede [Thu, 24 Sep 2009 00:49:29 +0000 (17:49 -0700)]
libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down devices table
realKano@directbox.com [Fri, 18 Sep 2009 10:48:09 +0000 (12:48 +0200)]
libv4l: update upside down devices table

Priority: normal

Signed-off-by: realKano@directbox.com <realKano@directbox.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down devices table
Hans de Goede [Fri, 18 Sep 2009 06:21:37 +0000 (08:21 +0200)]
libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down devices table
Hans de Goede [Fri, 11 Sep 2009 06:16:15 +0000 (08:16 +0200)]
libv4l: update upside down devices table

Revert bad upside down device table patch for the Asus X71SL
(wrong DMI strings) from Paul Sladen, and add a new entry with the
correct strings.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: Check for hardware autogain before enabling software autogain
Hans de Goede [Fri, 11 Sep 2009 06:09:17 +0000 (08:09 +0200)]
libv4l: Check for hardware autogain before enabling software autogain

Some USB-ID's may use different sensors, and in some cases some of these
sensors have hardware autogain, while others need software autogain. One
example of this is 046d:0840, this patch also enables software autogain for
camera's with this usb id (if the sensor does not have hardware autogain).

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down devices table
Hans de Goede [Wed, 9 Sep 2009 10:16:16 +0000 (12:16 +0200)]
libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: Add Chicony CNF7129 to upside down list
Onur Küçük [Wed, 9 Sep 2009 10:13:15 +0000 (12:13 +0200)]
libv4l: Add Chicony CNF7129 to upside down list

Priority: normal

Signed-off-by: Onur Küçük <onur@pardus.org.tr>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down devices table
Hans de Goede [Mon, 7 Sep 2009 09:20:22 +0000 (11:20 +0200)]
libv4l: update upside down devices table

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down devices table
Hans de Goede [Mon, 7 Sep 2009 08:32:35 +0000 (10:32 +0200)]
libv4l: update upside down devices table

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agomerge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-utils
Douglas Schilling Landgraf [Mon, 22 Feb 2010 13:58:43 +0000 (10:58 -0300)]
merge: www.linuxtv.org/hg/~hverkuil/v4l-dvb-utils

From: Douglas Schilling Landgraf <dougsland@redhat.com>

Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
14 years agov4l2-apps/util: Add parse-usbsnoop.php
Douglas Schilling Landgraf [Mon, 22 Feb 2010 00:00:16 +0000 (21:00 -0300)]
v4l2-apps/util: Add parse-usbsnoop.php

From: Douglas Schilling Landgraf <dougsland@redhat.com>

Priority: normal

Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
14 years agoqv4l2: fix error handling and initialization bugs
Hans Verkuil [Sat, 20 Feb 2010 13:06:05 +0000 (14:06 +0100)]
qv4l2: fix error handling and initialization bugs

From: Hans Verkuil <hverkuil@xs4all.nl>

The streaming I/O detection was flawed when used with videobuf. The
v4l2_buffer struct could contain uninitialized fields that would result
in videobuf errors. The application did not check for qbuf/dqbuf error
codes.

Priority: normal

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2-apps/util/parse_em28xx.pl: Add %reg_map 0x34, 0x35, 0x36, 0x37
Douglas Schilling Landgraf [Tue, 19 Jan 2010 18:17:31 +0000 (16:17 -0200)]
v4l2-apps/util/parse_em28xx.pl: Add %reg_map 0x34, 0x35, 0x36, 0x37

From: Franklin Meng <fmeng2002@yahoo.com>

Priority: normal

Signed-off-by: Franklin Meng <fmeng2002@yahoo.com>
[dougsland@redhat.com: fixed a reject due to a change in parse_em28xx.pl]
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
14 years agov4l2-apps/util/parse-sniffusb2.pl: new version
Douglas Schilling Landgraf [Tue, 19 Jan 2010 18:04:51 +0000 (16:04 -0200)]
v4l2-apps/util/parse-sniffusb2.pl: new version

From: Franklin Meng <fmeng2002@yahoo.com>

Priority: normal

Signed-off-by: Franklin Meng <fmeng2002@yahoo.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
14 years agokeycodes: update to reflect the IR code move to /media/IR
Mauro Carvalho Chehab [Mon, 14 Dec 2009 05:57:01 +0000 (03:57 -0200)]
keycodes: update to reflect the IR code move to /media/IR

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agomerge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-qv4l2
Mauro Carvalho Chehab [Wed, 25 Nov 2009 19:11:35 +0000 (17:11 -0200)]
merge: www.linuxtv.org/hg/~hverkuil/v4l-dvb-qv4l2

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agomerge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-misc
Mauro Carvalho Chehab [Wed, 25 Nov 2009 18:48:18 +0000 (16:48 -0200)]
merge: www.linuxtv.org/hg/~hverkuil/v4l-dvb-misc

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agodecode_tm6000: fix compile warning
Hans Verkuil [Wed, 25 Nov 2009 17:56:38 +0000 (18:56 +0100)]
decode_tm6000: fix compile warning

From: Hans Verkuil <hverkuil@xs4all.nl>

Trivial fix for this compile warning:

decode_tm6000.c:133: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'

Priority: normal

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2-apps: add qv4l2 for Qt4
Hans Verkuil [Wed, 25 Nov 2009 17:21:21 +0000 (18:21 +0100)]
v4l2-apps: add qv4l2 for Qt4

From: Hans Verkuil <hverkuil@xs4all.nl>

This Qt4 version of qv4l2 is much improved compared to the Qt3 version.
It adds support for the libv4l wrappers and it can capture as well.

There are still many improvements that can be made, but it is time to
get this version merged so people can start playing with it.

Priority: normal

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2-apps: move qv4l2 to qv4l2-qt3
Hans Verkuil [Wed, 25 Nov 2009 17:14:10 +0000 (18:14 +0100)]
v4l2-apps: move qv4l2 to qv4l2-qt3

From: Hans Verkuil <hverkuil@xs4all.nl>

This will make room for the qv4l2-qt4 version of this tool.

Priority: normal

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2-apps: fix the distclean makerules
Hans Verkuil [Wed, 25 Nov 2009 17:10:26 +0000 (18:10 +0100)]
v4l2-apps: fix the distclean makerules

From: Hans Verkuil <hverkuil@xs4all.nl>

Pass the distclean target on to qv4l2 for proper cleanup.

Priority: normal

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2-apps: fix qv4l2 build
Hans Verkuil [Wed, 25 Nov 2009 16:22:35 +0000 (17:22 +0100)]
v4l2-apps: fix qv4l2 build

From: Hans Verkuil <hverkuil@xs4all.nl>

Don't build qv4l2 if qt3 is not installed.

Priority: normal

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agoparse_em28xx.pl: fix parsing of i2c send/receive messages
Mauro Carvalho Chehab [Wed, 25 Nov 2009 10:20:56 +0000 (08:20 -0200)]
parse_em28xx.pl: fix parsing of i2c send/receive messages

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: fix Makefile include dir references
Mauro Carvalho Chehab [Fri, 20 Nov 2009 11:47:40 +0000 (12:47 +0100)]
libv4l: fix Makefile include dir references

From: Hans Verkuil <hverkuil@xs4all.nl>

libv4l should use the includes generated from the originals in v4l-dvb.
Apparently libv4l was moved up a level in the tree, so now -I../../../include
should become -I../../include.

Priority: normal

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agov4l2-dbg: report fail reason to the user
Mauro Carvalho Chehab [Tue, 24 Nov 2009 17:18:02 +0000 (15:18 -0200)]
v4l2-dbg: report fail reason to the user

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Report the fail reason to the user when writing a register even if
the verbose mode is switched off.

Remove duplicated code ioctl() call which may cause different ioctl()
function call in case of verbose and non verbose if not handled carefully.

Priority: normal

[hverkuil@xs4all.nl: minor additional cleanup in doioctl()]
[mchehab@redhat.com: As I've already applied the original version, apply the diff version now]
Signed-off-by: Marton Nemeth <nm127@freemail.hu>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agodecode_tm6000: fix compilation
Mauro Carvalho Chehab [Tue, 24 Nov 2009 16:50:17 +0000 (14:50 -0200)]
decode_tm6000: fix compilation

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Didn't compile due to broken library/header paths.

Priority: normal

[mchehab@redhat.com: Fix a merge conflict]
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agov4l2-dbg: report fail reason to the user
Mauro Carvalho Chehab [Sun, 15 Nov 2009 10:33:10 +0000 (11:33 +0100)]
v4l2-dbg: report fail reason to the user

From: Marton Nemeth <nm127@freemail.hu>

Report the fail reason to the user when writing a register even if
the verbose mode is switched off.

Remove duplicated code ioctl() call which may cause different ioctl()
function call in case of verbose and non verbose if not handled carefully.

Priority: normal

Signed-off-by: Marton Nemeth <nm127@freemail.hu>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
[hverkuil@xs4all.nl: minor additional cleanup in doioctl()]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agov4l2-dbg: report fail reason to the user
Mauro Carvalho Chehab [Thu, 12 Nov 2009 08:16:11 +0000 (08:16 +0000)]
v4l2-dbg: report fail reason to the user

From: Márton Németh <nm127@freemail.hu>

Report the fail reason to the user when writing a register even if
the verbose mode is switched off.

Remove duplicated code ioctl() call which may cause different ioctl()
function call in case of verbose and non verbose if not handled carefully.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agodecode_tm6000: fix include path
Mauro Carvalho Chehab [Thu, 12 Nov 2009 06:52:51 +0000 (06:52 +0000)]
decode_tm6000: fix include path

From: Márton Németh <nm127@freemail.hu>

The include path is changed from ../lib to ../lib4vl2util .

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agopixfmt-test: fix VIDIOC_G_STD call for webcams
Mauro Carvalho Chehab [Tue, 3 Nov 2009 04:14:18 +0000 (04:14 +0000)]
pixfmt-test: fix VIDIOC_G_STD call for webcams

From: Márton Németh <nm127@freemail.hu>

Webcams may return -1 and errno=EINVAL when there is no standard which
they support. Handle this case in pixfmt-test.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoAdd a list of known issues to v4l2-apps
Mauro Carvalho Chehab [Wed, 18 Nov 2009 07:12:04 +0000 (05:12 -0200)]
Add a list of known issues to v4l2-apps

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agov4l2-ctl: output the status and std field of VIDIOC_ENUMINPUT/OUTPUT
Hans Verkuil [Thu, 5 Nov 2009 14:03:17 +0000 (15:03 +0100)]
v4l2-ctl: output the status and std field of VIDIOC_ENUMINPUT/OUTPUT

From: Sigmund Augdal <sigmund@snap.tv>

Priority: normal

Signed-off-by: Sigmund Augdal <sigmund@snap.tv>
[hverkuil@xs4all.nl: improve flags2s and v4l2_std_id printing]
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2-ctl: Round signal strength value to nearest integer
Hans Verkuil [Thu, 5 Nov 2009 13:28:37 +0000 (14:28 +0100)]
v4l2-ctl: Round signal strength value to nearest integer

From: Sigmund Augdal <sigmund@snap.tv>

Round signal strength value to nearest integer, rather than rounding down when
converting to percentage.

Priority: normal

Signed-off-by: Sigmund Augdal <sigmund@snap.tv>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2-ctl: Added support for VIDIOC_QUERYSTD
Hans Verkuil [Thu, 5 Nov 2009 13:26:57 +0000 (14:26 +0100)]
v4l2-ctl: Added support for VIDIOC_QUERYSTD

From: Sigmund Augdal <sigmund@snap.tv>

Priority: normal

Signed-off-by: Sigmund Augdal <sigmund@snap.tv>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agolibv4l - spca561: Have static decoding tables
Douglas Schilling Landgraf [Wed, 4 Nov 2009 18:47:24 +0000 (13:47 -0500)]
libv4l - spca561: Have static decoding tables

From: Jean-Francois Moine <moinejf@free.fr>

libv4l - spca561: Have static decoding tables

Priority: normal

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
CC: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
14 years agov4lgrab: backport changes on this example file
Mauro Carvalho Chehab [Tue, 3 Nov 2009 23:46:58 +0000 (21:46 -0200)]
v4lgrab: backport changes on this example file

From: Mauro Carvalho Chehab <mchehab@redhat.com>

kernel-sync:

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agocapture-example: As this program is part of V4L2 API, better comment it
Mauro Carvalho Chehab [Wed, 16 Sep 2009 10:36:50 +0000 (07:36 -0300)]
capture-example: As this program is part of V4L2 API, better comment it

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoImprove decode_tm6000 for better usage of mmap method
Mauro Carvalho Chehab [Mon, 14 Sep 2009 13:08:44 +0000 (10:08 -0300)]
Improve decode_tm6000 for better usage of mmap method

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Now, mmap method is the default, when reading from tm6000 V4L2 device.

Also, now, it is possible to specify the channel frequency via command
line, and the number of video buffers to be used.

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agotm6000: Add support for mmap
Mauro Carvalho Chehab [Tue, 21 Aug 2007 20:33:10 +0000 (17:33 -0300)]
tm6000: Add support for mmap

From: Mauro Carvalho Chehab <mchehab@infradead.org>

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
15 years agoStart userspace decoding application for tm6000
Mauro Carvalho Chehab [Mon, 14 Sep 2009 12:49:16 +0000 (09:49 -0300)]
Start userspace decoding application for tm6000

From: Mauro Carvalho Chehab <mchehab@redhat.com>

This small application allows testing tm6000 raw format decoding in
software.

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoAdd conexant cx25821 driver
Mauro Carvalho Chehab [Sun, 13 Sep 2009 14:13:59 +0000 (11:13 -0300)]
Add conexant cx25821 driver

From: Palash Bandyopadhyay <Palash.Bandyopadhyay@conexant.com>

Add conexant cx25821 driver release v106 of the Athena driver.

Priority: normal

Signed-off-by: Palash Bandyopadhyay <palash.bandyopadhyay@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agomerge: http://linuxtv.org/hg/~hgoede/libv4l/
Mauro Carvalho Chehab [Mon, 7 Sep 2009 02:52:29 +0000 (23:52 -0300)]
merge: http://linuxtv.org/hg/~hgoede/libv4l/

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Sun, 6 Sep 2009 08:41:37 +0000 (10:41 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: enable libv4l2 usage with devices which just support read()
hans@rhel5-devel.localdomain [Thu, 3 Sep 2009 11:28:26 +0000 (13:28 +0200)]
libv4l: enable libv4l2 usage with devices which just support read()

From: Hans de Goede <hdegoede@redhat.com>

libv4l: enable libv4l2 usage with devices which just support read(), this
allows applications to work with mpeg capture devices like the cx18, which
only do read() and only support mpeg and some exotic raw format
(which libv4l can convert).

Thanks to Simon Farnsworth <simon.farnsworth@onelan.com> for testing this.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Wed, 2 Sep 2009 09:25:10 +0000 (11:25 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Wed, 2 Sep 2009 09:16:18 +0000 (11:16 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: beginning of 0.6.2 dev cycle
hans@rhel5-devel.localdomain [Wed, 2 Sep 2009 09:10:22 +0000 (11:10 +0200)]
libv4l: beginning of 0.6.2 dev cycle

From: Hans de Goede <hdegoede@redhat.com>

libv4l: beginning of 0.6.2 dev cycle

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Document that passing in NULL as 3th arg to v4l2_ioctl is not allowed
hans@rhel5-devel.localdomain [Tue, 1 Sep 2009 08:03:27 +0000 (10:03 +0200)]
libv4l: Document that passing in NULL as 3th arg to v4l2_ioctl is not allowed

From: Hans de Goede <hdegoede@redhat.com>

libv4l: Document that passing in NULL as 3th arg to v4l2_ioctl is not allowed

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Tue, 1 Sep 2009 07:58:26 +0000 (09:58 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Report V4L2_FMT_FLAG_EMULATED in v4l2_fmtdesc flags for emulated formats
hans@rhel5-devel.localdomain [Mon, 31 Aug 2009 14:40:33 +0000 (16:40 +0200)]
libv4l: Report V4L2_FMT_FLAG_EMULATED in v4l2_fmtdesc flags for emulated formats

From: Hans de Goede <hdegoede@redhat.com>

libv4l: Report V4L2_FMT_FLAG_EMULATED in v4l2_fmtdesc flags for emulated formats

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 31 Aug 2009 14:15:48 +0000 (16:15 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 31 Aug 2009 08:52:12 +0000 (10:52 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agokeytable: Don't display KEY_RESERVED codes
Mauro Carvalho Chehab [Sun, 30 Aug 2009 01:11:23 +0000 (22:11 -0300)]
keytable: Don't display KEY_RESERVED codes

From: Mauro Carvalho Chehab <mchehab@redhat.com>

As KEY_RESERVED is used for some spare space at the keycode table, don't
return it while displaying the current table

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agokeytable: Prints a more comprehensive error message
Mauro Carvalho Chehab [Sun, 30 Aug 2009 01:05:06 +0000 (22:05 -0300)]
keytable: Prints a more comprehensive error message

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agogen_keytables.pl: Fix parsing for some IR tables
Mauro Carvalho Chehab [Sun, 30 Aug 2009 01:04:40 +0000 (22:04 -0300)]
gen_keytables.pl: Fix parsing for some IR tables

From: Mauro Carvalho Chehab <mchehab@redhat.com>

There are some tables where the last value ends with }

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agogen_keytables: generate also dvb-usb.h based keybables
Mauro Carvalho Chehab [Sat, 29 Aug 2009 18:14:22 +0000 (15:14 -0300)]
gen_keytables: generate also dvb-usb.h based keybables

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agogen_keytables.pl: Change it to work with the new format
Mauro Carvalho Chehab [Sat, 29 Aug 2009 17:19:07 +0000 (14:19 -0300)]
gen_keytables.pl: Change it to work with the new format

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agomerge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb
Mauro Carvalho Chehab [Sun, 30 Aug 2009 21:48:23 +0000 (18:48 -0300)]
merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Sat, 29 Aug 2009 10:23:17 +0000 (12:23 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agokeytable: Improve it to work with 16 bit keycodes
Mauro Carvalho Chehab [Fri, 28 Aug 2009 07:12:06 +0000 (04:12 -0300)]
keytable: Improve it to work with 16 bit keycodes

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agov4l2-sysfs-path: fix compile warning.
Hans Verkuil [Wed, 26 Aug 2009 20:34:01 +0000 (22:34 +0200)]
v4l2-sysfs-path: fix compile warning.

From: Hans Verkuil <hverkuil@xs4all.nl>

Priority: normal

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
15 years agov4l2-ctl: add support for enumerating frame sizes and intervals
Hans Verkuil [Wed, 26 Aug 2009 20:32:44 +0000 (22:32 +0200)]
v4l2-ctl: add support for enumerating frame sizes and intervals

From: Hans Verkuil <hverkuil@xs4all.nl>

Priority: normal

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
15 years agolibv4l: actually compile the sn9c2028 decompression code
hans@rhel5-devel.localdomain [Tue, 25 Aug 2009 08:46:47 +0000 (10:46 +0200)]
libv4l: actually compile the sn9c2028 decompression code

From: Hans de Goede <hdegoede@redhat.com>

libv4l: actually compile the sn9c2028 decompression code

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: support decompressing sn9c2028 compressed bayer
hans@rhel5-devel.localdomain [Tue, 25 Aug 2009 08:42:25 +0000 (10:42 +0200)]
libv4l: support decompressing sn9c2028 compressed bayer

From: Theodore Kilgore <kilgota@banach.math.auburn.edu>

libv4l: support decompressing sn9c2028 compressed bayer

Priority: normal

Signed-off-by: Theodore Kilgore <kilgota@banach.math.auburn.edu>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Tue, 25 Aug 2009 08:18:06 +0000 (10:18 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: add 06f8:3009 pac7302 90 degrees rotated cam to the device table
hans@rhel5-devel.localdomain [Mon, 24 Aug 2009 07:52:55 +0000 (09:52 +0200)]
libv4l: add 06f8:3009 pac7302 90 degrees rotated cam to the device table

From: Stéphane Marguet (Stemp) <smarguet <at> gmail.com>

libv4l: add 06f8:3009 pac7302 90 degrees rotated cam to the device table

Priority: normal

Signed-off-by: Stéphane Marguet (Stemp) <smarguet <at> gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 24 Aug 2009 07:31:32 +0000 (09:31 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: make get / set control use libv4lconvert functions
hans@rhel5-devel.localdomain [Thu, 20 Aug 2009 09:42:57 +0000 (11:42 +0200)]
libv4l: make get / set control use libv4lconvert functions

From: Hans de Goede <hdegoede@redhat.com>

libv4l: make get / set control use libv4lconvert functions

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Thu, 20 Aug 2009 09:34:10 +0000 (11:34 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Change controls shm segment name to include the username
hans@rhel5-devel.localdomain [Thu, 20 Aug 2009 09:28:51 +0000 (11:28 +0200)]
libv4l: Change controls shm segment name to include the username

From: Gregor Jasny <gjasny@googlemail.com>

Change controls shm segment name to include the username, as it is only
writable by the user (this means libv4l controls are per user)

Priority: normal

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 17 Aug 2009 07:35:56 +0000 (09:35 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Fri, 14 Aug 2009 08:05:18 +0000 (10:05 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Do not hide JPG / MJPG pixfmt from applications
hans@rhel5-devel.localdomain [Fri, 14 Aug 2009 07:57:02 +0000 (09:57 +0200)]
libv4l: Do not hide JPG / MJPG pixfmt from applications

From: Hans de Goede <hdegoede@redhat.com>

Some applications want to use jpg format if possible, so do not hide
it from the apps (do not assume it always needs conversion)

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Fix reqbuf Device or Resource busy error when using read
hans@rhel5-devel.localdomain [Fri, 14 Aug 2009 07:50:33 +0000 (09:50 +0200)]
libv4l: Fix reqbuf Device or Resource busy error when using read

From: Hans de Goede <hdegoede@redhat.com>

Some applications such as v4l2-apps/test/capture-example.c, in read mode
use select() together with read() and do a select() before the first read().

This causes issues together with certain drivers (gspca for example),
do not allow switching from read mode to mmap mode and they assume read()
mode if a select or poll() is done before any buffers are requested.

When not using libv4l2, this is not an issue but libv4l2 uses mmap mode
under the hood when converting as that safes a memcpy for each frame read.

This fails with such drivers when the application has done a select() before
the first read() as the driver now is in "read mode" and disallows switching
to mmap mode.

This patch fixes this by falling back to using read() for v4l2_read() when
using mmap mode fails.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Also look for dmi info under /sys/class/dmi/id
hans@rhel5-devel.localdomain [Wed, 12 Aug 2009 07:15:17 +0000 (09:15 +0200)]
libv4l: Also look for dmi info under /sys/class/dmi/id

From: Hans de Goede <hdegoede@redhat.com>

libv4l was looking for dmi strings in sysfs under /sys/devices/virtual/dmi/id
but with some kernel configurations this does not exist. It turns out that
the dmi strings do exist under /sys/class/dmi/id here. It seems that all
systems with dmi info in sysfs have /sys/class/dmi/id so default to using
that instead. To be sure fall back to /sys/devices/virtual/dmi/id
(the old behavor) when /sys/class/dmi/id is not found.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Tue, 11 Aug 2009 12:04:30 +0000 (14:04 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 10 Aug 2009 08:02:44 +0000 (10:02 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Sun, 9 Aug 2009 15:02:39 +0000 (17:02 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: fix upside down devices table ordering
hans@rhel5-devel.localdomain [Sun, 9 Aug 2009 14:56:38 +0000 (16:56 +0200)]
libv4l: fix upside down devices table ordering

From: Hans de Goede <hdegoede@redhat.com>

libv4l: fix upside down devices table ordering

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: fix a compiler warning
hans@rhel5-devel.localdomain [Fri, 7 Aug 2009 15:26:11 +0000 (17:26 +0200)]
libv4l: fix a compiler warning

From: Hans de Goede <hdegoede@redhat.com>

libv4l: fix a compiler warning

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update my email address
hans@rhel5-devel.localdomain [Wed, 5 Aug 2009 10:28:07 +0000 (12:28 +0200)]
libv4l: update my email address

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update my email address

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: README improvements
hans@rhel5-devel.localdomain [Wed, 5 Aug 2009 10:25:06 +0000 (12:25 +0200)]
libv4l: README improvements

From: Hans de Goede <hdegoede@redhat.com>

libv4l: README improvements

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: README improvements
hans@rhel5-devel.localdomain [Wed, 5 Aug 2009 10:19:55 +0000 (12:19 +0200)]
libv4l: README improvements

From: bifferos <bifferos@yahoo.co.uk>

libv4l: README improvements

Priority: normal

Signed-off-by: bifferos <bifferos@yahoo.co.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Wed, 5 Aug 2009 09:53:16 +0000 (11:53 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>