From 9aaeb4ab74b8dce833320360bc14164245cd2e32 Mon Sep 17 00:00:00 2001 From: Markus Rechberger Date: Tue, 7 Feb 2006 06:25:42 -0200 Subject: [PATCH] --- yaml --- r: 19951 b: refs/heads/master c: ac2523014234004413c252e1aa9c12774b7a502d h: refs/heads/master i: 19949: 3d482e7f8258287439668bfb135eb128dcc3d09a 19947: 9d96c3843d0648b3a78a1b012fbd7ec83980ab20 19943: 372d275c72ca35eede5b72a8069f935cbc9122ce 19935: 1c0279a7c818b154143b3e3c987d24c7a66607e2 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 fc2757b249d6..6776bfa1f4be 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1b0bb68d30b27b067fc654a0668d02c5bfc653a2 +refs/heads/master: ac2523014234004413c252e1aa9c12774b7a502d diff --git a/trunk/drivers/media/video/tvp5150.c b/trunk/drivers/media/video/tvp5150.c index a6330a351eaa..1864423b3046 100644 --- a/trunk/drivers/media/video/tvp5150.c +++ b/trunk/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; }