platform/upstream/v4l-utils.git
13 years agov4l2-compliance: improve input/output tests.
Hans Verkuil [Sat, 22 Jan 2011 21:36:59 +0000 (22:36 +0100)]
v4l2-compliance: improve input/output tests.

Radio devices should not have inputs and outputs at all. Check this.
Also improve audioset checking and various fixes.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: add fixme.txt keeping track of API problems.
Hans Verkuil [Sat, 22 Jan 2011 09:04:00 +0000 (10:04 +0100)]
v4l2-compliance: add fixme.txt keeping track of API problems.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: implement verbosity level, improve warnings.
Hans Verkuil [Fri, 21 Jan 2011 22:38:31 +0000 (23:38 +0100)]
v4l2-compliance: implement verbosity level, improve warnings.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: add VIDIOC_G/S/TRY_EXT_CTRLS tests
Hans Verkuil [Fri, 21 Jan 2011 21:52:34 +0000 (22:52 +0100)]
v4l2-compliance: add VIDIOC_G/S/TRY_EXT_CTRLS tests

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: add VIDIOC_G/S_FREQUENCY tests.
Hans Verkuil [Fri, 21 Jan 2011 20:45:33 +0000 (21:45 +0100)]
v4l2-compliance: add VIDIOC_G/S_FREQUENCY tests.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: improve consistency of messages, require prio support
Hans Verkuil [Fri, 21 Jan 2011 17:42:07 +0000 (18:42 +0100)]
v4l2-compliance: improve consistency of messages, require prio support

The priority calls must be supported to pass this test suite.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agoUpdate ChangeLog for changes since 0.8.1
Hans de Goede [Fri, 21 Jan 2011 20:29:24 +0000 (21:29 +0100)]
Update ChangeLog for changes since 0.8.1

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agolibv4l: update upside down device table
Hans de Goede [Fri, 21 Jan 2011 20:17:09 +0000 (21:17 +0100)]
libv4l: update upside down device table

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agov4l2-compliance: add TODO list of still-to-be-tested ioctls.
Hans Verkuil [Fri, 21 Jan 2011 17:16:23 +0000 (18:16 +0100)]
v4l2-compliance: add TODO list of still-to-be-tested ioctls.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: add tests for QUERYSTD and QUERY_DV_PRESET
Hans Verkuil [Fri, 21 Jan 2011 17:08:56 +0000 (18:08 +0100)]
v4l2-compliance: add tests for QUERYSTD and QUERY_DV_PRESET

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: add DV_PRESET and DV_TIMINGS tests.
Hans Verkuil [Fri, 21 Jan 2011 17:00:07 +0000 (18:00 +0100)]
v4l2-compliance: add DV_PRESET and DV_TIMINGS tests.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: test ENUMSTD.
Hans Verkuil [Fri, 21 Jan 2011 16:36:34 +0000 (17:36 +0100)]
v4l2-compliance: test ENUMSTD.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: add G/S_STD tests
Hans Verkuil [Fri, 21 Jan 2011 16:17:54 +0000 (17:17 +0100)]
v4l2-compliance: add G/S_STD tests

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agoMerge branch 'master' of ssh://linuxtv.org/git/v4l-utils
Hans Verkuil [Fri, 21 Jan 2011 16:17:00 +0000 (17:17 +0100)]
Merge branch 'master' of ssh://linuxtv.org/git/v4l-utils

13 years agolibv4l: update upside down devices table
Hans de Goede [Fri, 21 Jan 2011 14:43:17 +0000 (15:43 +0100)]
libv4l: update upside down devices table

13 years agoFix broken v4lutil Makefiles
Gregor Jasny [Fri, 21 Jan 2011 14:41:37 +0000 (15:41 +0100)]
Fix broken v4lutil Makefiles

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agoFix broken v4lutil Makefiles
Gregor Jasny [Wed, 19 Jan 2011 14:34:17 +0000 (15:34 +0100)]
Fix broken v4lutil Makefiles

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agolibv4l update upside down device table
Hans de Goede [Wed, 19 Jan 2011 09:17:53 +0000 (10:17 +0100)]
libv4l update upside down device table

Signed-off-by: Hans de Goede <hdegoede@redhat.com># Please enter the commit message for your changes. Lines starting
13 years agov4l2-ctl: set S_FREQUENCY type to RADIO for modulators.
Hans Verkuil [Tue, 18 Jan 2011 10:06:54 +0000 (11:06 +0100)]
v4l2-ctl: set S_FREQUENCY type to RADIO for modulators.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-ctl: fix --get-modulator output
Hans Verkuil [Mon, 17 Jan 2011 19:40:13 +0000 (20:40 +0100)]
v4l2-ctl: fix --get-modulator output

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agoRevert "v4l2-ctl/compliance: use local libv4l2 rather than the installed version."
Hans Verkuil [Mon, 17 Jan 2011 13:14:49 +0000 (14:14 +0100)]
Revert "v4l2-ctl/compliance: use local libv4l2 rather than the installed version."

This reverts commit 34b49ec47fc1e517485b221366a7d2a207306304.

Conflicts:

utils/v4l2-compliance/Makefile

This patch didn't work if you didn't have libv4l installed.

For now just revert this until we have a better solution.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: add kernel version check to avoid kernel oops
Hans Verkuil [Sun, 16 Jan 2011 17:52:07 +0000 (18:52 +0100)]
v4l2-compliance: add kernel version check to avoid kernel oops

Due to a bug in kernels <= 2.6.37 the kernel can crash if an attempt is made
to set a control of type CTRL_CLASS. Don't do this on such kernels.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: add capability checks, start on STD testing
Hans Verkuil [Sun, 16 Jan 2011 17:21:37 +0000 (18:21 +0100)]
v4l2-compliance: add capability checks, start on STD testing

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: add VIDIOC_G/S_CTRL tests
Hans Verkuil [Sun, 16 Jan 2011 16:05:18 +0000 (17:05 +0100)]
v4l2-compliance: add VIDIOC_G/S_CTRL tests

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-ctl/compliance: use local libv4l2 rather than the installed version.
Hans Verkuil [Sun, 16 Jan 2011 11:20:26 +0000 (12:20 +0100)]
v4l2-ctl/compliance: use local libv4l2 rather than the installed version.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: if no device is specified, then use /dev/video0
Hans Verkuil [Sun, 16 Jan 2011 10:55:00 +0000 (11:55 +0100)]
v4l2-compliance: if no device is specified, then use /dev/video0

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-ctl: add -w option to use libv4l2.
Hans Verkuil [Sun, 16 Jan 2011 10:52:34 +0000 (11:52 +0100)]
v4l2-ctl: add -w option to use libv4l2.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: add support for libv4l2
Hans Verkuil [Sun, 16 Jan 2011 10:36:56 +0000 (11:36 +0100)]
v4l2-compliance: add support for libv4l2

With the new -w argument the test suite will be run using libv4l2.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: improve reporting of results.
Hans Verkuil [Sun, 16 Jan 2011 10:15:35 +0000 (11:15 +0100)]
v4l2-compliance: improve reporting of results.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agoqv4l2: handle VIDIOC_DQBUF error code EAGAIN correctly
Hans Verkuil [Sun, 16 Jan 2011 09:53:01 +0000 (10:53 +0100)]
qv4l2: handle VIDIOC_DQBUF error code EAGAIN correctly

qv4l2 would stop streaming if it receives EAGAIN from VIDIOC_DQBUF
instead of continuing. The same error code from read() was handled
correctly.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agoir-keytable: Improve keycode output to display both key name and its value
Mauro Carvalho Chehab [Wed, 12 Jan 2011 14:59:36 +0000 (12:59 -0200)]
ir-keytable: Improve keycode output to display both key name and its value

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agoir-keytable: Improve events output and add event sync
Mauro Carvalho Chehab [Wed, 12 Jan 2011 14:38:33 +0000 (12:38 -0200)]
ir-keytable: Improve events output and add event sync

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agoir-keytable: Fix keycode output in test mode
Mauro Carvalho Chehab [Wed, 12 Jan 2011 14:28:31 +0000 (12:28 -0200)]
ir-keytable: Fix keycode output in test mode

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agoMerge branch 'master' of ssh://linuxtv.org/git/v4l-utils
Hans Verkuil [Wed, 12 Jan 2011 07:34:21 +0000 (08:34 +0100)]
Merge branch 'master' of ssh://linuxtv.org/git/v4l-utils

