This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-utils.git tree:

Subject: keytable: Mask selected protocols with the supported ones
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Fri Jul 25 23:02:00 2014 -0300

It should never try to enable a protocol not supported, as
the Kernel will give an error and reset to none.

That's a problem when -p all option is used. So, mask the
protocols to make this option to work.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 utils/keytable/keytable.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=72f0df1fd90b2ece5ce6c57433e36ec2386e262e

diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index 6a8deee..1a91fba 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -1174,6 +1174,12 @@ static int set_proto(struct rc_device *rc_dev)
 {
        int rc = 0;
 
+       rc_dev->current &= rc_dev->supported;
+       if (!rc_dev->current) {
+               fprintf(stderr, "Invalid protocols selected\n");
+               return EINVAL;
+       }
+
        if (rc_dev->version == VERSION_2) {
                rc = v2_set_protocols(rc_dev);
                return rc;

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to