From patchwork Wed Jan 26 08:54:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abylai Ospan X-Patchwork-Id: 508391 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 p0Q8uVgL021703 for ; Wed, 26 Jan 2011 08:56:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752927Ab1AZI4I (ORCPT ); Wed, 26 Jan 2011 03:56:08 -0500 Received: from utm.netup.ru ([193.203.36.250]:54656 "EHLO utm.netup.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752746Ab1AZI4H (ORCPT ); Wed, 26 Jan 2011 03:56:07 -0500 Received: from alkaloid.netup.ru (alkaloid.netup [10.1.2.137]) by utm.netup.ru (Postfix) with ESMTP id 43AF937733D; Wed, 26 Jan 2011 11:55:33 +0300 (MSK) Message-ID: <4D3FE13E.5090901@netup.ru> Date: Wed, 26 Jan 2011 08:54:22 +0000 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: "Igor M. Liplianin" CC: mchehab@infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] Update stv0900 status when LOCK is missed References: <4d3f3764.857a0e0a.122c.478e@mx.google.com> In-Reply-To: <4d3f3764.857a0e0a.122c.478e@mx.google.com> 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]); Wed, 26 Jan 2011 08:56:32 +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;