13 years agov4l2-dbg: better QUERYCAP version reporting.
Hans Verkuil [Wed, 12 Jan 2011 07:33:23 +0000 (08:33 +0100)]
v4l2-dbg: better QUERYCAP version reporting.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-ctl: better QUERYCAP version reporting
Hans Verkuil [Wed, 12 Jan 2011 07:32:43 +0000 (08:32 +0100)]
v4l2-ctl: better QUERYCAP version reporting

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: various fixes/improvements
Hans Verkuil [Wed, 12 Jan 2011 07:30:33 +0000 (08:30 +0100)]
v4l2-compliance: various fixes/improvements

- add warn and info macros
- always print fail messages, no longer require --verbose
- a few more QUERYCTRL checks
- better QUERYCAP handling

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agolibv4l: update upside down device table
Hans de Goede [Mon, 10 Jan 2011 18:25:07 +0000 (19:25 +0100)]
libv4l: update upside down device table

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agolibv4l1: Add a comment about VIDEO_PALETTE_RGB24 really being BGR24
Hans de Goede [Sun, 9 Jan 2011 11:19:41 +0000 (12:19 +0100)]
libv4l1: Add a comment about VIDEO_PALETTE_RGB24 really being BGR24

Various people see problems with red and blue being swapped in some
v4l1 apps and then end up sending libv4l1 patches. Explain (in the source)
that they should be patching the apps instead :)

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agov4l2-compliance: add queryctrl/querymenu tests.
Hans Verkuil [Sun, 9 Jan 2011 21:58:32 +0000 (22:58 +0100)]
v4l2-compliance: add queryctrl/querymenu tests.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: mark radio node.
Hans Verkuil [Sat, 8 Jan 2011 18:54:29 +0000 (19:54 +0100)]
v4l2-compliance: mark radio node.

'is_radio' wasn't set properly when testing radio devices.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: add tuner/modulator tests.
Hans Verkuil [Sat, 8 Jan 2011 18:39:46 +0000 (19:39 +0100)]
v4l2-compliance: add tuner/modulator tests.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: simplify doioctl
Hans Verkuil [Sat, 8 Jan 2011 17:48:45 +0000 (18:48 +0100)]
v4l2-compliance: simplify doioctl

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: add tests for A/V input/output ioctls.
Hans Verkuil [Sat, 8 Jan 2011 17:34:11 +0000 (18:34 +0100)]
v4l2-compliance: add tests for A/V input/output ioctls.

Also did a major reorganization of the way failures are reported. This should
make it much easier to track down the cause of failures.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: report "Not supported" if VIDIOC_G_PRIORITY is not supported.
Hans Verkuil [Sat, 8 Jan 2011 11:55:04 +0000 (12:55 +0100)]
v4l2-compliance: report "Not supported" if VIDIOC_G_PRIORITY is not supported.

Currently v4l2-compliance just reports FAIL in that case.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-compliance: report VIDIOC_DBG_G_REGISTER as 'Not supported'
Hans Verkuil [Sat, 8 Jan 2011 11:45:57 +0000 (12:45 +0100)]
v4l2-compliance: report VIDIOC_DBG_G_REGISTER as 'Not supported'

If VIDIOC_DBG_G_REGISTER is not supported, then v4l2-compliance would just
say 'OK' instead of 'Not supported'.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agolibv4l: update upside down device list
Hans de Goede [Fri, 7 Jan 2011 09:49:57 +0000 (10:49 +0100)]
libv4l: update upside down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agoqv4l2: add -r option to qv4l2 to open the initial device in raw mode
Hans Verkuil [Thu, 6 Jan 2011 09:58:49 +0000 (10:58 +0100)]
qv4l2: add -r option to qv4l2 to open the initial device in raw mode

