From patchwork Sun Mar 6 16:37:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 613751 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p26GbiiM005549 for ; Sun, 6 Mar 2011 16:37:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752561Ab1CFQhY (ORCPT ); Sun, 6 Mar 2011 11:37:24 -0500 Received: from mail-wy0-f174.google.com ([74.125.82.174]:44807 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752619Ab1CFQhN (ORCPT ); Sun, 6 Mar 2011 11:37:13 -0500 Received: by wyg36 with SMTP id 36so3534473wyg.19 for ; Sun, 06 Mar 2011 08:37:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=NJpBfymS68sDDxBCuqeiXVbufWsDS5We3a/qSKdHb/A=; b=SZsD3Bv1jbUOfe/FYScOfM//ACxvQR/dgDLNaESIqzgWoSWpE8KMOlbX3MMi+cFnTh j6em4UFwp0OF0DZuhYYN5zub7t90RchJoixvL8rzQUQy2VU4ktLbaP3KstGFRTFP1nyP YIZXz0Aokyp+KVZXZjlhg48QZFfcgfFlfzrjY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=AwxjlVi5QfbbzFALhkUj/EixACXBqLV8dvq2JfKt7qm2WkwbQUV9Q/+SOOeE9X8mqg vsfxEdpPAZXs3jnIxdKvJw7qci7bfrSclTLstsZm+JZf86ub8HG0D+RCnzx9hbiVNquu TVO2ypE0Jv+dJZt1TfH/vWkWrscQkQJlqDUHQ= Received: by 10.216.63.132 with SMTP id a4mr1473737wed.78.1299429431765; Sun, 06 Mar 2011 08:37:11 -0800 (PST) Received: from [10.64.64.65] (94.197.127.231.threembb.co.uk [94.197.127.231]) by mx.google.com with ESMTPS id g8sm816080wej.47.2011.03.06.08.37.07 (version=SSLv3 cipher=OTHER); Sun, 06 Mar 2011 08:37:09 -0800 (PST) Subject: [PATCH] STV0288 added full frontend status From: Malcolm Priestley To: linux-media@vger.kernel.org Date: Sun, 06 Mar 2011 16:37:00 +0000 Message-ID: <1299429420.14858.5.camel@tvboxspy> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 06 Mar 2011 16:37:45 +0000 (UTC) diff --git a/drivers/media/dvb/frontends/stv0288.c b/drivers/media/dvb/frontends/stv0288.c index 63db8fd..5e8c7fd 100644 --- a/drivers/media/dvb/frontends/stv0288.c +++ b/drivers/media/dvb/frontends/stv0288.c @@ -367,8 +367,11 @@ static int stv0288_read_status(struct dvb_frontend *fe, fe_status_t *status) dprintk("%s : FE_READ_STATUS : VSTATUS: 0x%02x\n", __func__, sync); *status = 0; - - if ((sync & 0x08) == 0x08) { + if (sync & 0x80) + *status |= FE_HAS_CARRIER | FE_HAS_SIGNAL; + if (sync & 0x10) + *status |= FE_HAS_VITERBI; + if (sync & 0x08) { *status |= FE_HAS_LOCK; dprintk("stv0288 has locked\n"); }