Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137958
b: refs/heads/master
c: 9040320
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 2c6a07f commit 05d58ae
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 674a323218ab0b0be100b51c251a72787b5c9e3a
refs/heads/master: 9040320a899f41cc1978bdd4b6867b172da9b021
14 changes: 14 additions & 0 deletions trunk/drivers/media/video/saa7185.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,20 +281,34 @@ 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);
saa7185_write(client, 0x6e, 0x01);
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:
return -EINVAL;
}
Expand Down

0 comments on commit 05d58ae

Please sign in to comment.