By default qv4l2 opens the device node in wrapped mode (i.e. using libv4l2).
By adding the new -r option the device node is opened in raw mode, bypassing
libv4l2.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
13 years agolibv4l: update upside down device table
Hans de Goede [Wed, 5 Jan 2011 14:19:19 +0000 (15:19 +0100)]
libv4l: update upside down device table

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agoPhilips SPC315NC is vertically flipped
Mauro Carvalho Chehab [Mon, 3 Jan 2011 14:39:37 +0000 (15:39 +0100)]
Philips SPC315NC is vertically flipped

Signed-off-by: Mauro Carvalho Chehab<mchehab@redhat.com>
13 years agolibv4l2util/v4l2_driver.c: fix compile warnings
Hans Verkuil [Fri, 31 Dec 2010 15:22:52 +0000 (16:22 +0100)]
libv4l2util/v4l2_driver.c: fix compile warnings

v4l2_driver.c: In function ‘v4l2_enum_stds’:
v4l2_driver.c:200: warning: unused variable ‘id’
v4l2_driver.c:199: warning: unused variable ‘ret’
v4l2_driver.c: In function ‘v4l2_enum_input’:
v4l2_driver.c:243: warning: unused variable ‘id’
v4l2_driver.c:242: warning: unused variable ‘ret’
v4l2_driver.c: In function ‘v4l2_enum_fmt’:
v4l2_driver.c:284: warning: unused variable ‘id’
v4l2_driver.c:283: warning: unused variable ‘ret’
v4l2_driver.c:281: warning: unused variable ‘fmt’
v4l2_driver.c: In function ‘v4l2_setget_input’:
v4l2_driver.c:372: warning: unused variable ‘i’
v4l2_driver.c: In function ‘v4l2_mmap_bufs’:
v4l2_driver.c:598: warning: unused variable ‘tc’
v4l2_driver.c: In function ‘v4l2_getset_freq’:
v4l2_driver.c:761: warning: unused variable ‘counter’

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agodecode_tm6000: fix compile warnings
Hans Verkuil [Fri, 31 Dec 2010 15:19:06 +0000 (16:19 +0100)]
decode_tm6000: fix compile warnings

decode_tm6000.c: In function ‘main’:
decode_tm6000.c:253: warning: unused variable ‘pktsize’
decode_tm6000.c:253: warning: unused variable ‘cpysize’

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agocx18-ctl: fix compile warnings
Hans Verkuil [Fri, 31 Dec 2010 15:18:03 +0000 (16:18 +0100)]
cx18-ctl: fix compile warnings

cx18-ctl.c: In function ‘main’:
cx18-ctl.c:262: warning: unused variable ‘ptsstr’
cx18-ctl.c:261: warning: unused variable ‘timestamp’
cx18-ctl.c:254: warning: unused variable ‘yuv_mode’
cx18-ctl.c: At top level:
cx18-ctl.c:125: warning: ‘pts_to_string’ defined but not used

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agofirmware-tool: fix compile warnings
Hans Verkuil [Fri, 31 Dec 2010 15:16:27 +0000 (16:16 +0100)]
firmware-tool: fix compile warnings

firmware-tool.c: In function ‘add_standard’:
firmware-tool.c:566: warning: unused variable ‘i’
firmware-tool.c: In function ‘seek_chunks’:
firmware-tool.c:783: warning: label ‘not_found’ defined but not used
firmware-tool.c:619: warning: unused variable ‘rc’
firmware-tool.c:618: warning: unused variable ‘lastp’
firmware-tool.c: In function ‘seek_firmware’:
firmware-tool.c:831: warning: unused variable ‘fpos’
firmware-tool.c:831: warning: unused variable ‘p2’
firmware-tool.c: In function ‘main’:
firmware-tool.c:973: warning: unused variable ‘nr’
firmware-tool.c: At top level:
firmware-tool.c:63: warning: ‘alloc_firmware_description’ defined but not used
firmware-tool.c:72: warning: ‘free_firmware_description’ defined but not used

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-sysfs-path: fix compile warnings
Hans Verkuil [Fri, 31 Dec 2010 15:12:11 +0000 (16:12 +0100)]
v4l2-sysfs-path: fix compile warnings

