platform/upstream/v4l-utils.git
14 years agocpia1.c: run through checkpatch.pl
Hans Verkuil [Wed, 28 Apr 2010 06:38:13 +0000 (08:38 +0200)]
cpia1.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agobayer.c: run through checkpatch.pl
Hans Verkuil [Wed, 28 Apr 2010 06:36:31 +0000 (08:36 +0200)]
bayer.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agoqv4l2: when calling TRY_FMT set pix.field to V4L2_FIELD_ANY
Hans Verkuil [Wed, 7 Apr 2010 22:17:49 +0000 (00:17 +0200)]
qv4l2: when calling TRY_FMT set pix.field to V4L2_FIELD_ANY

Setting it to V4L2_FIELD_ANY is better than using the value from
G_FMT. If that is e.g. FIELD_TOP, then 'trying' a larger height will
clamp that down to what a single field supports. Whereas FIELD_ANY
will just try to find the best field setting for the requested format.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2convert.c: run through checkpatch.pl
Hans Verkuil [Tue, 27 Apr 2010 10:31:09 +0000 (12:31 +0200)]
v4l2convert.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agolog.c: run through checkpatch.pl
Hans Verkuil [Tue, 27 Apr 2010 10:29:31 +0000 (12:29 +0200)]
log.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agolibv4l2.c: run through checkpatch.pl
Hans Verkuil [Tue, 27 Apr 2010 10:27:52 +0000 (12:27 +0200)]
libv4l2.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agolibv4l2-priv.h: run through checkpatch.pl
Hans Verkuil [Tue, 27 Apr 2010 10:06:24 +0000 (12:06 +0200)]
libv4l2-priv.h: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l1compat.c: run through checkpatch.pl
Hans Verkuil [Tue, 27 Apr 2010 10:04:47 +0000 (12:04 +0200)]
v4l1compat.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agolog.c: run through checkpatch.pl
Hans Verkuil [Tue, 27 Apr 2010 10:03:10 +0000 (12:03 +0200)]
log.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agolibv4l1-priv.h: run through checkpatch.pl
Hans Verkuil [Tue, 27 Apr 2010 09:52:06 +0000 (11:52 +0200)]
libv4l1-priv.h: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agolibv4l1.c: run through checkpatch.pl
Hans Verkuil [Tue, 27 Apr 2010 09:49:56 +0000 (11:49 +0200)]
libv4l1.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agolibv4l*: run headers through checkpatch.pl
Hans Verkuil [Tue, 27 Apr 2010 09:36:01 +0000 (11:36 +0200)]
libv4l*: run headers through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agoqv4l2: fix include directory
Hans Verkuil [Mon, 26 Apr 2010 07:46:43 +0000 (09:46 +0200)]
qv4l2: fix include directory

Add top-level include directory to the include list for qv4l2 and
qv4l2-qt3. Also add the thread config option for qv4l2-qt3.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agolibv4l: update upside-down device list
Hans de Goede [Mon, 26 Apr 2010 07:39:13 +0000 (09:39 +0200)]
libv4l: update upside-down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoqv4l2: when refreshing controls call queryctrl before setVal.
Hans Verkuil [Sat, 24 Apr 2010 11:41:21 +0000 (13:41 +0200)]
qv4l2: when refreshing controls call queryctrl before setVal.

setVal relies on correct control flags for the setWhat() call. So
we must update the control flags before calling setVal.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agoir-keytable: Add support for Sony and JVC protocols
Mauro Carvalho Chehab [Wed, 21 Apr 2010 02:11:55 +0000 (23:11 -0300)]
ir-keytable: Add support for Sony and JVC protocols

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down device list
Hans de Goede [Tue, 20 Apr 2010 10:57:51 +0000 (12:57 +0200)]
libv4l: update upside down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agolibv4l: update upside-down device table
Hans de Goede [Fri, 16 Apr 2010 15:29:38 +0000 (17:29 +0200)]
libv4l: update upside-down device table

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agolibv4l: update upside down device list
Hans de Goede [Fri, 16 Apr 2010 13:00:02 +0000 (15:00 +0200)]
libv4l: update upside down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agolibv4l: update upside down device table
Hans de Goede [Mon, 12 Apr 2010 07:39:53 +0000 (09:39 +0200)]
libv4l: update upside down device table

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoir-keycode: Add the install target
Mauro Carvalho Chehab [Sun, 11 Apr 2010 04:05:13 +0000 (01:05 -0300)]
ir-keycode: Add the install target

