Hans de Goede [Fri, 7 Oct 2011 07:54:24 +0000 (09:54 +0200)]
libv4l: handle some ioctls changing the format as a side effect
Some ioctls may change the devices fmt as a side effect, handle this properly.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Fri, 7 Oct 2011 07:18:39 +0000 (09:18 +0200)]
libv4l2: Move s_fmt handling code into a helper function
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Fri, 7 Oct 2011 07:19:41 +0000 (09:19 +0200)]
libv4l2: Fix shadowing declaration of saved_err
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans Verkuil [Fri, 14 Oct 2011 10:14:36 +0000 (12:14 +0200)]
qv4l2: 'Set Defaults' incorrectly initialized string controls.
The wrong QString constructor was used: the 'size' comes before the
character, not the other way around.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 12 Oct 2011 10:15:47 +0000 (12:15 +0200)]
v4l2-compliance: improve audmode checks.
What drivers should return as audmode isn't as ambiguous as I thought.
So implement the proper checks.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Tue, 11 Oct 2011 09:15:49 +0000 (11:15 +0200)]
v4l2-compliance: add another fixme to the list.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Mauro Carvalho Chehab [Sat, 8 Oct 2011 10:44:01 +0000 (07:44 -0300)]
v4lgrab: Add a notice on its source that this utility is legacy
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 8 Oct 2011 10:39:58 +0000 (07:39 -0300)]
Fix compilation when libraries are statically compiled
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 8 Oct 2011 09:49:32 +0000 (06:49 -0300)]
Move -ldl -ljpeg to the files that actually need it
This avoids creating extra dependencies on other files.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Thu, 6 Oct 2011 17:02:54 +0000 (14:02 -0300)]
Add support to disable libv4l and/or v4l-utils
Add some autogen magic to allow disabling the compilation of
v4l-utils or libv4l.
If libv4l is disabled but v4l-utils is enabled, it will still
build libv4l statically, and will linkedit the v4l-utils against
the static libraries.
This way distributions can ship v4l-utils on a separate package
from libv4l, and even having things like providing a v4l-utils
based on a different version of libv4l.
This changeset also opens space to add more libraries and other
packages, as the first step to turn it into a media-utils tree.
While here, adds a v4l-utils.spec rpm file, as found on Fedora.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans Verkuil [Fri, 7 Oct 2011 06:37:11 +0000 (08:37 +0200)]
v4l2-ctl: add support for the frame_sync event.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 7 Oct 2011 06:33:18 +0000 (08:33 +0200)]
qv4l2: support querying TV standard and video presets.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 7 Oct 2011 06:32:18 +0000 (08:32 +0200)]
v4l2-compliance: add more 'fixmes' to the list.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 7 Oct 2011 06:31:03 +0000 (08:31 +0200)]
qv4l2: add support for the new V4L2_CTRL_FLAG_VOLATILE flag.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 7 Oct 2011 06:30:34 +0000 (08:30 +0200)]
v4l2-ctl: add support for the new V4L2_CTRL_FLAG_VOLATILE flag.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 7 Oct 2011 06:29:58 +0000 (08:29 +0200)]
Update videodev2.h to latest version.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans de Goede [Thu, 15 Sep 2011 08:48:42 +0000 (10:48 +0200)]
libv4l: Fix sorting of upside down device list
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Wed, 14 Sep 2011 18:20:11 +0000 (20:20 +0200)]
libv4l2: Don't try to do capture ioctls / conversion on non capture devices
Now that we also actively wrap non capture devices to allow using
plugins with them, we should make sure to not do things like G_FMT
with type == V4L2_BUF_TYPE_VIDEO_CAPTURE on them, or to try to do
any sort of conversion related things in general.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Tue, 13 Sep 2011 21:16:32 +0000 (23:16 +0200)]
libv4l: update upside down webcam table
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Tue, 9 Aug 2011 09:36:15 +0000 (11:36 +0200)]
libv4l2: Set errno to EIO if getting 4 consecutive EAGAIN convert errors
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Tue, 9 Aug 2011 09:14:54 +0000 (11:14 +0200)]
libv4lconvert: retry with another frame on JPEG header decode errors
Some cameras (quantas based ones) sometimes (1 every 100 frames or so)
send a frame with a corrupt header. This patch changes libv4lconvert's
behavior on JPEG header decode errors to return EAGAIN, which will
make libv4l2 get another frame and try decoding that (up to 4 times).
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans Verkuil [Tue, 30 Aug 2011 10:59:22 +0000 (12:59 +0200)]
v4l2-compliance: fix a VIDIOC_S_STD test
One S_STD test needed to test against ENOTTY as well.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Tue, 30 Aug 2011 08:14:13 +0000 (10:14 +0200)]
qv4l2: add 'Show frames' to the toolbar.
This option turns out to be quite useful for testing, so add it to the
toolbar.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 29 Aug 2011 11:14:35 +0000 (13:14 +0200)]
v4l2-compliance: fix incorrect std check.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 22 Aug 2011 13:30:38 +0000 (15:30 +0200)]
qv4l2: add the missing video-television.png icon.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 22 Aug 2011 13:28:06 +0000 (15:28 +0200)]
qv4l2: changing the preset/std should also update the format.
And as a bonus fix the interval combobox was not disabled when it should.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 18 Aug 2011 13:59:03 +0000 (15:59 +0200)]
qv4l2: fix a segfault in a corner case.
With the new 'Show frames' feature the m_capImage pointer must now be set to
NULL after delete. It used to be that it was always 'new'ed again, but that's
no longer true.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 18 Aug 2011 13:43:47 +0000 (15:43 +0200)]
qv4l2: add a menu option to turn off the Capture window.
Converting frames into a format suitable for displaying can take time.
If you just want to test the framerate of the capture device then it is
useful to be able to just capture without doing any format conversions
and displaying the frames.
Add a new option in the menu to do just this.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 18 Aug 2011 12:39:07 +0000 (14:39 +0200)]
qv4l2: give the capture window a proper name.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 18 Aug 2011 12:36:50 +0000 (14:36 +0200)]
qv4l2: mention if a format is emulated.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 18 Aug 2011 12:29:09 +0000 (14:29 +0200)]
qv4l2: when capturing show the frame and fps in both windows.
Helps when testing 1080p streams to have it in both places.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 18 Aug 2011 12:20:34 +0000 (14:20 +0200)]
qv4l2: don't change the format just because we use libv4l2.
So some reason qv4l2 switched to the RGB24 format if the video node was
opened through libv4l2. This is a completely unexpected side-effect that
should not happen, especially since qv4l2 is usually used as a test
utility.
This may mean that a frame is converted twice: once inside libv4l2, then
to get it into a format suitable for the screen. But that's OK. After all,
that's what you asked for.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Michael Jones [Mon, 18 Jul 2011 10:00:10 +0000 (07:00 -0300)]
capture-example: don't use bytesperline when allocating buffers
This removes "buggy driver paranoia", which set sizeimage equal to
at least width * height * 2. This was a false assumption when the
pixel format only required 1 byte per pixel. Originally, the
paranoia was in place to handle drivers which incorrectly set
sizeimage=0, but these seem to have been fixed.
Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 13 Aug 2011 17:54:49 +0000 (14:54 -0300)]
keytable: Add more information about the device
Print more information about the device on query mode. It also
provides some info when called with the compatibility mode
or against a non-RC device (e. g. now it will provide some info
if someone uses -d <device> parameter).
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans de Goede [Sun, 7 Aug 2011 13:01:23 +0000 (15:01 +0200)]
libv4l: update upside down device list
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Tue, 2 Aug 2011 11:30:23 +0000 (13:30 +0200)]
libv4l: Add a force tinyjpeg quirk for w996Xcf based cams
These cams produce non standard JPEG data which our embedded tinyjpeg
copy has been patched to handle, but regular libjpeg cannot handle,
so force the use of our embedded tinyjpeg for these cams.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans Verkuil [Fri, 29 Jul 2011 13:28:01 +0000 (15:28 +0200)]
v4l2-compliance: fix one error code check when testing framesizes
Don't fail when enum_framesizes doesn't return any sizes.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 29 Jul 2011 13:02:38 +0000 (15:02 +0200)]
v4l2-compliance: test for ENOTTY compliance.
Unsupported ioctls used to return -EINVAL, but now they return -ENOTTY.
This patch changes the compliance tests to take this into account.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans de Goede [Fri, 29 Jul 2011 07:18:38 +0000 (09:18 +0200)]
libv4l: update upside down device list
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans Verkuil [Thu, 28 Jul 2011 09:13:56 +0000 (11:13 +0200)]
v4l2-compliance: add tests for bitmask controls.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 28 Jul 2011 09:01:40 +0000 (11:01 +0200)]
v4l2-ctl: fix typo in usage message.
Thanks to Mats Randgaard <mats.randgaard@cisco.com>.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans de Goede [Sun, 24 Jul 2011 17:35:11 +0000 (19:35 +0200)]
libv4l: Add v4l2_write function and plugin op
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Mauro Carvalho Chehab [Sun, 24 Jul 2011 16:33:26 +0000 (13:33 -0300)]
parse_az6007.pl: Add a parser for FX2 requests
AZ6007 uses Cypress cy7c68013a 8051-based microcontroller. Adds
a parser for it. The parser doesn't cover all registers, but it
shouldn't be hard to add more as things are guessed from logs
inspection.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 24 Jul 2011 13:22:02 +0000 (10:22 -0300)]
parse_az6007.pl: optionally print timestamp for mt2063
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans de Goede [Sun, 24 Jul 2011 14:52:25 +0000 (16:52 +0200)]
libv4l: update upside down device list
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Mauro Carvalho Chehab [Sun, 24 Jul 2011 11:09:57 +0000 (08:09 -0300)]
parse_az6007.pl: Fix the payload var name at the parser logic
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 24 Jul 2011 11:05:12 +0000 (08:05 -0300)]
parse_az6007.pl: Move the I2C read decode hack to the proper place
The removal of the extra bytes should be done only at the payload.
Also, moving it to the logic that handles the I2C subaddress
makes the code more readable.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 24 Jul 2011 10:58:27 +0000 (07:58 -0300)]
parse_tcpdump_log.pl: Improve help
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 24 Jul 2011 10:56:14 +0000 (07:56 -0300)]
parse_az6007.pl: add a parser for mt2063 and fixes reads
mt2063 reads outputs 7 bytes of trash: the first 6 and the last one.
Remove those extra data when parsing reads.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Fri, 22 Jul 2011 22:11:56 +0000 (19:11 -0300)]
Add a parser for az6007 logs
Currently, it handles only I2C and DRX-K transfers.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans Petter Selasky [Mon, 18 Jul 2011 14:18:42 +0000 (16:18 +0200)]
libv4l: On FreeBSD use sys/ioctl.h instead of linux/ioctl.h
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Sun, 17 Jul 2011 20:40:41 +0000 (22:40 +0200)]
libv4l2: Support output devices too
Now that we support plugins it makes sense to also wrap output devices,
so that we can use plugins with them too.
Remark, we should probably add a write() callback to the dev_ops,
and a libv4l2_write function too ?
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Yordan Kamenov [Thu, 19 May 2011 12:35:59 +0000 (15:35 +0300)]
libv4l2: Add plugin support to libv4l
A libv4l2 plugin will sit in between libv4l2 itself and the actual
/dev/video device node a fd refers to. It will be called each time
libv4l2 wants to do an operation (read/write/ioctl) on the actual
/dev/video node in question.
Changes before merge by Hans de Goede:
-export libv4l2_default_dev_ops for apps which directly use libv4lconvert
-use libv4l2_default_dev_ops in qv4l2 rather then defining our own there
-swap 1st 2 arguments to v4l2_plugin_cleanup to match v4l2_plugin_init order
-v4l2_plugin_init: return the address of the plugins devops, rather then
always returning the address of the default dev_ops and overriding the
individual default dev_ops with those of the plugin. The latter is a bad idea
when multiple /dev/video devices are opened in the same process space as
they may use different plugins
-use $LIBDIR/libv4l/plugins as pluginsdir instead of hardcoded
/usr/lib/libv4l/plugins
Signed-off-by: Yordan Kamenov <ykamenov@mm-sol.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Sun, 17 Jul 2011 16:51:02 +0000 (18:51 +0200)]
Start of 0.9.x devel cycle
v4l-utils follows the classic odd unstable / even stable release numbering,
this is the start of a new 0.9.x dev cycle leading to a 0.10.x (or maybe a
1.x) release. The plan for 0.9.x is to:
1) Keep the libv4l1 and libv4l2 ABI's compatible with 0.8.x
2) Change the libv4lconvert ABI, changing the soname to libv4lconvert.so.1
(from libv4lconvert.so.0), this is needed to be able to add plugin
support to libv4l2
3) Allow for somewhat more adventurous changes, until later in the 0.9.x
cycle, when things should stabilize again
Note WRT 2), that there is no promise of a stable libv4lconvert.so.1 ABI
until 0.10.0 is released!
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Sun, 17 Jul 2011 15:35:04 +0000 (17:35 +0200)]
Prepare for 0.8.5 release
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Sun, 17 Jul 2011 16:05:27 +0000 (18:05 +0200)]
libv4lconvert: Fix se401 decompression
Somehow I've managed to commit a non working version.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Sun, 17 Jul 2011 15:27:22 +0000 (17:27 +0200)]
libv4l: update upside down device list
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Gregor Jasny [Sun, 17 Jul 2011 14:37:47 +0000 (16:37 +0200)]
v4l2-sysfs-path: remove libsysfs dependency
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Gregor Jasny [Sun, 17 Jul 2011 14:37:01 +0000 (16:37 +0200)]
qv4l2: Install fixed size icons, too
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Gregor Jasny [Sun, 17 Jul 2011 14:34:53 +0000 (16:34 +0200)]
Generate Libs.private fields in pkgconfig files from already defined Makefile variables
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans Verkuil [Sun, 17 Jul 2011 10:55:18 +0000 (12:55 +0200)]
qv4l2: add BITMASK as a valid control type.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Mauro Carvalho Chehab [Thu, 14 Jul 2011 16:56:01 +0000 (13:56 -0300)]
rc_keymaps: Update to reflect 3.0-rc7 + media changes
Update the keymaps that changed recently
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 10 Jul 2011 17:16:45 +0000 (14:16 -0300)]
parse_em28xx_drxk.pl: Fix for read16/write16
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 10 Jul 2011 15:03:04 +0000 (12:03 -0300)]
parse_em28xx_drxk.pl: improve output for drxk parsed messages
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 10 Jul 2011 14:32:14 +0000 (11:32 -0300)]
parse_em28xx_drxk.pl: Improve output for i2c master xfer
append 0x to hexadecimal numbers, making easier to paste it into
the driver.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 10 Jul 2011 14:26:23 +0000 (11:26 -0300)]
parse_em28xx_drxk.pl: Add an option to enable all parsers
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sun, 10 Jul 2011 14:12:53 +0000 (11:12 -0300)]
parse_em28xx_drxk.pl: Add an option to preserve timestamps
It may be useful, when needing to analyze the amount of time that
passed between some events.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 9 Jul 2011 18:55:47 +0000 (15:55 -0300)]
parse_em28xx_drxk.pl: Properly handle write_block
Firmware load and other operations use write_block.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 9 Jul 2011 18:14:30 +0000 (15:14 -0300)]
parse_em28xx_drxk.pl: Better document a read error
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 9 Jul 2011 18:00:40 +0000 (15:00 -0300)]
parse_em28xx_drxk.pl: Add parameters to suppress/see other logs
By default, this parser will output just the DRX-K messages,
but extra parameters allow to enable/disable other logs
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 9 Jul 2011 17:50:30 +0000 (14:50 -0300)]
parse_em28xx_drxk.pl: Fix parser for read operations
Read operations are written as 2 separate I2C transactions.
We need to group them, in order to get the proper values.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 9 Jul 2011 14:57:28 +0000 (11:57 -0300)]
parse_em28xx_drxk.pl: Describe DRX-K flags
Those flag values were got from Terratec driver, found at:
http://linux.terratec.de/files/TERRATEC_H7/20110323_TERRATEC_H7_Linux.tar.gz
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 9 Jul 2011 14:14:36 +0000 (11:14 -0300)]
parse_em28xx_drxk.pl: Add more register definitions
The af6007 file has a different driver for DRX-K, with more register
definitions. Add the registers found there also, in order to provide
a more complete parser.
After adding these, there are now only 3 messages that aren't
parsed from a Terratec H5 device:
read32_flags(state, 0x52, 0x026001ec, 0x00000000, 0x90);
read32_flags(state, 0x52, 0x026001ec, 0x00000000, 0x90);
write16_flags(state, 0x52, 0x008206fe, 0x00f00022, 0xc0);
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 9 Jul 2011 14:04:50 +0000 (11:04 -0300)]
parse_em28xx_drxk.pl: Sort register definitions for DRX-K
Sort all register definitions. This makes easier to identify
the gaps at the registers.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 9 Jul 2011 13:56:46 +0000 (10:56 -0300)]
parse_em28xx_drxk.pl: Better represent some hex values
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Sat, 9 Jul 2011 12:25:20 +0000 (09:25 -0300)]
Add a parser for em28xx with drxk frontend
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans Verkuil [Fri, 8 Jul 2011 07:55:59 +0000 (09:55 +0200)]
qv4l2: add support for the new bitmask control type.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 8 Jul 2011 07:51:43 +0000 (09:51 +0200)]
v4l2-ctl: add support for the new bitmask control type
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 8 Jul 2011 07:41:00 +0000 (09:41 +0200)]
videodev2.h: update to latest version.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Sat, 2 Jul 2011 13:17:09 +0000 (15:17 +0200)]
ioctl-test: update with latest V4L2 API ioctls, remove obsolete ioctls.
Added the latest ioctls and remove support for the V4L1 and old V4L2
ioctls.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Sat, 2 Jul 2011 10:39:52 +0000 (12:39 +0200)]
v4l2-ctl: add support for the control event.
The --wait-for-event and --poll-for-event options now accept the control
event as well.
Example: v4l2-ctl --poll-for-event=ctrl=hue
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Sat, 2 Jul 2011 10:05:53 +0000 (12:05 +0200)]
videodev2.h: update to latest media_tree version.
The videodev2.h was updated in order to use the new control event API.
The V4L2_PIX_FMT_SE401 pixel format definition was put back since
libv4lconvert.c is going to use that for the upcoming se401 driver.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Sat, 2 Jul 2011 10:04:36 +0000 (12:04 +0200)]
v4l2-ctl: fix -w support.
The -w option (use the libv4l2 wrapper library) never worked since the v4l2_open
and v4l2_close functions were never called. Fixed this.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Sat, 2 Jul 2011 10:01:59 +0000 (12:01 +0200)]
v4l2-ctl: print the v4l2_fmtdesc flags field.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Sat, 2 Jul 2011 10:00:01 +0000 (12:00 +0200)]
v4l2-ctl: move the doioctl_name function up to a more logical place.
doioctl_name was defined fairly late in the source, limiting where it
could be used. Move it up.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Tue, 28 Jun 2011 10:07:26 +0000 (12:07 +0200)]
v4l2-compliance: add VIDIOC_SLICED_VBI_CAP compliance test.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 27 Jun 2011 12:47:47 +0000 (14:47 +0200)]
v4l2-compliance: add file/line for all fails. Do some cleanups.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 27 Jun 2011 12:25:10 +0000 (14:25 +0200)]
v4l2-compliance: add VIDIOC_G_FBUF compliance test.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Mon, 27 Jun 2011 09:36:09 +0000 (11:36 +0200)]
v4l2-compliance: add VIDIOC_G_FMT compliance tests.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Fri, 24 Jun 2011 10:34:28 +0000 (12:34 +0200)]
v4l2-compliance: add VIDIOC_ENUM_FRAMESIZES and VIDIOC_ENUM_FRAMEINTERVALS tests.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 23 Jun 2011 14:13:37 +0000 (16:13 +0200)]
libv4lconvert.c: fix memset bug discovered by v4l2-compliance.
The size of the reserved array is 4 * sizeof(u32) = 16. So only the first
element is now zeroed. Use sizeof(reserved) instead.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Thu, 23 Jun 2011 14:13:18 +0000 (16:13 +0200)]
v4l2-compliance: add VIDIOC_ENUM_FMT tests.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Hans Verkuil [Wed, 22 Jun 2011 14:27:52 +0000 (16:27 +0200)]
v4l2-compliance: fix QUERYCTRL test when there are no controls.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans de Goede [Sat, 18 Jun 2011 14:03:10 +0000 (16:03 +0200)]
get_media_devices: white space fixup
My bad.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Sat, 18 Jun 2011 13:58:43 +0000 (15:58 +0200)]
get_media_devices: Get rid if asprintf
It is a GNU extension and thus not declared in the std headers when
compiling without _GNU_SOURCE
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Sat, 18 Jun 2011 13:42:22 +0000 (15:42 +0200)]
get_media_devices: Consider multiple functions on the same pci dev as one dev
This fixes get_media_devices not seeing the video and the alsa input on
my bt878 card as associated devices.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Sat, 18 Jun 2011 13:38:08 +0000 (15:38 +0200)]
get_media_devices: Only strip usb interface from usb device path
The old code would strip to much, leading to different usb devices on the
same hub getting seen as the same device.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Sat, 18 Jun 2011 13:29:45 +0000 (15:29 +0200)]
get_media_devices: Don't complain if there are no devices of a certain class
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Sat, 18 Jun 2011 13:27:57 +0000 (15:27 +0200)]
get_meda_devices: more robust detection of device bus
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans de Goede [Sat, 18 Jun 2011 13:13:40 +0000 (15:13 +0200)]
get_media_device: Continue with the next dir entry on a sysfs parse error
Rather then completely aborting the sysfs-scanning.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>