platform/upstream/v4l-utils.git
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>
15 years agolibv4l: fixup 320x240 output for pac7302 cameras
hans@rhel5-devel.localdomain [Mon, 3 Aug 2009 11:17:05 +0000 (13:17 +0200)]
libv4l: fixup 320x240 output for pac7302 cameras

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

libv4l: fixup 320x240 output for pac7302 cameras

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agov4l2-ctl: add support for string controls
Mauro Carvalho Chehab [Sun, 2 Aug 2009 10:07:00 +0000 (12:07 +0200)]
v4l2-ctl: add support for string controls

From: Hans Verkuil <hverkuil@xs4all.nl>

Add support for string controls to v4l2-ctl.
Also refactor the code to generalize the handling of control classes.

Priority: normal

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agov4l2-ctl: modulator bug fixes
Mauro Carvalho Chehab [Sun, 2 Aug 2009 10:04:23 +0000 (12:04 +0200)]
v4l2-ctl: modulator bug fixes

From: Hans Verkuil <hverkuil@xs4all.nl>

Setting the modulator did not take all txsubchans combinations and the
correct V4L2_TUNER_CAP_LOW into account (it used V4L2_TUNER_CAP_LOW
from G_TUNER instead of G_MODULATOR).

Priority: normal

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agov4l2-sysfs-path: print device minor/major of the associated devices
Mauro Carvalho Chehab [Sun, 23 Aug 2009 15:45:08 +0000 (12:45 -0300)]
v4l2-sysfs-path: print device minor/major of the associated devices

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

Instead of just printing the associated devices, go further and display
the device major/minors and the associated event interface. The output
will look like:

device     = /dev/video0
bus info   = usb-0000:00:1d.7-8
sysfs path = /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8
Associated devices:
        usb_endpoint:usbdev1.8_ep00 (dev 252,20)
        i2c-adapter:i2c-4
        input:input9:event6 (dev 13,70)
        sound:pcmC1D0c (dev 116,9)
        sound:dsp1 (dev 14,19)
        sound:audio1 (dev 14,20)
        sound:controlC1 (dev 116,10)
        sound:mixer1 (dev 14,16)
        dvb:dvb0.frontend0 (dev 212,0)
        dvb:dvb0.demux0 (dev 212,1)
        dvb:dvb0.dvr0 (dev 212,2)
        dvb:dvb0.net0 (dev 212,3)

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agofirmware-tool: fix compilation
Mauro Carvalho Chehab [Sun, 23 Aug 2009 03:22:30 +0000 (00:22 -0300)]
firmware-tool: fix compilation

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

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agov4l2-sysfs-path: print the subdevs associated with that device
Mauro Carvalho Chehab [Sun, 23 Aug 2009 02:17:30 +0000 (23:17 -0300)]
v4l2-sysfs-path: print the subdevs associated with that device

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

The sysfs interface stores links to the other devices associated with a
V4L link.

Improves this util to display those associated subdevices. This small
tool can be used inside other V4L applications to properly associate
audio, input, sound and dvb devices with a /dev/video? file.

device     = /dev/video0
bus info   = usb-0000:00:1d.7-8
sysfs path = /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8
Subdevs: usb_endpoint:usbdev1.8_ep00 i2c-adapter:i2c-4 input:input8
sound:pcmC1D0c sound:dsp1 sound:audio1 sound:controlC1 sound:mixer1
dvb:dvb0.frontend0 dvb:dvb0.demux0 dvb:dvb0.dvr0 dvb:dvb0.net0

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoDocument libv4l at V4L2 API specs
Mauro Carvalho Chehab [Mon, 17 Aug 2009 00:09:23 +0000 (21:09 -0300)]
Document libv4l at V4L2 API specs

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

Since applications aren't prepared to handle all V4L2 available formats,
an effort is done to have a library capable of understanding especially
the proprietary formats.

This patch documents this library, and adds v4l2grab.c as an example on
how to use it.

Parts of the text are based at the libv4l README file (c) by Hans de
Goede.

