This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: cec-ctl: add --poll option to send a poll message Author: Hans Verkuil <hans.verk...@cisco.com> Date: Thu Feb 16 11:16:17 2017 +0100 There was no support in cec-ctl to explicitly send a simple poll message. This adds the --poll option to do just that. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> utils/cec-ctl/cec-ctl.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=e11818c29eb19127d34b409844ee3ec23a373def diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp index 846e9623a1d3..e0fb31731434 100644 --- a/utils/cec-ctl/cec-ctl.cpp +++ b/utils/cec-ctl/cec-ctl.cpp @@ -642,6 +642,7 @@ enum Option { OptNoReply = 'n', OptOsdName = 'o', OptPhysAddr = 'p', + OptPoll = 'P', OptShowRaw = 'r', OptShowTopology = 'S', OptTo = 't', @@ -729,6 +730,7 @@ static struct option long_options[] = { { "from", required_argument, 0, OptFrom }, { "show-raw", no_argument, 0, OptShowRaw }, { "show-topology", no_argument, 0, OptShowTopology }, + { "poll", no_argument, 0, OptPoll }, { "list-ui-commands", no_argument, 0, OptListUICommands }, { "rc-tv-profile-1", no_argument, 0, OptRcTVProfile1 }, { "rc-tv-profile-2", no_argument, 0, OptRcTVProfile2 }, @@ -783,6 +785,7 @@ static void usage(void) " By default use the first assigned logical address\n" " -r, --show-raw Show the raw CEC message (hex values)\n" " -S, --show-topology Show the CEC topology\n" + " -P, --poll Send poll message\n" " -h, --help Display this help message\n" " --help-all Show all help messages\n" " -T, --trace Trace all called ioctls\n" @@ -1468,7 +1471,7 @@ int main(int argc, char **argv) if (ch == -1) break; - if (ch > OptMessages) + if (ch > OptMessages || ch == OptPoll) cec_msg_init(&msg, 0, 0); options[(int)ch] = 1; @@ -1738,6 +1741,9 @@ int main(int argc, char **argv) } break; } + case OptPoll: + msgs.push_back(msg); + break; default: if (ch >= OptHelpAll) { usage_options(ch); _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits