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: parse_cx231xx.pl: Fix the parser for messages that we don't translate 
yet
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Mon Jan 31 16:21:12 2011 -0200

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

 contrib/cx231xx/parse_cx231xx.pl |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

---

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

diff --git a/contrib/cx231xx/parse_cx231xx.pl b/contrib/cx231xx/parse_cx231xx.pl
index 621ffff..0b0c6bf 100755
--- a/contrib/cx231xx/parse_cx231xx.pl
+++ b/contrib/cx231xx/parse_cx231xx.pl
@@ -154,7 +154,9 @@ while (<>) {
                        } elsif($wvalue == 0xf) {
                                $cfg_len = 4;
                        } else {
-                               printf("Invalid get len\n");
+                               printf("Invalid get len for ");
+                               printf("Reqtype: %3d, Req %3d, wValue: 0x%04x, 
wIndex 0x%04x, wlen %d: %s\n",
+                                       $reqtype, $req, $wvalue, $windex, 
$wlen, $payload);
                        }
 
                        my $reg = $windex;
@@ -172,7 +174,9 @@ while (<>) {
                        } elsif($wvalue == 0xf) {
                                $cfg_len = 4;
                        } else {
-                               printf("Invalid get len\n");
+                               printf("Invalid get len for ");
+                               printf("Reqtype: %3d, Req %3d, wValue: 0x%04x, 
wIndex 0x%04x, wlen %d: %s\n",
+                                       $reqtype, $req, $wvalue, $windex, 
$wlen, $payload);
                        }
 
                        my $reg = $windex;
@@ -180,10 +184,9 @@ while (<>) {
 
                        printf "cx231xx_read_ctrl_reg(dev, $reg, 
$cfg_len);\t\t/* read %s */\n",
                                $payload;
+               } else {
+                       printf("Reqtype: %3d, Req %3d, wValue: 0x%04x, wIndex 
0x%04x, wlen %d: %s\n",
+                               $reqtype, $req, $wvalue, $windex, $wlen, 
$payload);
                }
-
-               # Default
-               printf("Reqtype: %3d, Req %3d, wValue: 0x%04x, wIndex 0x%04x, 
wlen %d: %s\n",
-                       $reqtype, $req, $wvalue, $windex, $wlen, $payload);
        }
 }

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

Reply via email to