summaryrefslogtreecommitdiff
path: root/v4l2-apps
AgeCommit message (Collapse)Author
2008-03-04Subject: Add a missing include at v4l2_driver.hMauro Carvalho Chehab
From: Carl Karsten <carl@personnelware.com> Date: Thu, 28 Feb 2008 15:21:51 -0600 Adding #include <stddef.h> solves a build problem I had on Ubnutu. v4l-dvb/v4l2-apps/test$ make CC driver-test.o In file included from driver-test.c:17: ../lib/v4l2_driver.h:26: error: expected specifier-qualifier-list before 'size_t' make: *** [driver-test.o] Error 1 Thanks to Carl Karsten <carl@personnelware.com> for pointing this issue. CC: Carl Karsten <carl@personnelware.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-02-20firmware-tool: add --write option to --listMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-02-20firmware-tool: some fixes at method 3 outputMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-02-09Fix firmware size and number of firmwaresMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-02-09Improve xc3028 firmware-tool seek modeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Add a method to allow seek mode to find different versions of base firmwares. This is useful to seek for older Xceive firmware revisions. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-02-07Make it work also with usb driversMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> USB drivers, like em28xx and tm6000, have 8 or 16 bit registers, instead of 32, at host. This patch adds an option to set step 1 when listing registers on those devices. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-15Add a --dump option for listing the firmware hexadecimal valuesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-07firmware-tool is a C application, not a C++.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-07From: Mauro Carvalho Chehab <mchehab@infradead.org>Mauro Carvalho Chehab
move rds-saa6588.c from v4l_experimental to v4l2-apps/util From: Mauro Carvalho Chehab <mchehab@infradead.org> rds-saa6588 is, in fact, a test utility, not a driver. Move it to the proper place and add a proper Makefile. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-02Adds device file name to General tabMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-02Show board id at general tab on qv4l2Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> When you have several boards inside a machine, you need to know what board qv4l2 is using. This patch presents driver, board name and bus id, to help identifying the board. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-01Avoid needing to run perl script on machines with 64-bit intMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-12-31Improve method 1Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Xceive firmwares seem to use Big Endian for encoding size, delay and reset. Kernel drivers uses Little Endian. Before this patch, method 1 were fixing endian only for size. This patch changes the behavior to change endian also for delay and reset. With this change, with HVR12x0 file, method (1) works for all firmwares. This produces a very optimized script. The seek method is known to work with firmwares version 2.7 and 2.5. However, drivers with firmware version 1.x have a different internal format. So, another seek method will be required to allow the script to work on those firmwares. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-12-31Add a tool to generate firmware extracting scripts for xc3028Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> This is the tool used to generate extract_xc3028.pl. Once you have a firmware file, generated from other methods, like usb dumps, this tool allows to seek the firmware inside a windows driver, creating an extrating script. There are two methods to seek for a firmware: 1) a complete firmware seek; 2) seek for firmware hunks. For each firmware segment, it writes the segment size, and seeks for the segment inside the firmware. The result of method 2) is not optimized. In the case of hvr12x0 driver, the base firmwares didn't hit method (1), so, the extracting tool broke it into several small segments. This is not optimized, but works. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-12-20merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-12-18cs5345: new i2c driver.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-12-14Better classify firmware typesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-12-14Fix audio displayMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-12-14Firmware standards changed. Fix the firmware-toolMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Firmware now allows having an IF table. This added some changes at the firmware formats. This patch fixes firmware-tool to properly display such newer firmware files. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-11-24Make format output more compactMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-11-15Improve standards print at --listMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-11-15Improve --list commant to show the firmware typeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-11-14Add little firmware manipulation tool for firmware files required by theMauro Carvalho Chehab
xc2028/3028 tuner module. From: Michel Ludwig <michel.ludwig@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-10-20v4l2-ctl: fix minor inconsistency regarding INTEGER64 handling.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-10-19v4l2-ctl: fix --get-sliced-vbi(-out)-cap.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Wrong buffer type was set, causing EINVAL to be returned. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-10-15merge: http://www.linuxtv.org/hg/~hverkuil/ivtvMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-10-14v4l2-ctl: fix usage message.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-10-11Remove obsolete VIDIOC_S/G_MPEGCOMP ioctlsHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Remove the obsolete VIDIOC_G_MPEGCOMP and VIDIOC_S_MPEGCOMP ioctls from the V4L2 API as per the removal schedule (October 2007). Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-08-20v4l2-ctl: add VIDIOC_OVERLAY support.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-07-12Fix tuner max rangeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> By default, tuner-core reports max range as the maximum possible unsigned int. Since qv4l2 uses QSpinBox to display frequency ranges, and this waits for a signed integer, it is considering the maximum value as being -1. This hack will trunc any value bigger than the maximum signed integer to the max value. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- v4l2-apps/util/qv4l2/general-tab.cpp | 2 ++ 1 file changed, 2 insertions(+)
2007-07-12gen_keytables.pl is too verbose.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Make gen_keytables.pl less verbose Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- v4l2-apps/util/gen_keytables.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
2007-07-31videodev2.h: remove superfluous FBUF GLOBAL_INV_ALPHA supportHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> There is no need for a global inverted alpha capability since all the application has to do is to pass '255-alpha' as the global alpha value. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-07-25Fix v4l2-dbg option parsing bug.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-06-20Add another testing tool to v4l2-apps/testMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Michael Schimek gladly donated us a newer testing tool, capable of identify other API non-compliances, called pixfmt-test. Thanks Michael for this contribution. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-06-04Add inverted alpha support to v4l2-ctl.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-06-02Clean up formatting of v4l2-ctl output.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-05-29Add full crop/cropcap support to v4l2-ctlHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> - Remove last use of V4L2_CAP_VIDEO_OUTPUT_POS from v4l2-ctl and v4l2-dbg. - Add VIDIOC_CROPCAP support to v4l2-ctl. - Extend VIDIOC_G/S_CROP support for other buffers besides video capture in v4l2-ctl. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-05-21Backed out changeset c7cb1aaec112a3ee7d6483b54d03d6a093754f10Hans Verkuil
2007-05-19Use v4l2_pix_out_fmt instead of v4l2_pix_fmt for video output formatHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Adding top/left fields to v4l2_pix_fmt broke the ABI. To fix this a new v4l2_pix_out_fmt struct was introduced to specify the video output format. This new struct *does* have the additional top/left fields. The V4L2_CAP_VIDEO_OUTPUT_POS capability that was introduced is no longer needed and is removed. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-05-17Fix v4l2-ctl: comment out top/left usageHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> The patch that broke the ABI was reverted. Also revert the changes in v4l2-ctl that used that new functionality. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-05-07Add capability to test VIDIOC_[S|G]_FREQUENCY on driver-testMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-05-012_driver.c:v4l2_enum_stds: erroneously always returns failureMauro Carvalho Chehab
From: David Warman <dwarman@davidwarman.net> v4l2_driver.c:v4l2_enum_stds: erroneously always returns failure because errno is +ve, needs inverting for use as a v4l error code. The diff command actually produced patched for two fixes; I separated them manually into these two reports. Signed-off-by: David Warman <dwarman@davidwarman.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-02-28Add VIDIOC_G_CHIP_IDENT to various i2c modulesHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-27Generate driver IDs and chip IDs from the headers and use that in v4l2-dbg.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Instead of a hand-coded list the driver IDs and chip idents are generated automatically from the corresponding headers. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-26Show v4l2_framebuffer Base address in v4l2-ctl.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-25Add v4l2-dbg debugging utility.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> With v4l2-dbg it is possible to make register dumps of host or i2c chips. It is also possible to query what chips are available. This is just the first version, it will be improved substantially. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-25Add v4l2-ctl support for output overlays and framebuffer ioctls.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-18Use strtol instead of atol to parse the value for a control.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Setting the VIDEO_MUTE control works much better if you can enter a hexadecimal value. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-04Forgot to test against V4L2_CTRL_FLAG_DISABLEDHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-01-21error check were wrong, since at userspace, error codes are positive valsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>