platform/upstream/v4l-utils.git
14 years agobump ver to 0.8.1-test
Hans de Goede [Fri, 21 May 2010 12:13:59 +0000 (14:13 +0200)]
bump ver to 0.8.1-test

14 years agolibv4l: add 4 new entries to the upside down table
Hans de Goede [Fri, 21 May 2010 11:56:18 +0000 (13:56 +0200)]
libv4l: add 4 new entries to the upside down table

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agolibv4l1: move v4l1 ioctls from kernel to libv4l1: VIDIOCGCAP
Hans de Goede [Wed, 19 May 2010 09:49:36 +0000 (11:49 +0200)]
libv4l1: move v4l1 ioctls from kernel to libv4l1: VIDIOCGCAP

Signed-off-by: Huzaifa Sidhpurwala <huzaifas@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agolibv4l: add detection for short frames
Hans de Goede [Fri, 7 May 2010 09:57:50 +0000 (11:57 +0200)]
libv4l: add detection for short frames

Sometimes cam generate short frames (esp. at the beginning of the stream),
detect this and retry a number of times. If retrying fails, pass allong
the short frame as it is better then nothing.

This patch also cleans up the JPEG decoding error handling code to use
the same mechanism.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agoPrep for 0.8.0 release v4l-utils-0.8.0
Hans de Goede [Fri, 7 May 2010 08:28:14 +0000 (10:28 +0200)]
Prep for 0.8.0 release

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agolibv4l: Update upside down device list
Hans de Goede [Fri, 7 May 2010 06:22:32 +0000 (08:22 +0200)]
libv4l: Update upside down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agov4l2-ctl: fix copy-paste error (wrong console message).
Hans Verkuil [Mon, 3 May 2010 14:52:26 +0000 (16:52 +0200)]
v4l2-ctl: fix copy-paste error (wrong console message).

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2-compliance: add priority tests
Hans Verkuil [Sun, 2 May 2010 14:09:22 +0000 (16:09 +0200)]
v4l2-compliance: add priority tests

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2-compliance: cleanup and add tests for multiple opens.
Hans Verkuil [Sun, 2 May 2010 13:37:51 +0000 (15:37 +0200)]
v4l2-compliance: cleanup and add tests for multiple opens.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agoqv4l2: fix oops if the device has no user controls.
Hans Verkuil [Sun, 2 May 2010 11:23:09 +0000 (13:23 +0200)]
qv4l2: fix oops if the device has no user controls.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2-ctl: call QUERYCAP when sleep returns.
Hans Verkuil [Sun, 2 May 2010 10:58:46 +0000 (12:58 +0200)]
v4l2-ctl: call QUERYCAP when sleep returns.

Calling VIDIOC_QUERYCAP after sleeping is a nice way to test the USB
disconnect case.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2-ctl: add prio support and a sleep option.
Hans Verkuil [Sat, 1 May 2010 13:10:20 +0000 (15:10 +0200)]
v4l2-ctl: add prio support and a sleep option.

Add --get/set-priority to test VIDIOC_G/S_PRIORITY and add a sleep
option to let v4l2-ctl sleep for a number of seconds before closing
the file handle. Useful for testing.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agolibv4lcontrol: fix queryctrl handling
Hans Verkuil [Sat, 1 May 2010 11:40:59 +0000 (13:40 +0200)]
libv4lcontrol: fix queryctrl handling

When enumerating the controls using V4L2_CTRL_FLAG_NEXT_CTRL then queryctrl
should always remove V4L2_CTRL_FLAG_NEXT_CTRL when returning, even if no
next control was found.

So instead of using V4L2_CTRL_FLAG_NEXT_CTRL as the 'maximum' control ID
libv4lcontrol.c should use V4L2_CTRL_ID_MASK instead (which is really the
highest possible ID).

This bug caused qv4l2 to show the user controls twice.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agov4l2-ctl: Add support for dv preset API.
Mats Randgaard [Fri, 30 Apr 2010 12:41:15 +0000 (14:41 +0200)]
v4l2-ctl: Add support for dv preset API.

note: Custom timings are not yet implemented.

Signed-off-by: Mats Randgaard <mats.randgaard@tandberg.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
14 years agolibv4l: update upside-down device list
Hans de Goede [Fri, 30 Apr 2010 10:04:38 +0000 (12:04 +0200)]
libv4l: update upside-down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agolibv4l: Properly set errno when leaving v4l2_read
Hans de Goede [Fri, 30 Apr 2010 10:03:29 +0000 (12:03 +0200)]
libv4l: Properly set errno when leaving v4l2_read

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agolibv4lcontrol: run through checkpatch.pl
Hans Verkuil [Fri, 30 Apr 2010 06:38:01 +0000 (08:38 +0200)]
libv4lcontrol: run through checkpatch.pl

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