diff options
author | Markus Rechberger <mrechberger@gmail.com> | 2006-02-07 03:38:24 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-02-07 03:38:24 -0500 |
commit | 19d7509c0531b0e08f52ab93070569e0aba54cdf (patch) | |
tree | 07e24d063ddd290ca4caaf19ac68584c591e5e63 /drivers/media | |
parent | 33ccaa3feb2a6e09942b6f0af6fbb0451a2e1537 (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/media')
-rw-r--r-- | drivers/media/video/tvp5150.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/media/video/tvp5150.c b/drivers/media/video/tvp5150.c index 20e63593e441..3ae8a9ff5b13 100644 --- a/drivers/media/video/tvp5150.c +++ b/drivers/media/video/tvp5150.c | |||
@@ -967,6 +967,17 @@ static int tvp5150_command(struct i2c_client *c, | |||
967 | } | 967 | } |
968 | case DECODER_GET_STATUS: | 968 | case DECODER_GET_STATUS: |
969 | { | 969 | { |
970 | int *iarg = arg; | ||
971 | int status; | ||
972 | int res=0; | ||
973 | status = tvp5150_read(c, 0x88); | ||
974 | if(status&0x08){ | ||
975 | res |= DECODER_STATUS_COLOR; | ||
976 | } | ||
977 | if(status&0x04 && status&0x02){ | ||
978 | res |= DECODER_STATUS_GOOD; | ||
979 | } | ||
980 | *iarg=res; | ||
970 | break; | 981 | break; |
971 | } | 982 | } |
972 | 983 | ||