The patch number 10159 was added via Mauro Carvalho Chehab <[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel
If anyone has any objections, please let us know by sending a message to:
[email protected]
------
From: Mauro Carvalho Chehab <[email protected]>
parse_em28xx.pl: Add a limited capability of parsing i2c commands
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
---
v4l2-apps/util/parse_em28xx.pl | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff -r e876c1b66fd8 -r f46a8d205e5f v4l2-apps/util/parse_em28xx.pl
--- a/v4l2-apps/util/parse_em28xx.pl Wed Dec 31 00:34:49 2008 -0200
+++ b/v4l2-apps/util/parse_em28xx.pl Wed Dec 31 01:45:35 2008 -0200
@@ -62,7 +62,7 @@
# This way, it is easier to understand what the em28xx driver is doing.
#
# Known limitations:
-# - Currently, the tool only parses em28xx, ac97 and em202 registers.
+# - Currently, the tool only parses em28xx, i2c, ac97 and em202 registers.
# - It is limited to read/write operations with 1 or 2 bytes of
# arguments;
# - Not all registers are documented;
@@ -275,4 +275,11 @@ while (<>) {
$reg, $3, $2;
next;
}
+
+ if (m/40 02 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";
+ }
+ if (m/c0 02 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";
+ }
}
---
Patch is available at:
http://linuxtv.org/hg/v4l-dvb/rev/f46a8d205e5f81986d721c585dc37531dc7d33e5
_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits