V4L/DVB (3281): Added signal detection support to tvp5150
authorMarkus Rechberger <mrechberger@gmail.com>
Tue, 7 Feb 2006 08:38:24 +0000 (06:38 -0200)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 7 Feb 2006 08:38:24 +0000 (06:38 -0200)
- added signal detection support to tvp5150

Signed-off-by: Markus Rechberger <mrechberger@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tvp5150.c

index 20e63593e44177c72bacbf720e2b65c231875519..3ae8a9ff5b138ad873e4dbc2f0f82f07e5e9d0b6 100644 (file)
@@ -967,6 +967,17 @@ static int tvp5150_command(struct i2c_client *c,
                }
        case DECODER_GET_STATUS:
                {
+                       int *iarg = arg;
+                       int status;
+                       int res=0;
+                       status = tvp5150_read(c, 0x88);
+                       if(status&0x08){
+                               res |= DECODER_STATUS_COLOR;
+                       }
+                       if(status&0x04 && status&0x02){
+                               res |= DECODER_STATUS_GOOD;
+                       }
+                       *iarg=res;
                        break;
                }
 
This page took 0.025299 seconds and 5 git commands to generate.