Install will copy the ir-keycode to the binary dir, copy the keymaps
into /etc/rc_keymaps, and add an example file (rc_maps.cfg.example) at
/etc/.

Currently, it is up to the user to edit the rc_maps.cfg to adapt for his
environment, and to create an udev rule, if needed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: Add an example for rc_maps.cfg
Mauro Carvalho Chehab [Sun, 11 Apr 2010 03:58:13 +0000 (00:58 -0300)]
keytable: Add an example for rc_maps.cfg

14 years agoir-keycode: Add support for table autoload
Mauro Carvalho Chehab [Sun, 11 Apr 2010 02:26:18 +0000 (23:26 -0300)]
ir-keycode: Add support for table autoload

This function is meant to be used by udev, to allow auto-loading a
keytable during module probing. It works in conjunction with a file
with a sintax like:

cx8800 * ./keycodes/rc5_hauppauge_new
* rc-avermedia-m135a-rm-jx ./keycodes/kworld_315u
saa7134 rc-avermedia-m135a-rm-jx ./keycodes/keycodes/nec_terratec_cinergy_xs
em28xx * ./keycodes/kworld_315u
* * ./keycodes/rc5_hauppauge_new

At the config file, the "*" means that any driver (or any table) will match
that criteria.

The file is processed from the first to the last line.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoir-keytable: add support for more than one protocol in a table
Mauro Carvalho Chehab [Sun, 11 Apr 2010 00:55:28 +0000 (21:55 -0300)]
ir-keytable: add support for more than one protocol in a table

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoir-keytable: Show enabled/current protocol(s) at read
Mauro Carvalho Chehab [Sun, 11 Apr 2010 00:46:35 +0000 (21:46 -0300)]
ir-keytable: Show enabled/current protocol(s) at read

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoir-keytable: Change protocol support if required by a keytable
Mauro Carvalho Chehab [Sun, 11 Apr 2010 00:38:41 +0000 (21:38 -0300)]
ir-keytable: Change protocol support if required by a keytable

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoir-keytable: Add the capability of changing the IR protocol
Mauro Carvalho Chehab [Sun, 11 Apr 2010 00:16:37 +0000 (21:16 -0300)]
ir-keytable: Add the capability of changing the IR protocol

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoir-keytable: Don't generate segmentation fault if no devices
Mauro Carvalho Chehab [Sat, 10 Apr 2010 17:34:07 +0000 (14:34 -0300)]
ir-keytable: Don't generate segmentation fault if no devices

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoir-keytable: Show enabled raw decoders
Mauro Carvalho Chehab [Sat, 10 Apr 2010 17:32:57 +0000 (14:32 -0300)]
ir-keytable: Show enabled raw decoders

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: make functions static to avoid gcc to complain
Mauro Carvalho Chehab [Sat, 10 Apr 2010 17:21:11 +0000 (14:21 -0300)]
keytable: make functions static to avoid gcc to complain

Thanks-to: Andy Walls <awalls@md.metrocast.net> for the hint

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoir-keytable: Get decoder capabilities from sysfs
Mauro Carvalho Chehab [Sat, 10 Apr 2010 15:40:03 +0000 (12:40 -0300)]
ir-keytable: Get decoder capabilities from sysfs

It will now show also the supported/current protocols, and identify
if the RC has a hardware or a software decoder:

Found /sys/class/rc/rc0/ (/dev/input/event8) with:
        Driver "saa7134", raw software decoder, table "rc-avermedia-m135a-rm-jx"
        Supported protocols: NEC RC-5 RC-6
