aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7185.c
diff options
context:
space:
mode:
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)
281 281
282 switch (*iarg) { 282 switch (*iarg) {
283 case 0: 283 case 0:
284 /* turn off colorbar */
285 saa7185_write(client, 0x3a, 0x0f);
284 /* Switch RTCE to 1 */ 286 /* Switch RTCE to 1 */
285 saa7185_write(client, 0x61, 287 saa7185_write(client, 0x61,
286 (encoder->reg[0x61] & 0xf7) | 0x08); 288 (encoder->reg[0x61] & 0xf7) | 0x08);
@@ -288,6 +290,8 @@ static int saa7185_command(struct i2c_client *client, unsigned cmd, void *arg)
288 break; 290 break;
289 291
290 case 1: 292 case 1:
293 /* turn off colorbar */
294 saa7185_write(client, 0x3a, 0x0f);
291 /* Switch RTCE to 0 */ 295 /* Switch RTCE to 0 */
292 saa7185_write(client, 0x61, 296 saa7185_write(client, 0x61,
293 (encoder->reg[0x61] & 0xf7) | 0x00); 297 (encoder->reg[0x61] & 0xf7) | 0x00);
@@ -295,6 +299,16 @@ static int saa7185_command(struct i2c_client *client, unsigned cmd, void *arg)
295 saa7185_write(client, 0x6e, 0x00); 299 saa7185_write(client, 0x6e, 0x00);
296 break; 300 break;
297 301
302 case 2:
303 /* turn on colorbar */
304 saa7185_write(client, 0x3a, 0x8f);
305 /* Switch RTCE to 0 */
306 saa7185_write(client, 0x61,
307 (encoder->reg[0x61] & 0xf7) | 0x08);
308 /* SW: a slight sync problem... */
309 saa7185_write(client, 0x6e, 0x01);
310 break;
311
298 default: 312 default:
299 return -EINVAL; 313 return -EINVAL;
300 } 314 }