The patch number 10701 was added via Hans Verkuil <[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:
Linux Media Mailing List <[email protected]>
------
From: Hans Verkuil <[email protected]>
saa7185: add colorbar support.
Priority: normal
Signed-off-by: Hans Verkuil <[email protected]>
---
linux/drivers/media/video/saa7185.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff -r fbc8d2c9b6cf -r bd2468775e24 linux/drivers/media/video/saa7185.c
--- a/linux/drivers/media/video/saa7185.c Wed Feb 18 16:22:16 2009 +0100
+++ b/linux/drivers/media/video/saa7185.c Wed Feb 18 16:23:38 2009 +0100
@@ -282,6 +282,8 @@ static int saa7185_command(struct i2c_cl
switch (*iarg) {
case 0:
+ /* turn off colorbar */
+ saa7185_write(client, 0x3a, 0x0f);
/* Switch RTCE to 1 */
saa7185_write(client, 0x61,
(encoder->reg[0x61] & 0xf7) | 0x08);
@@ -289,11 +291,23 @@ static int saa7185_command(struct i2c_cl
break;
case 1:
+ /* turn off colorbar */
+ saa7185_write(client, 0x3a, 0x0f);
/* Switch RTCE to 0 */
saa7185_write(client, 0x61,
(encoder->reg[0x61] & 0xf7) | 0x00);
/* SW: a slight sync problem... */
saa7185_write(client, 0x6e, 0x00);
+ break;
+
+ case 2:
+ /* turn on colorbar */
+ saa7185_write(client, 0x3a, 0x8f);
+ /* Switch RTCE to 0 */
+ saa7185_write(client, 0x61,
+ (encoder->reg[0x61] & 0xf7) | 0x08);
+ /* SW: a slight sync problem... */
+ saa7185_write(client, 0x6e, 0x01);
break;
default:
---
Patch is available at:
http://linuxtv.org/hg/v4l-dvb/rev/bd2468775e24176f4c998eb876aa111f830f3432
_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits