aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMarkus Rechberger <mrechberger@gmail.com>2006-02-07 03:25:42 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-02-07 03:36:49 -0500
commitac2523014234004413c252e1aa9c12774b7a502d (patch)
treec11991b0b6d0a0380ea604f9a137ebceb2e7d1ca /drivers
parent1b0bb68d30b27b067fc654a0668d02c5bfc653a2 (diff)
V4L/DVB (3281): Added signal detection support to tvp5150
- added signal detection support to tvp5150 Signed-off-by: Markus Rechberger <mrechberger@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/tvp5150.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/media/video/tvp5150.c b/drivers/media/video/tvp5150.c
index a6330a351eaa..1864423b3046 100644
--- a/drivers/media/video/tvp5150.c
+++ b/drivers/media/video/tvp5150.c
@@ -896,6 +896,17 @@ static int tvp5150_command(struct i2c_client *c,
896 } 896 }
897 case DECODER_GET_STATUS: 897 case DECODER_GET_STATUS:
898 { 898 {
899 int *iarg = arg;
900 int status;
901 int res=0;
902 status = tvp5150_read(c, 0x88);
903 if(status&0x08){
904 res |= DECODER_STATUS_COLOR;
905 }
906 if(status&0x04 && status&0x02){
907 res |= DECODER_STATUS_GOOD;
908 }
909 *iarg=res;
899 break; 910 break;
900 } 911 }
901 912