aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-10-10 10:16:36 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2016-10-10 10:16:36 +0200
commit405f0c21e0b52836d22c999aa4ee1f51d87998b2 (patch)
tree47cc45678e6feb2c9488c2b2234515aea903d623
parent9e74ef7abad54b271ea50d111eb2d7f964091249 (diff)
cec-ctl: allow setting the new CEC_LOG_ADDRS_FL_ALLOW_UNREG_FALLBACK
Add support for this flag to cec-ctl. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/cec-ctl/cec-ctl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp
index c8349d0e..1de0aa2b 100644
--- a/utils/cec-ctl/cec-ctl.cpp
+++ b/utils/cec-ctl/cec-ctl.cpp
@@ -656,6 +656,7 @@ enum Option {
OptCDCOnly,
OptUnregistered,
OptCECVersion1_4,
+ OptAllowUnregFallback,
OptListUICommands,
OptRcTVProfile1,
OptRcTVProfile2,
@@ -709,6 +710,7 @@ static struct option long_options[] = {
{ "phys-addr", required_argument, 0, OptPhysAddr },
{ "vendor-id", required_argument, 0, OptVendorID },
{ "cec-version-1.4", no_argument, 0, OptCECVersion1_4 },
+ { "allow-unreg-fallback", no_argument, 0, OptAllowUnregFallback },
{ "clear", no_argument, 0, OptClear },
{ "monitor", no_argument, 0, OptMonitor },
{ "monitor-all", no_argument, 0, OptMonitorAll },
@@ -773,6 +775,7 @@ static void usage(void)
" -T, --trace Trace all called ioctls\n"
" -v, --verbose Turn on verbose reporting\n"
" --cec-version-1.4 Use CEC Version 1.4 instead of 2.0\n"
+ " --allow-unreg-fallback Allow fallback to Unregistered\n"
" --list-ui-commands List all UI commands that can be used with --user-control-pressed\n"
"\n"
" --tv This is a TV\n"
@@ -1684,6 +1687,8 @@ int main(int argc, char **argv)
strncpy(laddrs.osd_name, osd_name, sizeof(laddrs.osd_name));
laddrs.osd_name[sizeof(laddrs.osd_name) - 1] = 0;
laddrs.vendor_id = vendor_id;
+ if (options[OptAllowUnregFallback])
+ laddrs.flags |= CEC_LOG_ADDRS_FL_ALLOW_UNREG_FALLBACK;
for (unsigned i = 0; i < 8; i++) {
unsigned la_type;

Privacy Policy