Found /sys/class/rc/rc1/ (/dev/input/event9) with:
        Driver "cx88xx", hardware decoder, table "rc-pixelview-mk12"
        Supported protocols: other
        Current protocols: NEC
Found /sys/class/rc/rc2/ (/dev/input/event10) with:
        Driver "em28xx", hardware decoder, table "rc-rc5-hauppauge-new"
        Supported protocols: NEC RC-5
        Current protocols: RC-5

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoir-keytable: Put all driver values into a struct
Mauro Carvalho Chehab [Sat, 10 Apr 2010 14:43:41 +0000 (11:43 -0300)]
ir-keytable: Put all driver values into a struct

Now, instead of a series of static vars, all device information
is stored at rc_dev struct. With this change, get_attribs will
now fill the struct with all information that were retrieved from
the device sysfs nodes.

With this change, it is now easier to get additional info from the
RC sysfs nodes, and to provide a set_attribs function to change
data, like the supported protocols.

As a bonus, the list mode now provides more info about the RC
devices.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoir-keytable: remove gcc warning noise
Mauro Carvalho Chehab [Sat, 10 Apr 2010 14:20:45 +0000 (11:20 -0300)]
ir-keytable: remove gcc warning noise

gcc handling on -Wmissing-prototypes is stupid. It generates this warning:
keytable.c:366: warning: no previous prototype for ‘read_sysfs_uevents’

If the prototype for read_sysfs_uevents() is not declared twice.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoRemove unused vars from keytable and let gcc warn about that on Make.rules
Mauro Carvalho Chehab [Sat, 10 Apr 2010 14:17:13 +0000 (11:17 -0300)]
Remove unused vars from keytable and let gcc warn about that on Make.rules

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoir-keytable: List all RC devices if called without parameters
Mauro Carvalho Chehab [Sat, 10 Apr 2010 13:52:55 +0000 (10:52 -0300)]
ir-keytable: List all RC devices if called without parameters

Now, if called without any parameters, it will list the all RC
devices and the corresponding input event interface:

Found /sys/class/rc/rc0/: /dev/input/event8
Found /sys/class/rc/rc1/: /dev/input/event9
Found /sys/class/rc/rc2/: /dev/input/event10

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: Improve parser to get multiple results
Mauro Carvalho Chehab [Sat, 10 Apr 2010 13:38:13 +0000 (10:38 -0300)]
keytable: Improve parser to get multiple results

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoRename IR devices to just rc? instead or rcrcv?
Mauro Carvalho Chehab [Thu, 8 Apr 2010 02:32:01 +0000 (23:32 -0300)]
Rename IR devices to just rc? instead or rcrcv?

/sys/class/rc/rc? makes more sense than rcrcv?, as the same device may
share some common blocks with a IR transmitter.

As this were changed upstream, a similar patch needs to be added at the
utils.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: Rename Remote Controller sysfs nodes
Mauro Carvalho Chehab [Sun, 28 Mar 2010 03:03:03 +0000 (00:03 -0300)]
keytable: Rename Remote Controller sysfs nodes

While not too late, the sysfs name of the nodes that control Remote
Controllers were renamed to RC, to better reflect that the code can be used
not only by IR but also for other kinds of Remote Controllers.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: Fix error handling for sysfs node seek
Mauro Carvalho Chehab [Sun, 28 Mar 2010 03:01:46 +0000 (00:01 -0300)]
keytable: Fix error handling for sysfs node seek

Avoids a segmentation fault if the node doesn't exist.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoqv4l2: fix memory corruption and a wrong close sequence
Hans Verkuil [Mon, 5 Apr 2010 15:38:35 +0000 (17:38 +0200)]
qv4l2: fix memory corruption and a wrong close sequence

When allocating memory for a string control the wrong size was used.

When closing the video device (e.g. during exit) the signal mapper was
deleted after the dialog was destroyed. This caused lostFocus events to arrive
in the signal mapper's handler which then tried to access the already closed
video device. And that caused a confusing error message to appear.

This is now fixed by deleting the signal mapper first.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2-ctl: improve --log-status handling
Hans Verkuil [Sun, 4 Apr 2010 12:14:20 +0000 (14:14 +0200)]
v4l2-ctl: improve --log-status handling