Thanks to Hans de Goede <hdegoede@redhat.com> for his good work with
libv4l.

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agomerge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-misc
Mauro Carvalho Chehab [Tue, 11 Aug 2009 14:46:42 +0000 (11:46 -0300)]
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>
15 years agov4l2-dbg: Add register maps for mt9v011
Mauro Carvalho Chehab [Sun, 9 Aug 2009 22:58:14 +0000 (19:58 -0300)]
v4l2-dbg: Add register maps for mt9v011

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

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agov4l2-ctl: fix help message
Mauro Carvalho Chehab [Fri, 7 Aug 2009 14:48:52 +0000 (16:48 +0200)]
v4l2-ctl: fix help message

From: hermann pitton <hermann-pitton@arcor.de>

For -p (--set-parm) v4l2-ctl also prints G_PARMS too.

  -P, --get-parm     display video parameters [VIDIOC_G_PARMS]
  -p, --set-parm     set video rate in fps [VIDIOC_G_PARMS]

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agov4l2-ctl: fix get/set-parm bugs and add get/set-output-parm support
Hans Verkuil [Fri, 7 Aug 2009 10:39:31 +0000 (12:39 +0200)]
v4l2-ctl: fix get/set-parm bugs and add get/set-output-parm support

From: Hans Verkuil <hverkuil@xs4all.nl>

Fixed several get/set-parm bugs, cleaned it up a bit and reformatted the
output to conform to the output of the other get options.

Implemented get/set-output-parm to complete the VIDIOC_G/S_PARM support.

Priority: normal

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
15 years agov4l2-ctl: Add support for VIDIOC_[G|S]_PARM
Mauro Carvalho Chehab [Thu, 6 Aug 2009 23:32:01 +0000 (20:32 -0300)]
v4l2-ctl: Add support for VIDIOC_[G|S]_PARM

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

Those ioctls are used to control streaming frame rate.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 27 Jul 2009 12:20:59 +0000 (14:20 +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: allow use of System / Product DMI strings in upside down cam list
hans@rhel5-devel.localdomain [Sun, 26 Jul 2009 08:41:04 +0000 (10:41 +0200)]
libv4l: allow use of System / Product DMI strings in upside down cam list

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

libv4l: allow use of System / Product DMI strings in upside down cam list

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Sat, 25 Jul 2009 17:56:33 +0000 (19:56 +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 agomerge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-rds
Mauro Carvalho Chehab [Tue, 21 Jul 2009 00:52:44 +0000 (21:52 -0300)]
merge: www.linuxtv.org/hg/~hverkuil/v4l-dvb-rds

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

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agov4l2-ctl: fix broken camera control support.
Hans Verkuil [Mon, 20 Jul 2009 14:20:36 +0000 (16:20 +0200)]
v4l2-ctl: fix broken camera control support.

From: Hans Verkuil <hverkuil@xs4all.nl>

v4l2-ctl didn't properly support the camera controls.

Priority: normal

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
15 years agov4l2grab: fix build rule.
Hans Verkuil [Mon, 20 Jul 2009 12:22:20 +0000 (14:22 +0200)]
v4l2grab: fix build rule.

From: Hans Verkuil <hverkuil@xs4all.nl>

Priority: normal

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
15 years agolibv4l: Make library subdir name configurable
hans@rhel5-devel.localdomain [Thu, 16 Jul 2009 15:03:40 +0000 (17:03 +0200)]
libv4l: Make library subdir name configurable

From: Gregor Jasny <gjasny@googlemail.com>

While studying the Debian library package name, I noticed that private

So /usr/lib/libv4l should become /usr/lib/libv4l0. As this would break
existing scripts, I suggest to start versioning with the next soname bump.

The line in the makefiles will then read:

ifeq ($(LIBSUBDIR),)
LIBSUBDIR = libv4l$(LIB_RELEASE)
endif

Unfortunately, the private subdirs in Debian must be named after the library
package, which would be libv4l-0. Therefore I need to configure the
LIBSUBDIR at compile time.

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 [Tue, 14 Jul 2009 11:00:32 +0000 (13:00 +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>