From 75ce952e5b0d21b9548290325b7b9757e927e28f Mon Sep 17 00:00:00 2001 From: Markus Rechberger Date: Tue, 7 Feb 2006 06:38:24 -0200 Subject: [PATCH] --- yaml --- r: 21617 b: refs/heads/master c: 19d7509c0531b0e08f52ab93070569e0aba54cdf h: refs/heads/master i: 21615: 5c93eaaa4b656a5c4fb9288fe6e4844e6e285996 v: v3 --- [refs] | 2 +- trunk/drivers/media/video/tvp5150.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index b5fc2c82a98d..f5a67ac005d2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 33ccaa3feb2a6e09942b6f0af6fbb0451a2e1537 +refs/heads/master: 19d7509c0531b0e08f52ab93070569e0aba54cdf diff --git a/trunk/drivers/media/video/tvp5150.c b/trunk/drivers/media/video/tvp5150.c index 20e63593e441..3ae8a9ff5b13 100644 --- a/trunk/drivers/media/video/tvp5150.c +++ b/trunk/drivers/media/video/tvp5150.c @@ -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; }