v4l2-sysfs-path.c: In function ‘seek_name’:
v4l2-sysfs-path.c:148: warning: unused variable ‘minor’
v4l2-sysfs-path.c:148: warning: unused variable ‘major’
v4l2-sysfs-path.c:145: warning: unused variable ‘st’

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agoqv4l2: When in wrapped mode memcpy the actual framesize
Hans de Goede [Fri, 31 Dec 2010 10:55:44 +0000 (11:55 +0100)]
qv4l2: When in wrapped mode memcpy the actual framesize

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agoqv4l2: Check and use result of read()
Hans de Goede [Fri, 31 Dec 2010 10:50:28 +0000 (11:50 +0100)]
qv4l2: Check and use result of read()

qv4l2 was calling libv4lconvert_convert with a src size of fmt.pix.sizeimage,
rather then using the actual amount of bytes read. This causes decompressors
which check if they have consumed the entire compressed frame (ie pjpg) to
error out, because they were not being passed the actual frame size.

This patch fixes this, and also adds reporting of libv4lconvert_convert
errors.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agoqv4l2: don't use v4lconvert directly when using libv4l.
Hans Verkuil [Wed, 29 Dec 2010 18:33:31 +0000 (19:33 +0100)]
qv4l2: don't use v4lconvert directly when using libv4l.

Only in 'raw' mode should v4lconvert be used, otherwise it will be
called twice causing all software image processing to be done twice
as well.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agolibv4lconvert: Properly handle video processing when src fmt == dest fmt
Hans de Goede [Tue, 28 Dec 2010 22:36:40 +0000 (23:36 +0100)]
libv4lconvert: Properly handle video processing when src fmt == dest fmt

When video processing is enabled (ie software whitebalancing) and
the src_fmt == dst_fmt (ie rgb24) and not cropping, flipping, or rotating
the video processing would be done directly on the src data and the
data would never get copied to the destination buffer. This patch fixes
this.

Signed-off-By: Hans de Goede <hdegoede@redhat.com>
13 years agolibv4l: update upside down device list
Hans de Goede [Tue, 28 Dec 2010 21:06:06 +0000 (22:06 +0100)]
libv4l: update upside down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agoqv4l2: open the device node using libv4l if supplied on the command line.
Hans Verkuil [Fri, 24 Dec 2010 18:50:28 +0000 (19:50 +0100)]
qv4l2: open the device node using libv4l if supplied on the command line.

It did open the device node using the system call open(), but libv4l should
be used by default. The difference in behavior between passing the device node
on the command line and via the open button on the toolbar was confusing.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agolibv4l: update upside down device list
Hans de Goede [Tue, 21 Dec 2010 14:27:16 +0000 (15:27 +0100)]
libv4l: update upside down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agorc_keymaps: Sync with kernel
Mauro Carvalho Chehab [Mon, 20 Dec 2010 17:18:07 +0000 (15:18 -0200)]
rc_keymaps: Sync with kernel

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agogen_keytables.pl: make it work with the newer kernel sources
Mauro Carvalho Chehab [Mon, 20 Dec 2010 17:02:30 +0000 (15:02 -0200)]
gen_keytables.pl: make it work with the newer kernel sources

Instead of /IR, use /rc for remote keymap directory. Also, some struct
names changed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agokeycode/parse.h: Add two new keycode names to the parser
Mauro Carvalho Chehab [Mon, 20 Dec 2010 16:54:09 +0000 (14:54 -0200)]
keycode/parse.h: Add two new keycode names to the parser

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agoir-keytables: Add a mode to test if RC key events are ok
Mauro Carvalho Chehab [Mon, 20 Dec 2010 16:51:16 +0000 (14:51 -0200)]
ir-keytables: Add a mode to test if RC key events are ok

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agoMakefile: make make export generate a .tar.bz2 rather then a .tar.gz
Hans de Goede [Sat, 18 Dec 2010 15:15:17 +0000 (16:15 +0100)]
Makefile: make make export generate a .tar.bz2 rather then a .tar.gz

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agolibv4l: update upside-down device table
Hans de Goede [Sat, 18 Dec 2010 15:07:24 +0000 (16:07 +0100)]
libv4l: update upside-down device table

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agov4l2-dbg: fix initializers and remove unused variable.
Hans Verkuil [Wed, 15 Dec 2010 13:37:42 +0000 (14:37 +0100)]
v4l2-dbg: fix initializers and remove unused variable.

