projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b0bb68
)
V4L/DVB (3281): Added signal detection support to tvp5150
author
Markus Rechberger
<mrechberger@gmail.com>
Tue, 7 Feb 2006 08:25:42 +0000
(06:25 -0200)
committer
Mauro Carvalho Chehab
<mchehab@infradead.org>
Tue, 7 Feb 2006 08:36:49 +0000
(06:36 -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
patch
|
blob
|
history
diff --git
a/drivers/media/video/tvp5150.c
b/drivers/media/video/tvp5150.c
index
a6330a3
..
1864423
100644
(file)
--- a/
drivers/media/video/tvp5150.c
+++ b/
drivers/media/video/tvp5150.c
@@
-896,6
+896,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;
}