summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7185.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-02-18 12:23:38 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 12:42:54 -0300
commit9040320a899f41cc1978bdd4b6867b172da9b021 (patch)
tree8e7bbc1e13411353221e9a29205c7defcc1e9e50 /drivers/media/video/saa7185.c
parent674a323218ab0b0be100b51c251a72787b5c9e3a (diff)
downloadlinux-9040320a899f41cc1978bdd4b6867b172da9b021.tar.gz
linux-9040320a899f41cc1978bdd4b6867b172da9b021.tar.bz2
linux-9040320a899f41cc1978bdd4b6867b172da9b021.zip
V4L/DVB (10701): saa7185: add colorbar support.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7185.c')
-rw-r--r--drivers/media/video/saa7185.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/media/video/saa7185.c b/drivers/media/video/saa7185.c
index 6debb65152ee..8d06bb312c55 100644
--- a/drivers/media/video/saa7185.c
+++ b/drivers/media/video/saa7185.c
@@ -281,6 +281,8 @@ static int saa7185_command(struct i2c_client *client, unsigned cmd, void *arg)
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);
@@ -288,6 +290,8 @@ static int saa7185_command(struct i2c_client *client, unsigned cmd, void *arg)
break;
case 1:
+ /* turn off colorbar */
+ saa7185_write(client, 0x3a, 0x0f);
/* Switch RTCE to 0 */
saa7185_write(client, 0x61,
(encoder->reg[0x61] & 0xf7) | 0x00);
@@ -295,6 +299,16 @@ static int saa7185_command(struct i2c_client *client, unsigned cmd, void *arg)
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:
return -EINVAL;
}