Just search for 'START STATUS' instead of 'START STATUS CARD #'.
It doesn't always make sense to talk about 'CARD'.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agoqv4l2: user controls did not obey the update flag.
Hans Verkuil [Sun, 4 Apr 2010 10:45:02 +0000 (12:45 +0200)]
qv4l2: user controls did not obey the update flag.

The GUI now refreshes user controls correctly if they set the
flag V4L2_CTRL_FLAG_UPDATE.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2-ctl: fix handling of buttons, write-only controls and int64/string
Hans Verkuil [Sat, 3 Apr 2010 13:52:23 +0000 (15:52 +0200)]
v4l2-ctl: fix handling of buttons, write-only controls and int64/string

- Don't attempt to read button controls or write-only controls
  when make the control list.
- If a user or old-style private control is of type int64 or string,
  then use the extended control mechanism for those control classes.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agoqv4l2: disable grabbed controls in the GUI
Hans Verkuil [Sat, 3 Apr 2010 13:37:02 +0000 (15:37 +0200)]
qv4l2: disable grabbed controls in the GUI

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agoqv4l2: add string control support
Hans Verkuil [Sat, 3 Apr 2010 13:15:10 +0000 (15:15 +0200)]
qv4l2: add string control support

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agoqv4l2: move qv4l2-qt3 to contrib, rename qv4l2-qt4 directory to qv4l2.
Hans Verkuil [Sat, 3 Apr 2010 10:40:47 +0000 (12:40 +0200)]
qv4l2: move qv4l2-qt3 to contrib, rename qv4l2-qt4 directory to qv4l2.

qv4l2-qt3 is effectively unmaintained. Move it to contrib and rename the
executable to qv4l2-qt3. If someone needs a Qt3 tool, then they can use this.

The qv4l2-qt4 directory can now be renamed to qv4l2 and the Makefile is
modified to only build if qt4 is installed.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agolibv4l: update upside down device list
Hans de Goede [Thu, 1 Apr 2010 06:37:29 +0000 (08:37 +0200)]
libv4l: update upside down device list

14 years agolibv4l: update upside down device list
Hans de Goede [Mon, 29 Mar 2010 08:54:23 +0000 (10:54 +0200)]
libv4l: update upside down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agolibv4l: update upside-down device list
Hans de Goede [Mon, 22 Mar 2010 08:51:13 +0000 (09:51 +0100)]
libv4l: update upside-down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agokeytable: Fix a memory allocation trouble
Mauro Carvalho Chehab [Sun, 21 Mar 2010 20:13:02 +0000 (17:13 -0300)]
keytable: Fix a memory allocation trouble

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: split each keytable operation into a separate function
Mauro Carvalho Chehab [Sun, 14 Mar 2010 02:21:29 +0000 (23:21 -0300)]
keytable: split each keytable operation into a separate function

This change will allow an easier handling for the new auto mode.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down device table
Hans de Goede [Fri, 19 Mar 2010 06:28:08 +0000 (07:28 +0100)]
libv4l: update upside down device table

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoChange version to 0.7.92-test
Hans de Goede [Fri, 19 Mar 2010 06:04:21 +0000 (07:04 +0100)]
Change version to 0.7.92-test

14 years agoREADME.lib: document how to port apps to libv4l
Gregor Jasny [Tue, 16 Mar 2010 08:28:59 +0000 (09:28 +0100)]
README.lib: document how to port apps to libv4l

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoqv4l2: fix UVC support
Hans Verkuil [Sat, 13 Mar 2010 22:19:48 +0000 (23:19 +0100)]
qv4l2: fix UVC support

The workaround for drivers using videobuf broke the UVC support.
Fix this.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agokeytable: update all keycode tables with the most recent kernel ones.
Mauro Carvalho Chehab [Sun, 14 Mar 2010 01:52:19 +0000 (22:52 -0300)]
keytable: update all keycode tables with the most recent kernel ones.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: Adds parser for table name and type
Mauro Carvalho Chehab [Sun, 14 Mar 2010 01:48:56 +0000 (22:48 -0300)]
keytable: Adds parser for table name and type

