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 --raw-msg option
Author:  Hans Verkuil <hverkuil-ci...@xs4all.nl>
Date:    Wed May 15 10:53:05 2019 +0200

This option sets the CEC_MSG_FL_RAW flag.

Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 utils/cec-ctl/cec-ctl.cpp | 4 ++++
 1 file changed, 4 insertions(+)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=1cbe6e53dcb10745fcf8569a9cd0ba0979c2808e
diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp
index d6bb5b653d2c..c15605ef240f 100644
--- a/utils/cec-ctl/cec-ctl.cpp
+++ b/utils/cec-ctl/cec-ctl.cpp
@@ -621,6 +621,7 @@ enum Option {
        OptAllowUnregFallback,
        OptNoRC,
        OptReplyToFollowers,
+       OptRawMsg,
        OptListDevices,
        OptTimeout,
        OptMonitorTime,
@@ -691,6 +692,7 @@ static struct option long_options[] = {
        { "allow-unreg-fallback", no_argument, 0, OptAllowUnregFallback },
        { "no-rc-passthrough", no_argument, 0, OptNoRC },
        { "reply-to-followers", no_argument, 0, OptReplyToFollowers },
+       { "raw-msg", no_argument, 0, OptRawMsg },
        { "timeout", required_argument, 0, OptTimeout },
        { "clear", no_argument, 0, OptClear },
        { "wait-for-msgs", no_argument, 0, OptWaitForMsgs },
@@ -783,6 +785,7 @@ static void usage(void)
               "  --allow-unreg-fallback   Allow fallback to Unregistered\n"
               "  --no-rc-passthrough      Disable the RC passthrough\n"
               "  --reply-to-followers     The reply will be sent to followers 
as well\n"
+              "  --raw-msg                Transmit the message without 
validating it (must be root)\n"
               "  --timeout <ms>           Set the reply timeout in 
milliseconds (default is 1000 ms)\n"
               "  --list-ui-commands       List all UI commands that can be 
used with --user-control-pressed\n"
               "  --list-devices           List all cec devices\n"
@@ -2506,6 +2509,7 @@ int main(int argc, char **argv)
                printf("\nTransmit from %s to %s (%d to %d):\n",
                       la2s(from), to == 0xf ? "all" : la2s(to), from, to);
                msg.flags = options[OptReplyToFollowers] ? 
CEC_MSG_FL_REPLY_TO_FOLLOWERS : 0;
+               msg.flags |= options[OptRawMsg] ? CEC_MSG_FL_RAW : 0;
                msg.timeout = msg.reply ? timeout : 0;
                log_msg(&msg);
                if (doioctl(&node, CEC_TRANSMIT, &msg))

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to