platform/upstream/v4l-utils.git
14 years agolibv4lprocessing: run through checkpatch.pl
Hans Verkuil [Fri, 30 Apr 2010 06:29:09 +0000 (08:29 +0200)]
libv4lprocessing: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agowhitebalance.c: run through checkpatch.pl
Hans Verkuil [Fri, 30 Apr 2010 06:27:44 +0000 (08:27 +0200)]
whitebalance.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agogamma.c: run through checkpatch.pl
Hans Verkuil [Fri, 30 Apr 2010 06:26:27 +0000 (08:26 +0200)]
gamma.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agoautogain.c: run through checkpatch.pl
Hans Verkuil [Fri, 30 Apr 2010 06:25:26 +0000 (08:25 +0200)]
autogain.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agotinyjpeg: run through checkpatch.pl
Hans Verkuil [Thu, 29 Apr 2010 12:59:14 +0000 (14:59 +0200)]
tinyjpeg: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agostv0680.c: run through checkpatch.pl
Hans Verkuil [Thu, 29 Apr 2010 12:29:33 +0000 (14:29 +0200)]
stv0680.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agosq905c.c: run through checkpatch.pl
Hans Verkuil [Thu, 29 Apr 2010 07:24:55 +0000 (09:24 +0200)]
sq905c.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agospca561-decompress.c: run through checkpatch.pl
Hans Verkuil [Thu, 29 Apr 2010 07:21:33 +0000 (09:21 +0200)]
spca561-decompress.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agospca501.c: run through checkpatch.pl
Hans Verkuil [Thu, 29 Apr 2010 07:17:48 +0000 (09:17 +0200)]
spca501.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agosn9c20x.c: run through checkpatch.pl
Hans Verkuil [Thu, 29 Apr 2010 07:16:23 +0000 (09:16 +0200)]
sn9c20x.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agosn9c2028-decomp.c: run through checkpatch.pl
Hans Verkuil [Thu, 29 Apr 2010 07:11:04 +0000 (09:11 +0200)]
sn9c2028-decomp.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agosn9c10x.c: run through checkpatch.pl
Hans Verkuil [Thu, 29 Apr 2010 07:08:17 +0000 (09:08 +0200)]
sn9c10x.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agorgbyuv.c: run through checkpatch.pl
Hans Verkuil [Thu, 29 Apr 2010 07:05:41 +0000 (09:05 +0200)]
rgbyuv.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2-ctl: add support to poll or wait for an event.
Hans Verkuil [Thu, 29 Apr 2010 06:59:20 +0000 (08:59 +0200)]
v4l2-ctl: add support to poll or wait for an event.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agovideodev2.h: update to latest v4l-dvb version.
Hans Verkuil [Thu, 29 Apr 2010 06:55:53 +0000 (08:55 +0200)]
videodev2.h: update to latest v4l-dvb version.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agopac207.c: run through checkpatch.pl
Hans Verkuil [Wed, 28 Apr 2010 19:08:08 +0000 (21:08 +0200)]
pac207.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agoov518-decomp.c: run through checkpatch.pl
Hans Verkuil [Wed, 28 Apr 2010 19:05:30 +0000 (21:05 +0200)]
ov518-decomp.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agoov511-decomp.c: run through checkpatch.pl
Hans Verkuil [Wed, 28 Apr 2010 18:47:52 +0000 (20:47 +0200)]
ov511-decomp.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agomr97310a.c: run through checkpatch.pl
Hans Verkuil [Wed, 28 Apr 2010 18:36:57 +0000 (20:36 +0200)]
mr97310a.c: run through checkpatch.pl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agolibv4l*-priv.h: run through checkpatch.pl
Hans Verkuil [Wed, 28 Apr 2010 18:34:05 +0000 (20:34 +0200)]
libv4l*-priv.h: run through checkpatch.pl

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

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

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

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

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

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
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>