aboutsummaryrefslogtreecommitdiffstats
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>
8 daysdvb-file: reimplement get_pmt_descriptors()Mauro Carvalho Chehab1-71/+124
Change the implementation of this function in order to properly check the registration descriptor. As such descriptor can uniqelly identify streams with audio and video, check for it before doing the check for stream->type. While here, add other known fourcc types, as used at libVlc. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
8 dayslibdvbv5: use an array for the fourcc typeMauro Carvalho Chehab2-3/+4
While not too late, change the fourcc type to be an array, and display them as chars when printing. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
9 dayslibdvbv5: detect SMTPE 302m audio formatMauro Carvalho Chehab1-4/+19
When SMTPE 302m is used, the ES type is 6. Detecting weather it has audio or not should be done via registration descriptor. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
9 dayslibdvbv5: add support for the registration descriptorMauro Carvalho Chehab5-4/+188
Such descriptor works like a fourcc descriptor: it specifies the format of an Elementary Stream. It is needed in order to identify SMPTE s302m audio streams. 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 Verkuil5-24/+42
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 Verkuil6-143/+333
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-25configure.ac: Add --without-libudev option to avoid automagic depJames Le Cuirot1-10/+17
configure currently checks for and links against libudev unconditionally, If this was unwanted and the library is removed then this can leave v4l-utils broken. This is a problem for distributions, especially Gentoo Linux where it affects end users. libudev is unlikely to be removed entirely but the 32-bit library may be removed from a 64-bit system, breaking a 32-bit build of v4l-utils. Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-20add missing include for uClibc-ngRosen Penev1-0/+1
Fixes missing va_list Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-08-20fix mismatching declarationRosen Penev1-1/+1
When compiling with GCC 10 and meson, it errors on this function as it is declared with V4LCONTROL_COUNT later on. Signed-off-by: Rosen Penev <rosenp@gmail.com> 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 Young13-110/+131
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 Verkuil4-8/+38
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-07-19v4l-utils: update v4l2-tpg.patchHans Verkuil2-92/+108
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-14configure.ac: Export git commit countPaul Elder1-0/+3
Export the git commit count from configure.ac to append to version numbers in the various utils. 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>

Privacy Policy