While here, make parser less pedantic, by accepting blank
lines and comments. Also, if parsing fails, print the
number of the wrong line.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: Parse also the IR_TABLE macro
Mauro Carvalho Chehab [Sun, 14 Mar 2010 01:16:23 +0000 (22:16 -0300)]
keytable: Parse also the IR_TABLE macro

The IR_TABLE macro provides two useful information: the type
of the IR table, and the table name, as reported by kernel uevent,
at node /sys/class/irrcv/irrcv0/uevent. For example:
NAME="rc5_hauppauge_new"

This information can be useful to allow userspace to know that
a table needs to be replaced by another.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: Rename table read/write to --read and --write
Mauro Carvalho Chehab [Sun, 14 Mar 2010 00:50:12 +0000 (21:50 -0300)]
keytable: Rename table read/write to --read and --write

While here, improve error handling and application output messages.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: Cosmetic CodingStyle changes
Mauro Carvalho Chehab [Sat, 13 Mar 2010 22:43:22 +0000 (19:43 -0300)]
keytable: Cosmetic CodingStyle changes

While here, fix one warning.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: retrieves uevent info from the driver
Mauro Carvalho Chehab [Sat, 13 Mar 2010 03:45:47 +0000 (00:45 -0300)]
keytable: retrieves uevent info from the driver

Now, with the latest ir-core patches, it will properly return
the kernel driver that implements IR, and the loaded table:

Kernel driver "em28xx", using table "rc5_hauppauge_new"

This patch prepares the addition of a new command to ir-keytable
to allow it to automatically replace a table, if called via udev.

While here, fixed some bugs on malloc/free stuff.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: free uevent struct after usage
Mauro Carvalho Chehab [Sat, 13 Mar 2010 03:30:49 +0000 (00:30 -0300)]
keytable: free uevent struct after usage

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: break the sysfs parser into 3 functions
Mauro Carvalho Chehab [Sat, 13 Mar 2010 02:05:48 +0000 (23:05 -0300)]
keytable: break the sysfs parser into 3 functions

Instead of just one big function, change the code to 3 functions, making
it more modular, and easier to extend.

This change also removes some redundancy and take more care with buffer
size.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: Update copyright information
Mauro Carvalho Chehab [Fri, 12 Mar 2010 19:49:43 +0000 (16:49 -0300)]
keytable: Update copyright information

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: Change it to use the device_register() created node
Mauro Carvalho Chehab [Fri, 12 Mar 2010 04:51:16 +0000 (01:51 -0300)]
keytable: Change it to use the device_register() created node

With the change at the ir-core, the node position changed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoAdd .gitattributes file
Hans de Goede [Fri, 12 Mar 2010 16:34:17 +0000 (17:34 +0100)]
Add .gitattributes file

So that .gitignore files don't end up in the tarbals

14 years agov4l2-ctl: fix regression in ability to set/get private controls
Devin Heitmueller [Thu, 11 Mar 2010 04:01:53 +0000 (23:01 -0500)]
v4l2-ctl: fix regression in ability to set/get private controls

