From patchwork Mon Feb 14 19:03:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abylai Ospan X-Patchwork-Id: 556501 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 p1EJ7DAb008208 for ; Mon, 14 Feb 2011 19:07:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751986Ab1BNTHE (ORCPT ); Mon, 14 Feb 2011 14:07:04 -0500 Received: from utm.netup.ru ([193.203.36.250]:39822 "EHLO utm.netup.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750921Ab1BNTHE (ORCPT ); Mon, 14 Feb 2011 14:07:04 -0500 Received: from alkaloid.netup.ru (alkaloid.netup [10.1.2.137]) by utm.netup.ru (Postfix) with ESMTP id 6CA57371EBC; Mon, 14 Feb 2011 22:07:01 +0300 (MSK) Message-ID: <4D597C71.5040100@netup.ru> Date: Mon, 14 Feb 2011 22:03:13 +0300 From: Abylay Ospan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: linux-media@vger.kernel.org, Mauro Carvalho Chehab , "Igor M. Liplianin" Subject: [PATCH 1/1] Update stv0900 status when LOCK is missed 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]); Mon, 14 Feb 2011 19:07:14 +0000 (UTC) diff --git a/drivers/media/dvb/frontends/stv0900_core.c b/drivers/media/dvb/frontends/stv0900_core.c index 4f5e7d3..34afcc6 100644 --- a/drivers/media/dvb/frontends/stv0900_core.c +++ b/drivers/media/dvb/frontends/stv0900_core.c @@ -1660,8 +1660,10 @@ static int stv0900_read_status(struct dvb_frontend *fe, enum fe_status *status) | FE_HAS_VITERBI | FE_HAS_SYNC | FE_HAS_LOCK; - } else + } else { + *status = 0; dprintk("DEMOD LOCK FAIL\n"); + } return 0;