path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
29 hoursdvbv5-zap: allow recording also the SDT tableHEADmasterMauro Carvalho Chehab1-0/+14
The SDT table can contain useful information required by players for listening some programs. It seems that VLC requires that, in order to properly detect programs with SMPTE 302m. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
3 daysdvbv5-zap: add a warning when not recording PMT dataMauro Carvalho Chehab1-0/+6
There are several audio formats and at least one video format that are sent using Elementary Stream type 6 (private data). The only way to identify the stream format is by checking some descriptors that come together with the PMT table, being the registration descriptor the most important one, as it contains a FOURCC value that should uniquelly identify the stream type. Due to that, add a note when audio and/or video streams are recorded without PMT data. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
10 dayscec-ctl: don't spam log with PA changes unless pausedHans Verkuil1-10/+7
When a thread is started to poll for EDID changes, then that thread was logging the new Physical Address whenever it changed, but that messed up the logging of e.g. --stress-test-power-cycle. So now only log PA changes if the main thread is paused since that's when nothing else is happening. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
11 daysv4l-helpers: don't mix enum type with intRosen Penev1-1/+3
warning: enumeral and non-enumeral type in conditional expression return hsv_enc < V4L2_HSV_ENC_180 ? V4L2_HSV_ENC_180 : hsv_enc; Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
12 daysv4l-utils: sync with media_tree masterHans Verkuil2-19/+21
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
12 daysclean up includes and convert C includes to C++Rosen Penev51-663/+168
Several C includes ending in .h are deprecated in C++. Tested with several combinations of uClibc-ng, musl, glibc, libstdcpp, libcxx, and uClibc++. Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
12 daysutils: v4l2-ctl: support V4L2_CAP_IO_MC in v4l2-ctl '--list-formats-*' commandsDafna Hirschfeld8-31/+77
Add optional <mbus_code> arg to 'v4l2-ctl --list-formats-*' commands for capture, metadata and output devices. If <mbus_code> is given and the device has capability V4L2_CAP_IO_MC then list only the formats that matches the mbus code. The mbus_code is ignored for devices that don't use it or don't have the V4L2_CAP_IO_MC capability. Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
13 dayscec-ctl: improve the --phys-addr-from-edid-poll optionHans Verkuil3-47/+69
When --phys-addr-from-edid-poll is specified, start a background thread that does the polling. This avoids having to start one cec-ctl instance to do EDID polling, and another to start a stress test (--stress-test-power-cycle). When all other requested actions are finished, then cec-ctl will just wait for Ctrl-C when --phys-addr-from-edid-poll is specified, so this effectively keeps the old behavior as well. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
13 dayscec-follower: add --standby and --toggle-power-statusHans Verkuil4-1/+34
Add the --standby option to start the follower with the device in Standby status. Add the --toggle-power-status <secs> option to let the follower toggle the emulated power status every <secs> seconds. This helps testing power status transtions. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-27sync with latest media kernelHans Verkuil1-0/+3
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-27v4l2-tpg.patch: add clamp_t defineHans Verkuil1-1/+3
Needed by v4l2-tpg. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-17cec-follower: CEC_MSG_STANDBY can just call enter_standby()Hans Verkuil1-7/+1
The existing helper function enter_standby() already does what the code in 'case CEC_MSG_STANDBY' does. So replace that code with a simple call to enter_standby() to avoid duplicate code. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-14v4l2-compliance: some fails were ignoredHans Verkuil1-2/+6
Some test failures in lower-level tests were ignored. This caused the total 'Failed' counter to remain 0, which was confusing. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-10v4l2-ctl: fix broken fd.qbuf error checkHans Verkuil1-1/+1
In one place the result of fd.qbuf was checked if it was negative, but it should have been a check for non-zero. Fix this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-10cv4l-helpers.h: fix the cv4l_buffer assignment operatorHans Verkuil1-0/+3
This assignment operator did not actually assign anything. Fix this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-07v4l2-ctl: rename vivid_uvc_meta_buf to uvc_meta_bufHans Verkuil1-3/+3
This struct is not vivid specific, so drop the vivid_ prefix. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-06v4l2-ctl: fix INTEGER64 support, add common_print_control()Hans Verkuil2-26/+41
Split off the printing of a control value into a separate common_print_control() function. While working on that I noticed that controls of type INTEGER64 were not handled correctly, so fix that. Also the control names shown by the old code when printing the control values was inconsistent: sometimes the name from QUERY_EXT_CTRL was used, sometimes the ctrl_id2str[] name. Standardize on the latter. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-03use explicit for single argument constructorsRosen Penev1-3/+3
Found with google-explicit-constructor Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-03convert files to referenceRosen Penev1-1/+1
Found with performance-unnecessary-value-param Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-03use emplace_backRosen Penev1-1/+1
Found with modernize-use-emplace Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-03use using instead of typedefRosen Penev4-11/+11
Found with modernize-use-using Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-03use autoRosen Penev11-19/+20
Found with modernize-use-auto Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-03convert to range based loopsRosen Penev15-155/+132
Found with modernize-loop-convert Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-29Move sync-with-kernel into dedicated shell script ./sync-with-kernel.shSean Young1-13/+0
The make sync-with-kernel target is a collection of shell fragments scattered over the tree. Collect all of them into a single shell script. This makes it is easier to see what sync-with-kernel does, and makes the move away from autotools to meson possible. Reviewed-by: Ariel D'Alessandro <ariel@vanguardiasur.com.ar> Signed-off-by: Sean Young <sean@mess.org>
2020-07-21qv4l2: Also fall back to old method for querying resolutionGregor Jasny1-1/+2
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
2020-07-21Use standard integer typesHans Petter Selasky2-16/+18
Fixes compilation under FreeBSD. Signed-off-by: Hans Petter Selasky <hps@selasky.org> Signed-off-by: Sean Young <sean@mess.org>
2020-07-19v4l-utils: use V4L2_TYPE_IS_CAPTUREHans Verkuil2-3/+3
Use V4L2_TYPE_IS_CAPTURE instead of !V4L2_TYPE_IS_OUTPUT. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-19v4l-utils: sync with latest media kernelHans Verkuil2-8/+34
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-19v4l-utils: update v4l2-tpg.patchHans Verkuil1-91/+107
Update the patch for the v4l2 TPG so it is in sync with the latest media master. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-19cec-follower: fix logging the SHAHans Verkuil3-35/+4
Commit 3f35a7bcf82b ("cec-follower: Add version command") broke the v4l-utils debian build, and broke logging the SHA. Fix this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Fixes: 3f35a7bcf82b ("cec-follower: Add version command")
2020-07-17v4l2-compliance: improve frequency range checksHans Verkuil1-0/+47
Check for each frequency range that the driver maps slighly out-of-range frequencies to the right frequency band. Also check that frequency bands do not overlap or are adjacent. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-16v4l2-compliance: fix colorspace checks for JPEG codecsHans Verkuil1-1/+37
The colorspace handling for JPEG encoders/decoders is quite different from other m2m devices since the colorspace of a compressed JPEG file is effectively fixed to sRGB. So the typical passthrough of colorspace information from output to capture is not valid, instead the colorspace information is (mostly) fixed. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-15cec-compliance: the SHA needs to be shown in different waysHans Verkuil1-13/+3
The SHA logged with --version has a lot of unnecessary spaces. Those are only needed when running a compliance test. Rework the code a bit to make the logged text look nice. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-15cec-follower: Add version commandPaul Elder3-8/+27
Add a --version option to cec-follower to retrieve the version of cec-follower. Whilte at it, factor out printing the SHA. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-15cec-ctl: Add version commandPaul Elder3-1/+19
Add a --version option to cec-ctl to retrieve the version of cec-ctl. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-15cec-compliance: Add version commandPaul Elder3-4/+26
Add a --version option to cec-compliance to retrieve the version of cec-compliance. While at it, factor out printing the SHA. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-15v4l2-ctl: Add version commandPaul Elder5-1/+17
Add a --version option to v4l2-ctl to retrieve the version of v4l2-ctl. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-15v4l2-compliance: Add version commandPaul Elder2-6/+28
Add a --version option to v4l2-compliance to retrieve the version of v4l2-compliance. While at it, factor out and reorder printing the SHA to after argument parsing. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-15v4l2-ctl: set total number of native DTDs to 1Hans Verkuil1-8/+8
The EDIDs used with v4l2-ctl --set-edid type=XXXX set the "total number of native DTDs" field in the CTA-861 extension block to 0, meaning that the first Short Video Descriptor is the preferred timing. However, this should be 1, meaning that the first DTD in block 0 is the preferred timing. This is more compatible and avoid a warning from the edid-decode utility that checks for this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-14v4l-utils: FreeBSD already defines packedHans Petter Selasky2-1/+5
Check for existing definition, before defining. Signed-off-by: Hans Petter Selasky <hps@selasky.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> [hverkuil: updated v4l2-tpg.patch as well]
2020-07-14media-ctl: Add version commandPaul Elder3-0/+17
Add a --version option to media-ctl to retrieve the version of media-ctl. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-13cec-compliance: don't skip tests if phys addr is invalidHans Verkuil1-2/+1
The compliance test appeared to be successful if the remote physical address is invalid (e.g. because Give Physical Address timed out) since all tests were just skipped in that case. So drop the check for a valid physical address and instead the system_info_phys_addr() test will fail with a critical error. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-11v4l2/cec-compliance: use new GIT_SHA variableHans Verkuil6-49/+6
Move the logic to obtain the git SHA of the HEAD to configure.ac, and fix it so it also works when configuring in another directory. This also simplifies the logic in the compliance utilities since there is no longer any need to create a temporary version.h file. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-11qv4l2: QGuiApplication::screenAt() appeared in Qt 5.10Hans Verkuil1-0/+4
Use QApplication::desktop() for older Qt versions. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-10keytable: Fix missing inclusion of argp.hIsmael Luceno1-0/+1
error_t is only defined by argp.h on non-glibc systems. Signed-off-by: Ismael Luceno <ismael@iodev.co.uk> Signed-off-by: Sean Young <sean@mess.org>
2020-07-10v4l2-compliance: remove spurious \n in messageHans Verkuil1-1/+1
"SHA: not available" had a spurious newline at the end. Drop it. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-09cec-compliance: clarify a power transition testHans Verkuil1-1/+5
Add comment pointing to the CEC 2.0 requirement that is being tested. Also update a warning message: split it in a warning message and info messages that point to the fix and explain that is was backported to LTS kernels. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-08v4l2-compliance: disable cache flag test for kernels < 5.9Hans Verkuil3-1/+5
With the introduction of cache hint flags in kernel 5.9 a test was added to check that the flags are cleared if the driver does not support cache hint flags. But for older kernels these flags were never cleared and this test would always fail. Skip the test if the reported V4L2 version is < 5.9. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Tested-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
2020-07-08v4l2-compliance: drop kernel_versionHans Verkuil2-15/+1
This was used in one place only to work around buggy behavior in kernels < 2.6.38, and that test was wrong as well (kernel_version is 0 for non 2.6 kernels). Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
2020-07-07qv4l2: fix more 'deprecated Qt functions' warningsHans Verkuil2-4/+15
Use asprintf instead of sprintf. Replace deprecated QDesktopWidget::availableGeometry(). Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

Privacy Policy