summaryrefslogtreecommitdiff
path: root/v4l2-apps/util
AgeCommit message (Collapse)Author
2009-09-14Improve decode_tm6000 for better usage of mmap methodMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Now, mmap method is the default, when reading from tm6000 V4L2 device. Also, now, it is possible to specify the channel frequency via command line, and the number of video buffers to be used. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2007-08-21tm6000: Add support for mmapMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2009-09-14Start userspace decoding application for tm6000Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> This small application allows testing tm6000 raw format decoding in software. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-09-13Add conexant cx25821 driverMauro Carvalho Chehab
From: Palash Bandyopadhyay <Palash.Bandyopadhyay@conexant.com> Add conexant cx25821 driver release v106 of the Athena driver. Priority: normal Signed-off-by: Palash Bandyopadhyay <palash.bandyopadhyay@conexant.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-29keytable: Don't display KEY_RESERVED codesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> As KEY_RESERVED is used for some spare space at the keycode table, don't return it while displaying the current table Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-29keytable: Prints a more comprehensive error messageMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-29gen_keytables.pl: Fix parsing for some IR tablesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> There are some tables where the last value ends with } Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-29gen_keytables: generate also dvb-usb.h based keybablesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-29gen_keytables.pl: Change it to work with the new formatMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-30merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-28keytable: Improve it to work with 16 bit keycodesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-26v4l2-sysfs-path: fix compile warning.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-08-26v4l2-ctl: add support for enumerating frame sizes and intervalsHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-08-02v4l2-ctl: add support for string controlsMauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> Add support for string controls to v4l2-ctl. Also refactor the code to generalize the handling of control classes. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-02v4l2-ctl: modulator bug fixesMauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> Setting the modulator did not take all txsubchans combinations and the correct V4L2_TUNER_CAP_LOW into account (it used V4L2_TUNER_CAP_LOW from G_TUNER instead of G_MODULATOR). Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-23v4l2-sysfs-path: print device minor/major of the associated devicesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Instead of just printing the associated devices, go further and display the device major/minors and the associated event interface. The output will look like: device = /dev/video0 bus info = usb-0000:00:1d.7-8 sysfs path = /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8 Associated devices: usb_endpoint:usbdev1.8_ep00 (dev 252,20) i2c-adapter:i2c-4 input:input9:event6 (dev 13,70) sound:pcmC1D0c (dev 116,9) sound:dsp1 (dev 14,19) sound:audio1 (dev 14,20) sound:controlC1 (dev 116,10) sound:mixer1 (dev 14,16) dvb:dvb0.frontend0 (dev 212,0) dvb:dvb0.demux0 (dev 212,1) dvb:dvb0.dvr0 (dev 212,2) dvb:dvb0.net0 (dev 212,3) Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-23firmware-tool: fix compilationMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-22v4l2-sysfs-path: print the subdevs associated with that deviceMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> The sysfs interface stores links to the other devices associated with a V4L link. Improves this util to display those associated subdevices. This small tool can be used inside other V4L applications to properly associate audio, input, sound and dvb devices with a /dev/video? file. device = /dev/video0 bus info = usb-0000:00:1d.7-8 sysfs path = /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8 Subdevs: usb_endpoint:usbdev1.8_ep00 i2c-adapter:i2c-4 input:input8 sound:pcmC1D0c sound:dsp1 sound:audio1 sound:controlC1 sound:mixer1 dvb:dvb0.frontend0 dvb:dvb0.demux0 dvb:dvb0.dvr0 dvb:dvb0.net0 Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-11merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-miscMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-07v4l2-ctl: fix get/set-parm bugs and add get/set-output-parm supportHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Fixed several get/set-parm bugs, cleaned it up a bit and reformatted the output to conform to the output of the other get options. Implemented get/set-output-parm to complete the VIDIOC_G/S_PARM support. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-08-07v4l2-ctl: fix help messageMauro Carvalho Chehab
From: hermann pitton <hermann-pitton@arcor.de> For -p (--set-parm) v4l2-ctl also prints G_PARMS too. -P, --get-parm display video parameters [VIDIOC_G_PARMS] -p, --set-parm set video rate in fps [VIDIOC_G_PARMS] Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-06v4l2-ctl: Add support for VIDIOC_[G|S]_PARMMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Those ioctls are used to control streaming frame rate. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-09v4l2-dbg: Add register maps for mt9v011Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-07-20merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-rdsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-07-20v4l2-ctl: fix broken camera control support.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> v4l2-ctl didn't properly support the camera controls. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-06-20v4l2-ctl: support new RDS and modulator caps.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-07-10merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-rdsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-06-20v4l2-ctl: update to the latest RDS spec.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-06-14v4l2-ctl: add modulator get/set options.Mauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-04-06merge: http://www.linuxtv.org/hg/~dougsland/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-04-02ivtv/cx18: remove VIDIOC_INT_S_AUDIO_ROUTING debug support.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Remove support for the debug call VIDIOC_INT_S_AUDIO_ROUTING from cx18 and ivtv. These internal ioctls shouldn't be exposed. These were only used through the cx18-ctl and ivtv-ctl utilities, and only when testing a new card variant. This cleanup allows the removal of this ioctl from v4l2-common.h. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> CC: Andy Walls <awalls@radix.net>
2009-03-18v4l2-dbg: add support for the cafe chip.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-03-10v4l2-apps/util: Add rewrite_eeprom toolDouglas Schilling Landgraf
From: Douglas Schilling Landgraf <dougsland@redhat.com> Added a tool to rewrite eeproms, modules this script is known to work with: em28xx and saa7134 Not tested against newer em28xx chipsets like the em2874 and em2884 Priority: normal Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2009-02-26merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-02-26Move parse-sniffusb2.pl to the right dirMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> As pointed by Cityk, this file were at the wrong place. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-02-20v4l2-apps: clean up the output for g_jpegcomp a bit.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-02-20v4l2-ctl: add get/set-jpeg-comp support.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-02-13v4l2-apps: rename v4l2_sysfs_path to v4l2-sysfs-pathHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> All other tools use - instead of the awkward-to-type underscore, so rename v4l2_sysfs_path to be consistent with the others. Please pay attention to existing nameing conventions the next time someone adds a tool. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-02-13v4l2-apps: move libraries around to make the directory tree flatterHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Instead of having libv4l2util in v4l2-apps/lib and libv4l in v4l2-apps/lib/libv4l, both are now moved to v4l2-apps/libv4l2util and v4l2-apps/libv4l. This is much cleaner and less confusing. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-02-13libv4l2util: rename from libv4l2 to prevent clash with the libv4l2 ↵Hans Verkuil
conversion library From: Hans Verkuil <hverkuil@xs4all.nl> libv4l2 was introduced to fix conversion problems. But this clashed with the already existing libv4l2 utility library. Renamed that libv4l2 library and header to libv4l2util. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-01-27Retrieves info for all v4l2 devices on /devMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-27v4l2_sysfs_path: replace "bus path" by "sysfs path"Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-27Add a small utility for retrieving sysfs bus pathMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Thanks to Carsten Meier <cm@trexity.de> for providing us a c++ code snippet for USB. This code is capable of getting the bus info for both USB and PCI devices. This is retrieved via bus_info returned by VIDIOC_QUERYCAP. The utility will output the following info for a usb device: bus info = usb-0000:00:1d.7-1 bus path = /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1 And, for PCI devices, it will output: bus info = PCI:0000:01:02.0 bus path = /sys/devices/pci0000:00/0000:00:1e.0/0000:01:02.0 Notice: This will only work for devices that uses the standard notation for the bus info: on PCI: sprintf(cap->bus_info, "PCI:%s", pci_name(dev->pci)); or sprintf(cap->bus_info, "PCIe:%s", pci_name(dev->pci)); on USB: usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-12-31parse_em28xx.pl: Add a limited capability of parsing i2c commandsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-12-23v4l2-dbg: fix --list-symbolsHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> --list-symbols didn't work for i2c drivers anymore. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-12-30v4l2: debugging API changed to match against driver name instead of ID.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Since the i2c driver ID will be removed in the near future we have to modify the v4l2 debugging API to use the driver name instead of driver ID. Note that this API is not used in applications other than v4l2-dbg.cpp as it is for debugging and testing only. Should anyone use the old VIDIOC_G_CHIP_IDENT, then this will be logged with a warning that it is deprecated and will be removed in 2.6.30. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-12-22v4l2-dbg: allow debug tvp5150 registersMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-12-22v4l2-dbg: Use aliases for debug, on available chipsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-12-22v4l2-dbg: Add support for get/set ac97 registersMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> em28xx devices can have an ac97 anciliary chip. This patch allows get/set ac97 registers Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-12-22em28xx: update regiters on v4l2-dbg debug utilMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Some ac97 registers where presented as if they are em28xx ones. Also, add mising em2874 registers. The code were generated by the following command: $ more em28xx-reg.h |perl -ne 'if (m/(EM2[A-Z0-9]..)_R.._([^\s]+)\s+(0x[0-9A-Fa-f].)/) { printf "\t{$3, $1_PREFIX \"$2\", 1},\n"; }' |grep -v EM2800_PREFIX|sort >/tmp/registers Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>