In hg revision 12546, a regression was introduced which resulted in the
ability to get/set private controls.  The change resulted in all attempts
to set private controls going through the extended controls interface, and
the extended controls interface explicitly denies ability to use private
control CIDs (it's enforced in the check_ext_ctl function in v4l2-ioctl.c.

Fix the code such that it goes back to using the older g_ctrl/s_ctrl if the
control ID is a private control.

Priority: high

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agoRemove unneeded #include of i2c-id.h from v4l2-dbg
Hans de Goede [Fri, 12 Mar 2010 15:54:17 +0000 (16:54 +0100)]
Remove unneeded #include of i2c-id.h from v4l2-dbg

And remove our private copy of i2c-id.h from the tree as we now no
longer need it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoRelease 0.7.91 v4l-utils-0.7.91
Hans de Goede [Fri, 12 Mar 2010 09:25:15 +0000 (10:25 +0100)]
Release 0.7.91

14 years agoFix make clean; make install not working
Hans de Goede [Fri, 12 Mar 2010 10:30:54 +0000 (11:30 +0100)]
Fix make clean; make install not working

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoReplace GNU C Library with libv4lutil Library in libv4l2util source files
Hans de Goede [Fri, 12 Mar 2010 10:27:34 +0000 (11:27 +0100)]
Replace GNU C Library with libv4lutil Library in libv4l2util source files

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agolibv4l: Remove double newlines at the end of some error messages
Hans de Goede [Fri, 12 Mar 2010 10:09:13 +0000 (11:09 +0100)]
libv4l: Remove double newlines at the end of some error messages

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agolibv4l2: Ignore convert errors in the first few frames of a stream
Hans de Goede [Fri, 12 Mar 2010 09:18:54 +0000 (10:18 +0100)]
libv4l2: Ignore convert errors in the first few frames of a stream

Rather then reporting an error to the caller when converting one of
the first frames of the stream fails, get another frame and try again.

Some cams (ie UVC JPEG cams) produce a bad frame when the stream starts
(with for example a bad or missing jpeg header). We used to report this
as an error to the caller which causes programs which quit on the
first error (such as camorama) to terminate.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agolibv4l: update upside down device table
Hans de Goede [Fri, 12 Mar 2010 07:45:13 +0000 (08:45 +0100)]
libv4l: update upside down device table

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoFix compiler warning in sq905c decompression code
Theodore Kilgore [Fri, 12 Mar 2010 07:06:01 +0000 (08:06 +0100)]
Fix compiler warning in sq905c decompression code

Signed-off-by: Theodore Kilgore <kilgota@banach.math.auburn.edu>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agokeytable: rename exec file to ir-keytable
Mauro Carvalho Chehab [Thu, 11 Mar 2010 23:58:22 +0000 (20:58 -0300)]
keytable: rename exec file to ir-keytable

This code is not specific nor depends on V4L2 API. Rename it to a proper
name.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoIgnore built files
Mauro Carvalho Chehab [Thu, 11 Mar 2010 23:45:01 +0000 (20:45 -0300)]
Ignore built files

Adds a series of .gitignore to avoid polutting git status with
files that weren't supposed to be merged.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoImprove it to better support IR
Mauro Carvalho Chehab [Thu, 11 Mar 2010 22:27:06 +0000 (19:27 -0300)]
Improve it to better support IR

This patch improves the tool by adding the capability to autodetect
the IR device, based on sysfs class. It also adds a proper parameter
handling to give more flexibility to the tool.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: update upside down device list
Hans de Goede [Wed, 10 Mar 2010 08:58:57 +0000 (09:58 +0100)]
libv4l: update upside down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoAdd make export archive to export snapshot tarbals
Hans de Goede [Wed, 3 Mar 2010 10:42:45 +0000 (11:42 +0100)]
Add make export archive to export snapshot tarbals

Add make export archive to export snapshot tarbals, without
needing to create git tags.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoSet version to 0.7.91-test
Hans de Goede [Wed, 3 Mar 2010 10:32:36 +0000 (11:32 +0100)]
Set version to 0.7.91-test

14 years agolibv4l: update upside down device list
Hans de Goede [Wed, 3 Mar 2010 10:30:33 +0000 (11:30 +0100)]
libv4l: update upside down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoFix some more compiler warnings
Hans de Goede [Mon, 1 Mar 2010 09:38:34 +0000 (10:38 +0100)]
Fix some more compiler warnings

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoAdd a pointer to the git repo to README
Hans de Goede [Fri, 26 Feb 2010 19:45:44 +0000 (20:45 +0100)]
Add a pointer to the git repo to README

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoRelease 0.7.90 v4l-utils-0.7.90
Hans de Goede [Fri, 26 Feb 2010 19:33:45 +0000 (20:33 +0100)]
Release 0.7.90

14 years agolibv4l: update upside down device list
Hans de Goede [Fri, 26 Feb 2010 19:31:43 +0000 (20:31 +0100)]
libv4l: update upside down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoChangelog update
Hans de Goede [Fri, 26 Feb 2010 15:13:29 +0000 (16:13 +0100)]
Changelog update

Move libv4l changes from the never happend 0.6.5 release to the
v4l-utils 0.7.90 entry. And add some missing changes to the libv4l
changes info.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoUpdate docs for the new v4l-utils as a separate project situation
Hans de Goede [Fri, 26 Feb 2010 15:06:40 +0000 (16:06 +0100)]
Update docs for the new v4l-utils as a separate project situation

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoDocumentation file shuffle
Hans de Goede [Fri, 26 Feb 2010 14:31:05 +0000 (15:31 +0100)]
Documentation file shuffle

Move most important doc files to the archive root, remove a duplicate
copy of the LGPL v2.1

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoUse auto generated dependencies in utils Makefiles
Hans de Goede [Fri, 26 Feb 2010 14:16:56 +0000 (15:16 +0100)]
Use auto generated dependencies in utils Makefiles

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoAdd make install target to utils subdir Makefiles
Hans de Goede [Fri, 26 Feb 2010 14:00:55 +0000 (15:00 +0100)]
Add make install target to utils subdir Makefiles

Like the old v4l-dvb/v4l2-apps Makefile for now only the following
utilities get installed when running make install:
v4l2-ctl v4l2-dbg v4l2-compliance ivtv-ctl cx18-ctl v4l2-sysfs-path
decode_tm6000

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoFix compiler warnings
Hans de Goede [Fri, 26 Feb 2010 09:22:38 +0000 (10:22 +0100)]
Fix compiler warnings

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoThe second argument of ioctl is long not int (under Linux)
Hans de Goede [Fri, 26 Feb 2010 08:58:11 +0000 (09:58 +0100)]
The second argument of ioctl is long not int (under Linux)

All our ioctl wrappers were using an int as second argument, but
the glibc ioctl function expects an unsigned long. This wrong prototype
would cause sign extension of the IOCTL request value, thus we would end
up asking for a non existing request. Luckily glibc internally cuts this
down to 32 bits again so things happened to work, but it is better to
fix this and give the wrappers a proper prototype.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoAdd / hookup makefiles for utils
Hans de Goede [Thu, 25 Feb 2010 18:32:41 +0000 (19:32 +0100)]
Add / hookup makefiles for utils

This commit adds / modifies Makefiles to make it possible to build
various bits under utils. This commit does not yet include make install
support (that will follow in another patch).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoutils directory re-organization
Hans de Goede [Wed, 24 Feb 2010 15:57:00 +0000 (16:57 +0100)]
utils directory re-organization

Put all the tools into their own subdirs, mv some scripts to
contrib, mv libv4l2util from contrib to utils as various utils depend
on it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoAdd new toplevel Makefiles
Hans de Goede [Wed, 24 Feb 2010 15:21:39 +0000 (16:21 +0100)]
Add new toplevel Makefiles

For now these only build libv4l, I first want to move various files
under utils around (put them in separate subdirs), before extending
the Makefile support to the utils subdir.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoRemove obsolete Makefiles
Hans de Goede [Wed, 24 Feb 2010 14:39:08 +0000 (15:39 +0100)]
Remove obsolete Makefiles

The current Makefiles in the v4l-utils repo still assume that v4l-utils
is the v4l2-apps subdir of the main v4l-dbv repository. As this is no
longer true, it is best to remove them and start a new.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agolibv4l: update upside-down device list
Hans de Goede [Wed, 24 Feb 2010 14:35:31 +0000 (15:35 +0100)]
libv4l: update upside-down device list

14 years agolibv4l: update upside-down device list
Hans de Goede [Sat, 20 Feb 2010 12:03:39 +0000 (13:03 +0100)]
libv4l: update upside-down device list

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agolibv4l: set default gamma to 1500 for pac7302 based cams
Hans de Goede [Wed, 17 Feb 2010 15:51:31 +0000 (16:51 +0100)]
libv4l: set default gamma to 1500 for pac7302 based cams

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>