aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-10-22cec-follower: add support for Status RequesttunerHans Verkuil3-18/+52
The Give Deck Status and Give Tuner Device Status messages carry a Status Request field (On/Off/Once) that, when set to On, will cause status changes to be automatically reported. This was never implemented in the follower, so add this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-22cec-compliance: remove old tuner testsHans Verkuil1-168/+0
The old tuner tests are superseded by the new tuner_ctl_test(), so remove them. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-22cec-compliance: add tuner control testJiunn Chang1-3/+231
Tuner control test tuner_ctl_test(): - give tuner status - select tuner digital/analog service - tuner step features Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com> [hverkuil-cisco@xs4all.nl: check for channel method] Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-22cec-follower: fix tuner step increment/decrementJiunn Chang3-18/+40
Tuner step feature will select the next highest or lowest service There are a total of 98 channels, 18 digital and 81 analog with digital preceeding analog. Analog channels defined by broadcast type and system. Digital channels defined by service ID method and broadcast system along with digital IDs and channel data. Opcodes implemented: - <Tuner Step Increment> - <Tuner Step Decrement> Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-22cec-follower: add tuner digital service emulationJiunn Chang4-13/+210
The cec-follower will now emulate a digital service. This allows an initiator device to directly select a digital service by choosing a digital service ID method and broadcast system along with the proper digital IDs or channel data. After a digital service is selected, the cec-follower will also provide the tuner device status upon request. The follower reports digital services either by channel (default) or by digital ID. A new option --service-by-dig-id was added for that purpose. Opcodes implemented: - <Select Digital Service> Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com> Co-developed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-22cec-follower: create digital DVB channelsJiunn Chang1-0/+35
This table will allow proper testing of digital tuner control features. There are three channels per TSID/ONID/SID combination along with channel data for the following digital DVB broadcast systems: - DVB-S2 - DVB-T Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com> [hverkuil-cisco@xs4all.nl: dropped the middle [1] index] Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-22cec-follower: create digital ATSC channelsJiunn Chang1-0/+39
This table will allow proper testing of digital tuner control features. There are three channels per TSID/program number combination along with channel data for the following digital ATSC broadcast systems: - ATSC-SAT - ATSC-T Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com> [hverkuil-cisco@xs4all.nl: dropped the middle [1] index] Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-22cec-follower: create digital ARIB channelsJiunn Chang1-0/+46
This table will allow proper testing of digital tuner control features. There are three channels per TSID/ONID/SID combination along with channel data for the following digital ARIB broadcast systems: - ARIB-BS - ARIB-T Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com> [hverkuil-cisco@xs4all.nl: dropped the middle [1] index] Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-21v4l2-info.cpp: support the new hold capture flagsHans Verkuil1-0/+2
Add support for V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF and V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-21v4l-utils: sync with latest media_tree masterHans Verkuil6-10/+51
Sync the kernel headers to the latest media_tree master. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-21Makefile.am: copy v4l2-tpg.h, not v4l2-tpg*Hans Verkuil1-1/+1
The wildcard copied an unwanted file as well, besides v4l2-tpg.h. Just be explicit. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-20ir-keytable: bpf: improve rsc imon pointer decoderSean Young1-31/+35
Sometimes the remotes sends 4 bits rather than 5. This makes the pointer much more reliable. Signed-off-by: Sean Young <sean@mess.org>
2019-10-16cec-follower: rename freq_idx to service_idxJiunn Chang2-17/+17
The implementation of digital support in tuner control requires the renaming of freq_idx to service_idx as analog and digital channels are referred to collectively as services. The index will now represent the current state of both analog and digital. Tuner step features will cycle through both analog and digital with digital preceeding analog. Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-16cec-follower: fix analog tuner device info updateJiunn Chang1-0/+2
With the addition of digital tuner control support, analog update needs to set is_analog and tuner_display_info. Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-16cec-compliance: Set OSD Name is not TV specificHans Verkuil1-1/+1
Any device can transmit Set OSD Name, so change the mask from TV to ALL. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-16cec-compliance: improve Inactive Source testHans Verkuil1-6/+8
If Inactive Source is sent by a TV, then it should be ignored by the remote device. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-15v4l2-compliance: fix read/write testsHans Verkuil1-11/+16
The read test failed for metadata capture if that is not supported by the current input (read returns EINVAL in that case). Allow for such situations. The same situation occurs for VBI, but that worked since there was a specific check for VBI. Improve the test for VBI as well, verifying that read()/write() for a VBI device fails if no VBI is supported for the current input/output. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-14cec-follower: add INACTIVE_SOURCE support.Hans Verkuil1-0/+16
This was missing in the follower code. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-14cec-compliance: Improve the INACTIVE_SOURCE testHans Verkuil1-3/+11
A TV should reply with ACTIVE_SOURCE or SET_STREAM_PATH. Verify this rather than relying on the interactive mode. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-14cec-compliance: fix a bug in util_receiveHans Verkuil1-2/+2
Don't return -1 at the first timeout of the CEC_RECEIVE ioctl, only after 'timeout' milliseconds passed without receiving a message should this function return -1. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-14cec-compliance: add timeout to util_receiveHans Verkuil3-9/+13
util_receive() can currently loop indefinitely if it never gets the expected reply. Add a timeout. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-14cec-compliance: move util_receive to cec-compliance.cppHans Verkuil3-27/+29
We need this function elsewhere as well, so make it generic instead of specific to cec-test-audio.cpp. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-14keytable: do not warn if keymap not found in IR_KEYTABLE_USER_DIRSean Young1-33/+48
The following error is logged even though imon_rsc.toml is found at /lib/udev/rc_keymaps/imon_rsc.toml: $ ir-keytable -a /etc/rc_maps.cfg /etc/rc_keymaps/imon_rsc.toml: error: cannot open: No such file or directory Signed-off-by: Sean Young <sean@mess.org>
2019-10-08libcecutil: spaces should be replaced by - for help_featuresHans Verkuil1-1/+1
The code that generates the --help-<feature> options converted spaces to underscores instead of -. That led to options like --help-tuner_control instead of --help-tuner-control. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-07v4l-utils: sync to latest cec-funcs.hHans Verkuil1-16/+18
Update cec-funcs.h from the media_tree master branch. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-04v4l2-compliance: Verify metadata formatsVandana BN1-4/+13
Metadata formats may not be defined for a given input or output type. This patch checks, if given input/output type enumerates metadata formats and validates G_FMT accordingly. Signed-off-by: Vandana BN <bnvandana@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-03libcecutil: cec-gen.pl now generates all headers in one goHans Verkuil2-92/+88
Instead of generating each header one-by-one, generate them all directly from cec-gen.pl. This required some changes in the Makefile as well to ensure that cec-gen.pl is called once one when doing a parallel make. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-03ir-ctl: report timeout when it cannot be modifiedSean Young1-5/+8
There are many IR devices which cannot modify their timeout, but do have a timeout which should be reported (e.g. mtk_cir). Signed-off-by: Sean Young <sean@mess.org>
2019-10-03libcecutil: remove empty generated headers on failureHans Verkuil1-1/+1
If cec-gen.pl failed to generate the header, then delete the header to avoid leaving empty headers. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-03libcecutil: do not assume building in source tree.Hans Verkuil2-2/+2
Use $(top_srcdir) as reference for cec-gen.pl, otherwise compilation outside of project root directory will fail. The include of cec-parse-gen.h in cec-parse.h also needed to be changed to a relative include path for the same reason. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-03cec-htng(-funcs).h: move to libcecutilHans Verkuil6-6/+7
After this move the cec utilities no longer depends on the utils/common directory, so remove that from the Makefiles. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-03utils/common/cec*: remove unused cec filesHans Verkuil4-885/+0
All CEC utilities are now using the new cec utilities library, so these files are no longer used and can be removed. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-03cec-ctl: use the new CEC utilities libraryHans Verkuil7-1127/+60
Switch to the new CEC utilities library. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-03cec-compliance: use the new CEC utilities libraryHans Verkuil6-52/+30
Switch to the new CEC utilities library. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-03cec-follower: switch to the new CEC utilities libraryHans Verkuil7-42/+20
Use the new CEC utilities library. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-03utils/libcecutil: add CEC utility libraryHans Verkuil11-0/+1741
Add a new library containing CEC info, logging and parsing utility functions. Most of this code is generated from the cec headers. This commit adds the library and compiles it. It is not yet used anywhere, though. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-03v4l2-compliance: fix metadata output supportVandana BN1-1/+2
This patch fixes test failure in the v4l2-compliance for metadata output support. Signed-off-by: Vandana BN <bnvandana@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-03cec-follower: add tuner step increment/decrementJiunn Chang3-17/+55
Tuner step feature will select the next highest or lowest service frequency. There are a total of three possible frequencies given a broadcast type and system for a total of 81 analog channels. Opcodes implemented: - <Tuner Step Increment> - <Tuner Step Decrement> Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-02cec: fix cec-log.h dependency issuesMauro Carvalho Chehab2-2/+2
Due to a reorg, cec-log.h has now a different meaning and it is placed on a different directory: utils/common/cec-log.h. The problem is that it now conflicts with the old auto-generated one at the utils/cec-follower directory. This won't affect new clones, but if someone updates v4l-utils, the build will fail without explicitly removing the old file. So, let's change the includes for them to explicitly pinpoint to the right cec-log.h file. This way, if the old one exists, it won't cause any build breakages. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-10-02cec-compliance/follower: use new CEC_OP_UI_CMD definesHans Verkuil3-11/+11
Some more places were these UI commands are hardcoded. Use the new CEC_OP_UI_CMD defines instead. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-02cec utils: support CEC_ADAP_G_CONNECTOR_INFOHans Verkuil5-10/+44
Add support for this new CEC ioctl. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-02cec-ctl/cec-log: use new CEC_OP_UI_CMD definesHans Verkuil2-35/+35
Rather than hardcode the UI commands, use the new defines. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-02cec-follower: drop the hardcoded UI commands listHans Verkuil6-104/+30
The cec-follower utility had a hardcoded list of UI commands. Since these are now generated from the kernel cec.h header rework the code to use the new generated table. In particular, it introduces a new ui_cmd_string() function in the cec-log.h header. The previously generated cec-log.h header is now renamed to cec-log-gen.h. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-02msg2ctl.pl: add newline after log_msgHans Verkuil1-2/+1
The generated log_msg and log_htng_msg functions didn't have a newline in between the two functions which is a bit ugly. Add this newline. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-02keytable: add new generated keymapsHans Verkuil7-0/+197
Added for: Amediatech X96-MAX HardKernel ODROID Tanix TX3 mini Khadas VIM/EDGE WeTek Hub Tanix TX5 max WeTeK Play 2 Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-02v4l-utils: sync with latest media_tree masterHans Verkuil8-219/+193
Sync the kernel headers to the latest media_tree master. This required some work in the cec utilities since the remote control UI commands are now autogenerated from the cec.h header instead of being hardcoded in the cec utilities. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-01test-media: update vimc testsHans Verkuil1-14/+4
The vimc driver is now a monolithic driver, so there are no more vimc-sensor etc. drivers. The vimc tests are updated accordingly. This vimc change also fixes some lifetime issues, so the 'unbind while streaming' test is enabled again. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-10-01cec-follower: fix bugs for tuner emulationJiunn Chang1-3/+5
Fix bugs for tuner emulation: - analog_tuner_init() needs to store ana_freq as multiples of 62.5 kHz - analog_set_tuner_dev_info() needs to check the broadcast type and broadcast system are valid before getting the nearest frequency Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-09-30cec-compliance: add --test-fuzzing optionHans Verkuil5-3/+142
Add fuzzing support. Randomly generate CEC messages. After every 10 random messages check that you can still get the CEC version from the remote device. This is an initial implementation. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2019-09-30cec-ctl/msg2ctl.pl: don't add HTNG commands to msgtableHans Verkuil1-1/+1
The HTNG commands were inadvertently added to the msgtable. That should just contain the core CEC commands and not vendor commands. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

Privacy Policy