v4l2-apps/util/parse_em28xx.pl: Add %reg_map 0x34, 0x35, 0x36, 0x37
authorDouglas Schilling Landgraf <dougsland@redhat.com>
Tue, 19 Jan 2010 18:17:31 +0000 (16:17 -0200)
committerDouglas Schilling Landgraf <dougsland@redhat.com>
Tue, 19 Jan 2010 18:17:31 +0000 (16:17 -0200)
From: Franklin Meng <fmeng2002@yahoo.com>

Priority: normal

Signed-off-by: Franklin Meng <fmeng2002@yahoo.com>
[dougsland@redhat.com: fixed a reject due to a change in parse_em28xx.pl]
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
utils/parse_em28xx.pl

index a1b516e..05e12db 100755 (executable)
@@ -116,6 +116,10 @@ my %reg_map = (
        "0x31" => "EM28XX_R31_HSCALEHIGH",
        "0x32" => "EM28XX_R32_VSCALELOW",
        "0x33" => "EM28XX_R33_VSCALEHIGH",
+       "0x34" => "EM28XX_R34_VBI_START_H",
+       "0x35" => "EM28XX_R35_VBI_START_V",
+       "0x36" => "EM28XX_R36_VBI_WIDTH",
+       "0x37" => "EM28XX_R37_VBI_HEIGHT",
        "0x40" => "EM28XX_R40_AC97LSB",
        "0x41" => "EM28XX_R41_AC97MSB",
        "0x42" => "EM28XX_R42_AC97ADDR",
@@ -277,9 +281,9 @@ while (<>) {
        }
 
        if (m/40 0[23] 00 00 ([0-9a-f].) 00 ([0-9a-f].) 00\s+[\>]+\s+([0-9a-f ]+)/) {
-               printf "i2c_master_send(0x$1>>1, { $3 }, 0x$2);\n";
+               printf "i2c_master_send(0x$1>>1, { $3 }, 0x$2);\n";
        }
        if (m/c0 0[23] 00 00 ([0-9a-f].) 00 ([0-9a-f].) 00\s+[\<]+\s+([0-9a-f ]+)/) {
-               printf "i2c_master_recv(0x$1>>1, &buf, 0x$2); /* $3 */\n";
+               printf "i2c_master_recv(0x$1>>1, &buf, 0x$2); /* $3 */\n";
        }
 }