From patchwork Thu Jun 11 12:39:04 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wong X-Patchwork-Id: 29546 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5BCd90D014847 for ; Thu, 11 Jun 2009 12:39:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750808AbZFKMjE (ORCPT ); Thu, 11 Jun 2009 08:39:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751116AbZFKMjE (ORCPT ); Thu, 11 Jun 2009 08:39:04 -0400 Received: from mail-gx0-f214.google.com ([209.85.217.214]:50895 "EHLO mail-gx0-f214.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750808AbZFKMjD (ORCPT ); Thu, 11 Jun 2009 08:39:03 -0400 Received: by gxk10 with SMTP id 10so2197808gxk.13 for ; Thu, 11 Jun 2009 05:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=8Zedwr8lP5rPmPRr4dK6gP23GmvBVgrdZJ3vtQsfHec=; b=xl2fv5C6+Sq1QAH9hakdEyuZiJAVeubJD4VUBcG1DkJDEBx2IEhowKkH8jpgx8gJmK t0b7lUVMBzD0NSW+LU5Mbbg666i1YjZx6R8Bu2gNP1dc0KQrARPdyxpcarkWfydGXKLK Ucu58ZcOuidEcJg88NLklN6kkZUs0oteT9lPs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=Hqk1cfPLhVjvDXnSBal9xZZ/fh0aTp3l2VsVNW2iS2VUui0qMKqvn7MCheJoWfASSp aiJ6nXG1nWcrdjV0iEm6Xo/D6ZiWACQMH6uqfcXT90F+z9r9a2G7raFItWIvxwk2eO1n JqMDzxgxuNTmRQ+xiddYdz97uXgDY0UKmLj3k= MIME-Version: 1.0 Received: by 10.231.11.140 with SMTP id t12mr1184092ibt.44.1244723944228; Thu, 11 Jun 2009 05:39:04 -0700 (PDT) Date: Thu, 11 Jun 2009 20:39:04 +0800 Message-ID: <15ed362e0906110539o44d981a0n21c9babde3392d57@mail.gmail.com> Subject: [PATCH 2/4] lgs8gxx: update signal strength scale From: David Wong To: linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org lgs8gxx: update signal strength scale Signed-off-by: David T.L. Wong gmail.com> diff -r b13db1935c48 -r af8ce23f588e linux/drivers/media/dvb/frontends/lgs8gxx.c --- a/linux/drivers/media/dvb/frontends/lgs8gxx.c Thu Jun 11 18:59:34 2009 +0800 +++ b/linux/drivers/media/dvb/frontends/lgs8gxx.c Thu Jun 11 19:05:08 2009 +0800 @@ -650,7 +650,7 @@ else cat = 0; - *signal = cat; + *signal = cat * 65535 / 5; return 0; } @@ -670,8 +670,8 @@ if (fake_signal_str) { if ((t & 0xC0) == 0xC0) { - dprintk("Fake signal strength as 50\n"); - *signal = 0x32; + dprintk("Fake signal strength\n"); + *signal = 0x7FFF; } else *signal = 0; return 0;