AgeCommit message (Collapse)AuthorFilesLines
2021-06-04cec-compliance: move audio helper functions to cec-test-audio.cppHans Verkuil3-199/+199
Several audio helper functions that were in cec-compliance.cpp really belong to cec-test-audio.cpp. Move them. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-06-04v4l-utils: sync with media_tree/masterHans Verkuil3-23/+25
Update headers from latest media_tree/master kernel. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-05-28cec-compliance: skip warning if audio_out_delay is 1Hans Verkuil1-1/+1
The warning about an invalid audio_out_delay was shown even if the value was valid (1). Check if it is != 1 first. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-05-27v4l2-ctl: add new control typesHans Verkuil1-0/+18
Correctly detect and log hdr10, mpeg2 and vp8 control types. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-05-27v4l-utils: sync with upstream media_tree masterHans Verkuil11-71/+1618
Update to the latest kernel media headers. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-05-27v4l2-compliance: V4L2_PIX_FMT_VP8_FRAME is for stateless decoderHans Verkuil1-0/+1
The compliance utility didn't detect that V4L2_PIX_FMT_VP8_FRAME represents a stateless decoder. Add support for this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-05-27cec-compliance: hardcode audio_out_delay to 1 if not setHans Verkuil1-0/+2
If audio_out_delay is not present in the message, then set the value to 1. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-05-27v4l-utils: add missing fallthroughRosen Penev1-1/+2
Found with -Wimplicit-fallthrough Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-05-27v4l-utils: add missing staticRosen Penev6-6/+6
Found by -Wmissing-prototypes Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-05-26mass constexpr conversionsRosen Penev22-74/+74
Use constexpr instead of const, ensuring these are all initialized at compile time. Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-05-26cec-compliance: improve error messageHans Verkuil1-1/+1
Rephrase error message to avoid the ugly: 'Expected no warnings, got 1 warnings' Now it says: 'Expected no warnings, but got 1' Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-05-21cec-compliance: use the actual audio_out_delay valueHans Verkuil1-0/+5
cec_ops_report_current_latency() hardcodes the audio_out_delay value if it is unused, ignoring the actual value. Which is fine, except when running a compliance test, then you want the actual value. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-05-21cec-compliance: clarify a warningHans Verkuil1-3/+4
The warning when a reserved audio out delay value was used didn't include that value 1 should be used instead. Clarify this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-05-06v4l2-ctl: add '--set-edid type=list' supportHans Verkuil1-0/+15
'type=list' lists all supported EDID types. This makes life a little bit easier when trying out different EDIDs. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-05-06utils/cec: fix inconsistent Vendor ID reportingHans Verkuil4-9/+8
Either report it as '0x010203 (Name)' or '0x010203, 66051', depending on whether the Vendor ID is a vendor that is known by libcecutil. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-05-06utils/libcecutil/cec-log.cpp: report 6 digits of Vendor IDHans Verkuil1-2/+2
The Vendor ID is just 24 bits, so report only 6 digits (%06x) instead of 8 (%08x). Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-05-01ir-ctl: include timeout in raw IR and parse timeout in pulse-space fileSean Young1-6/+5
Reported-by: Luca Di Gregorio <lucdig@gmail.com> Signed-off-by: Sean Young <sean@mess.org>
2021-04-27cec-follower: detect the cessation of Audio Rate Control messagesDeborah Brouwer1-8/+14
If the controlling device simply stops sending audio rate messages, give the cec-follower the ability to detect that it has not received an audio rate message within 2 seconds as required. The cec-follower will quit the audio rate controlled mode. Eliminate the need to measure an interval between two audio rate messages. Signed-off-by: Deborah Brouwer <deborahbrouwer3563@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-27cec-follower: increase precision of Audio Rate Control active sensingDeborah Brouwer1-4/+4
Measure the interval since the last audio rate control message in nanoseconds instead of seconds. Increasing the precision catches audio rate messages that are late by less than a second. Signed-off-by: Deborah Brouwer <deborahbrouwer3563@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-22v4l2-compliance: move all vivid controls to v4l2-compliance.hHans Verkuil2-12/+8
The vivid controls are defined in two places: the header and v4l2-test-buffers.cpp. Move them all to the header so they are all in a single place. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-22v4l2-dbg: fix control flow problemHans Verkuil1-3/+3
Fix this coverity report: *** CID 1452658: Control flow issues (NO_EFFECT) /utils/v4l2-dbg/v4l2-dbg.cpp: 567 in main() 561 if (doioctl(fd, VIDIOC_DBG_G_CHIP_INFO, &chip_info, "VIDIOC_DBG_G_CHIP_INFO") != 0) 562 chip_info.name[0] = '\0'; 563 564 if (!strncasecmp(match.name, "ac97", 4)) { 565 curr_bd = &boards[AC97_BOARD]; 566 } else { >>> >>> CID 1452658: Control flow issues (NO_EFFECT) >>> >>> This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "board >= 0UL". 567 for (size_t board = boards.size() - 1; board >= 0; board--) { 568 if (!strcasecmp(chip_info.name, boards[board].name)) { 569 curr_bd = &boards[board]; 570 break; 571 } 572 } Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Fixes: bafe32e7 ("v4l-utils: convert board_list to vector")
2021-04-22cec: add invalid operand test for Audio Rate Control messagesDeborah Brouwer2-0/+29
Add a test in cec-compliance that sends an Audio Rate Control message with an invalid operand. Check that it receives a Feature Abort reply due to the invalid operand. Add a response in cec-follower to Feature Abort due to an invalid operand. Signed-off-by: Deborah Brouwer <deborahbrouwer3563@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-22cec: add active sensing test for Audio Rate Control messagesDeborah Brouwer4-13/+69
The controlling device should send an Audio Rate Control message at least once every 2 seconds for active sensing. Add a test in cec-compliance to delay the message by more than 2 seconds. Check the interval between messages in cec-follower and warn if the delay is greater than 2 seconds. Signed-off-by: Deborah Brouwer <deborahbrouwer3563@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-22cec-compliance: add Audio System mask to Set Audio RateDeborah Brouwer1-1/+2
An Audio System can support Audio Rate Control, so add the Audio System as a possible source in the Set Audio Rate test. Signed-off-by: Deborah Brouwer <deborahbrouwer3563@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-21v4l2-ctl: remove unused struct flag_defHans Verkuil1-5/+0
This struct is no longer used, remove it. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-21v4l2-ctl: add missing const, use {} instead of memsetHans Verkuil1-3/+2
Add missing const to the static struct mbus_name mbus_names array. Use struct v4l2_subdev_mbus_code_enum mbus_code = {}; instead of memsetting the struct to zero. This is based on a patch from Rosen Penev <rosenp@gmail.com>. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-21v4l2-utils: turn fb_formats to constexpr arrayRosen Penev1-13/+11
Forces evaluation at compile time and allows usage of a for range loop. Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-21cec-tuner: std::array conversionsRosen Penev1-70/+70
Allows getting rid of sizeof macros. Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-21remove unused ARRAY_SIZERosen Penev5-13/+0
This is a C construct that is not really needed in C++. Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-21clang-tidy: use nullptrRosen Penev2-2/+2
Found with modernize-use-nullptr Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-21clang-tidy: use autoRosen Penev1-1/+1
Found with modernize-use-auto Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-21v4l2-compliance: rename stvec to vec_remote_subtestsHans Verkuil4-31/+31
I found stvec to be a bit too obscure, so renamed it. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-21clang-tidy: use using instead of typedefRosen Penev10-19/+19
Found with modernize-use-using Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-21v4l-utils: convert board_list to vectorRosen Penev7-429/+390
Removes boilerplate code with a slight reduction in size. Ran through git clang-format Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-21v4l-utils: switch remote_subtest arrays to vectorRosen Penev4-228/+170
Easier to read and allows removing some boilerplate code. Only a moderate size increase. Ran through git clang-format Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-20Rudimentary support for mi_media_detect_type on FreeBSD.Trenton Schulz1-1/+22
FreeBSD doesn't have the same uevent and sys filesystem that Linux does. So, use the VIDIOC_QUERYCAP ioctl to find out basic capabilities for a device. The ioctl doesn't give us as much information, but it gets things like webcams, VBIs, and radios. This is better than what was there previously, which was returning unknown. This makes some v4l-utils like v4l2-ctl a little more useful. Signed-off-by: Trenton Schulz <trenton@norwegianrockcat.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-20configure.ac: Fix building without libudevNiklas Söderlund1-1/+1
Since the addition of the --without-libudev option automatic detection of missing libudev have been broken and fails with, configure: error: Package requirements (libudev) were not met: Package 'libudev', required by 'virtual:world', not found This is because autotools macro PKG_CHECK_MODULES action-if-not-found behaves differently from most other macros, As most of the original autoconf macros, there are boolean values provided, for the cases when the check succeeded or failed. In contrast with almost all of the original macros, though, the default action-if-not-found will end the execution with an error for not having found the dependency. As the AS_IF check following the PKG_CHECK_MODULES prints a warning if libudev is not found the intention can't have been to fail configure if libudev not found. Fix this by setting have_libudev=no instead of failing due to the default action. Fixes: 49316dc21f806d0c ("configure.ac: Add --without-libudev option to avoid automagic dep") Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-20configure.ac: Resolve GIT_* even if repository is a submoduleNiklas Söderlund1-3/+3
If the v4l-utils repository is a git submodule the $(top_srcdir)/.git is a file and not a directory. Update the shell checks to allow the test to pass in both cases. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-13cec: improve vendor ID loggingHans Verkuil5-41/+74
Always log the translated vendor ID string if available. This helps debugging. Also add a new vendor ID string. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-04-09keytable: restrict installation of 50-rc_keymap.confUlrich Ölmann1-0/+4
It is only needed if BPF is effectively used and the package is compiled for a systemd based target. Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Sean Young <sean@mess.org>
2021-04-09configure.ac: autodetect availability of systemdUlrich Ölmann1-1/+9
Import systemd's official suggestion [1] how this should be handled in packages using autoconf. A side effect of this is the removal of the hardcoded fallback path "/lib/systemd/system" which leaks build host information when cross compiling v4l-utils and therefore defeats reproducible builds. [1] https://www.freedesktop.org/software/systemd/man/daemon.html#Installing%20systemd%20Service%20Files Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Sean Young <sean@mess.org>
2021-04-08v4l2-ctl: recognize compound h264 and fwht control typesHans Verkuil1-0/+21
At least v4l2-ctl -l now shows the proper type instead of 'unknown'. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-03-26qv4l2: fallback if window()->windowHandle() == NULLHans Verkuil1-2/+8
window()->windowHandle() can return NULL, in that case fallback to a 1920x1080 screen resolution. Still better than a crash. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-03-25v4l2-ctl: update EDIDsHans Verkuil1-6/+6
Fixed incorrect DisplayID timings (swapped front and backporches) and wrong aspect ratio (1:1 instead of 16:9). Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-03-24v4l2-ctl: improve --help-edidHans Verkuil1-7/+13
Provide a more detailed description of the various EDID types. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-03-23v4l2-ctl: fix hdmi and hdmi-4k-170mhz EDIDsHans Verkuil1-4/+4
The first DTD had a wrong vsync (6 instead of 5). Fixed. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2021-03-22v4l2-ctl: don't squash setting multiple identical controls.Hans Verkuil1-3/+5
This: v4l2-ctl -c auto_exposure=3,exposure_time_absolute=100,auto_exposure=1,exposure_time_absolute=200 should turn into a single VIDIOC_S_EXT_CTRLS call with 4 controls instead of 2 controls with just the last value for each control. This helps testing VIDIOC_S_EXT_CTRLS to check if drivers handle this correctly (only the last value for each control should be used). Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2021-03-20libdvbv5: hide stack_dump symbols and provide soname compatibilityGregor Jasny3-2/+7
2021-03-20libdvbv5: hide my_strlcpy symbolGregor Jasny1-1/+1
2021-03-20v4l2-ctl: add --show-edid, add new test EDIDsHans Verkuil3-39/+236
Add a new --show-edid option that dumps the EDID you would write with --set-edid. Updated existing EDIDs (fixing small edid-decode conformity warnings) and add new EDIDs for displayport and 3 and 4 block EDIDs. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

Privacy Policy