v4l2-dbg now compiles with -Wextra without warnings.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agov4l2-ctl: zero all structs before use.
Hans Verkuil [Wed, 15 Dec 2010 13:29:34 +0000 (14:29 +0100)]
v4l2-ctl: zero all structs before use.

When compiled with -Wextra the compiler produces lots of warnings about missing
initializers. So instead of using partial initializers we memset the structs.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
13 years agov4l2-compliance: fix QUERYCAP check
Hans Verkuil [Sun, 12 Dec 2010 16:34:12 +0000 (17:34 +0100)]
v4l2-compliance: fix QUERYCAP check

bus_info can be empty, so don't give an error for an empty bus_info string.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agoqv4l2: control handling fixes
Hans Verkuil [Sun, 12 Dec 2010 16:30:54 +0000 (17:30 +0100)]
qv4l2: control handling fixes

1) Don't attempt to read write-only controls
2) Set default string value to the proper minimum length (>= 0) containing spaces.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
13 years agolibv4l: update upside down device table
Hans de Goede [Fri, 10 Dec 2010 09:55:27 +0000 (10:55 +0100)]
libv4l: update upside down device table

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agolibv4l: Remove double declaration of v4lconvert_grey_to_rgb24
Hans de Goede [Thu, 9 Dec 2010 10:13:48 +0000 (11:13 +0100)]
libv4l: Remove double declaration of v4lconvert_grey_to_rgb24

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agolibv4l: Add support for 8-bits grey format (V4L2_PIX_FMT_GREY)
Mauro Carvalho Chehab [Wed, 8 Dec 2010 14:10:36 +0000 (12:10 -0200)]
libv4l: Add support for 8-bits grey format (V4L2_PIX_FMT_GREY)

Grey format is like YUV, with U/V channels with 0. Add the corresponding
bits to libv4l, for it to handle this format.

v2: Fixed U/V "zero" value (0x80), thanks to Hans de Goede
    <hdegoede@redhat.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agoparse_sn9c201.pl: Provide a better output format
Mauro Carvalho Chehab [Wed, 8 Dec 2010 14:10:05 +0000 (12:10 -0200)]
parse_sn9c201.pl: Provide a better output format

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agoparse_sn9c201.pl: Add a few more registers
Mauro Carvalho Chehab [Tue, 7 Dec 2010 16:02:54 +0000 (14:02 -0200)]
parse_sn9c201.pl: Add a few more registers

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agoparse_sn9c201.pl: Add a handler for register aliases
Mauro Carvalho Chehab [Tue, 7 Dec 2010 15:42:38 +0000 (13:42 -0200)]
parse_sn9c201.pl: Add a handler for register aliases

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agoparse_sn9c201.pl: output register reads/writes
Mauro Carvalho Chehab [Tue, 7 Dec 2010 15:17:48 +0000 (13:17 -0200)]
parse_sn9c201.pl: output register reads/writes

Note: For now, discard req number. It seems to be used, not sure for what.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agoDiscard fields outside I2C size
Mauro Carvalho Chehab [Tue, 7 Dec 2010 14:38:46 +0000 (12:38 -0200)]
Discard fields outside I2C size

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agoparse_sn9c201.pl: Add a parser for sn9c201 USB dumps
Mauro Carvalho Chehab [Tue, 7 Dec 2010 14:30:27 +0000 (12:30 -0200)]
parse_sn9c201.pl: Add a parser for sn9c201 USB dumps

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agoparse_usb.pl: Fix directions
Mauro Carvalho Chehab [Tue, 7 Dec 2010 09:51:37 +0000 (07:51 -0200)]
parse_usb.pl: Fix directions

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agoAdd a generic parser for USB logs
Mauro Carvalho Chehab [Tue, 7 Dec 2010 09:36:03 +0000 (07:36 -0200)]
Add a generic parser for USB logs

