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: Remove some spurious messages
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Mon Jan 31 17:10:42 2011 -0200

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

 contrib/cx231xx/parse_cx231xx.pl |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

---

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

diff --git a/contrib/cx231xx/parse_cx231xx.pl b/contrib/cx231xx/parse_cx231xx.pl
index 0b0c6bf..ed34250 100755
--- a/contrib/cx231xx/parse_cx231xx.pl
+++ b/contrib/cx231xx/parse_cx231xx.pl
@@ -159,10 +159,13 @@ while (<>) {
                                        $reqtype, $req, $wvalue, $windex, 
$wlen, $payload);
                        }
 
-                       my $reg = $windex;
-                       $reg = $cfg_reg_map{$windex} if 
defined($cfg_reg_map{$windex});
+                       if ($cfg_len) {
+                               my $reg = $windex;
+                               $reg = $cfg_reg_map{$windex} if 
defined($cfg_reg_map{$windex});
 
-                       printf "cx231xx_write_ctrl_reg(dev, $reg, $payload, 
$cfg_len);\n";
+                               printf "cx231xx_read_ctrl_reg(dev, $reg, 
$cfg_len);\t\t/* read %s */\n",
+                                       $payload;
+                       }
                } elsif ($req == 0xd) {
                        my $cfg_len;
                        if ($wvalue == 1) {
@@ -178,12 +181,13 @@ while (<>) {
                                printf("Reqtype: %3d, Req %3d, wValue: 0x%04x, 
wIndex 0x%04x, wlen %d: %s\n",
                                        $reqtype, $req, $wvalue, $windex, 
$wlen, $payload);
                        }
+                       if ($cfg_len) {
+                               my $reg = $windex;
+                               $reg = $cfg_reg_map{$windex} if 
defined($cfg_reg_map{$windex});
 
-                       my $reg = $windex;
-                       $reg = $cfg_reg_map{$windex} if 
defined($cfg_reg_map{$windex});
-
-                       printf "cx231xx_read_ctrl_reg(dev, $reg, 
$cfg_len);\t\t/* read %s */\n",
-                               $payload;
+                               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);

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

Reply via email to