From patchwork Sat Aug 28 21:18:45 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 140361 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 o7SLJ9jx004778 for ; Sat, 28 Aug 2010 21:19:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752642Ab0H1VTH (ORCPT ); Sat, 28 Aug 2010 17:19:07 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:36974 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752422Ab0H1VTG (ORCPT ); Sat, 28 Aug 2010 17:19:06 -0400 Received: by wwb28 with SMTP id 28so5370386wwb.1 for ; Sat, 28 Aug 2010 14:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=WaWUQVCj1zoBDaWYtIVO6zItS1iZmJ1UjryMVboaPdY=; b=sdEomTzWqDe1BjOrFAa9NYfnLZKKGqI6FMs5X6e6fC7+V9nKxglGU64qdoPCuHY0r5 WverGC5xvJ+TD4OVpKbbYfIhv3PewRG7RDUaf2IWncn8zkGbfXxeXNol5SJvTY7yC9Tx ut7QXC3FGknQRXxBJpI4gV2YqaIF2z9mS3Vr4= 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=V+nxsKzc95GvieRn79a6NoOyD+FwJaKzgp+qcwL8dBfP7OYcnnSquPtZpJHa/FT3fs gGSqXZJ22ZTKzEAJfCdR5OwWEwK1bv4KN+TLt8+GX5/xxSZb5Pd+q9Dg7b+FTEpUlR/I 2gAT+bIotoodNfanrqWsc7qxvtiABBnj/asHA= Received: by 10.216.87.18 with SMTP id x18mr2873834wee.31.1283030343834; Sat, 28 Aug 2010 14:19:03 -0700 (PDT) Received: from [192.168.1.100] (94.196.206.84.threembb.co.uk [94.196.206.84]) by mx.google.com with ESMTPS id o84sm3402818wej.37.2010.08.28.14.19.02 (version=SSLv3 cipher=RC4-MD5); Sat, 28 Aug 2010 14:19:02 -0700 (PDT) Subject: [PATCH]STV0288 Incorrect bit sample for Vitterbi status. From: tvbox To: linux-media@vger.kernel.org Date: Sat, 28 Aug 2010 22:18:45 +0100 Message-ID: <1283030325.2708.22.camel@canaries-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.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.3 (demeter1.kernel.org [140.211.167.41]); Sat, 28 Aug 2010 21:19:09 +0000 (UTC) diff --git a/drivers/media/dvb/frontends/stv0288.c b/drivers/media/dvb/frontends/stv0288.c index 2930a5d..bc9b47e 100644 --- a/drivers/media/dvb/frontends/stv0288.c +++ b/drivers/media/dvb/frontends/stv0288.c @@ -486,7 +486,7 @@ static int stv0288_set_frontend(struct dvb_frontend *fe, tda[2] = 0x0; /* CFRL */ for (tm = -6; tm < 7;) { /* Viterbi status */ - if (stv0288_readreg(state, 0x24) & 0x80) + if (stv0288_readreg(state, 0x24) & 0x8) break; tda[2] += 40;