This parser just decodes the standard USB fields. It is probably more useful
as a basis for more specific parsers.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agov4l2grab: Allow changing the capture parameters via parameters
Mauro Carvalho Chehab [Mon, 6 Dec 2010 11:23:00 +0000 (09:23 -0200)]
v4l2grab: Allow changing the capture parameters via parameters

Instead of requiring recompilation, allow passing arguments to the capture
subroutine.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agov4l2grab: Convert "default" values into parameters
Mauro Carvalho Chehab [Mon, 6 Dec 2010 11:07:38 +0000 (09:07 -0200)]
v4l2grab: Convert "default" values into parameters

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years agolibv4l: update upside down device list
Hans de Goede [Mon, 6 Dec 2010 10:23:31 +0000 (11:23 +0100)]
libv4l: update upside down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agolibv4l: update upside down device table
Hans de Goede [Wed, 1 Dec 2010 14:36:19 +0000 (15:36 +0100)]
libv4l: update upside down device table

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

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agolibv4l: update upside down device list
Hans de Goede [Wed, 24 Nov 2010 08:00:13 +0000 (09:00 +0100)]
libv4l: update upside down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agolibv4l: update upside down device table
Hans de Goede [Sun, 21 Nov 2010 09:33:19 +0000 (10:33 +0100)]
libv4l: update upside down device table

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 years agolibv4l: update upside down device table
Hans de Goede [Fri, 19 Nov 2010 08:35:37 +0000 (09:35 +0100)]
libv4l: update upside down device table

Signed-off-By: Hans de Goede <hdegoede@redhat.com>
14 years agolibv4l: update upside down device table
Hans de Goede [Sun, 14 Nov 2010 11:18:59 +0000 (12:18 +0100)]
libv4l: update upside down device table

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agolibv4l: update upside down device table
Hans de Goede [Fri, 12 Nov 2010 08:18:15 +0000 (09:18 +0100)]
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 [Mon, 8 Nov 2010 19:19:20 +0000 (20:19 +0100)]
libv4l: update upside down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 years agorc_keymaps: remove legacy IR tables
Mauro Carvalho Chehab [Mon, 8 Nov 2010 18:43:47 +0000 (16:43 -0200)]
rc_keymaps: remove legacy IR tables

af9015 driver were converted to rc_core. Their tables changed, and
are already in the tree. So, remove the legacy ones. Also remove
the "empty" table, as it is not needed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: auto-generate rc_maps.cfg
Mauro Carvalho Chehab [Mon, 8 Nov 2010 18:41:53 +0000 (16:41 -0200)]
keytable: auto-generate rc_maps.cfg

Retrieve assosiations between RC table file and the in-kernel name
representation for each keymap.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: Move find logic to gen_keytables.pl
Mauro Carvalho Chehab [Mon, 8 Nov 2010 18:21:02 +0000 (16:21 -0200)]
keytable: Move find logic to gen_keytables.pl

Instead of using shell commands, at Makefile, move the logic to
happen inside gen_keytables.pl. This will allow adding another
parsing logic there, based on the read of include/media/rc-map.h.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agogen_keytables.pl: use a function to create files
Mauro Carvalho Chehab [Mon, 8 Nov 2010 17:47:35 +0000 (15:47 -0200)]
gen_keytables.pl: use a function to create files

We want to move part of the logic from Makefile into gen_keytables.pl,
in order to make it process a group of files. So, convert the main
logic into a function.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agogen_keytables.pl: Warn if a in-driver table is found
Mauro Carvalho Chehab [Mon, 8 Nov 2010 17:41:26 +0000 (15:41 -0200)]
gen_keytables.pl: Warn if a in-driver table is found

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agokeytable: make it report the proper v4l-utils version
Mauro Carvalho Chehab [Mon, 8 Nov 2010 16:48:15 +0000 (14:48 -0200)]
keytable: make it report the proper v4l-utils version

./ir-keytable --version
IR keytable control version 0.8.2-test

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>