aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-16 10:11:15 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-16 10:12:32 -0200
commitfee9aec7e8a2fd490c9dfe1507d2433b1210e0ae (patch)
tree0f599586c2a488a974dcd6f9d7ec5d7a8d76b2d0
parent1053ffbd1bd8871375a443741b31665e7d6ba9f4 (diff)
parse_af9035.pl: improve IR handling
Sometimes, CMD_IR_GET have a CMD_MEM_RD answer. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rwxr-xr-xcontrib/af9035/parse_af9035.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/af9035/parse_af9035.pl b/contrib/af9035/parse_af9035.pl
index a718321e..a615d15a 100755
--- a/contrib/af9035/parse_af9035.pl
+++ b/contrib/af9035/parse_af9035.pl
@@ -132,7 +132,7 @@ sub print_send_race($$$$$$)
next;
}
- if ($cmd eq "CMD_MEM_WR" && $ctrl_cmd eq "CMD_IR_GET") {
+ if ($cmd =~ /CMD_MEM_(WR|RD)/ && $ctrl_cmd eq "CMD_IR_GET") {
my $comment = "\t/* read: $payload */" if ($payload);
printf "struct usb_req req = { $ctrl_cmd, $ctrl_mbox, $len, wbuf, sizeof(rbuf), rbuf }; ret = af9035_ctrl_msg(d, &req);$comment\n" if (!$hide_ir);
next;

Privacy Policy