From patchwork Tue Jul 23 15:12:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Lee X-Patchwork-Id: 2832020 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0BE93C0319 for ; Tue, 23 Jul 2013 15:12:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E832B201BB for ; Tue, 23 Jul 2013 15:12:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C57FF201B9 for ; Tue, 23 Jul 2013 15:12:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757814Ab3GWPMQ (ORCPT ); Tue, 23 Jul 2013 11:12:16 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:54931 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757724Ab3GWPMQ (ORCPT ); Tue, 23 Jul 2013 11:12:16 -0400 Received: by mail-pa0-f52.google.com with SMTP id kq13so2936591pab.39 for ; Tue, 23 Jul 2013 08:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=3YYv4WBkOFEDR6npb32Z/E/lI0eSHUBe0NVRVI3jmgs=; b=XZbOSd/hT/l4cLqFZjTza1HKWAx1cKXsHwxEALnRyL9EzUHV3zH1by3PCXQsFMarzx j5yFhoa4toehdHW1o2AF3GzseMrVHfnAciPnGTpZXeoAo559if3tGWGPAS6kcfsPVxVM zNCICOFjIF6i6i8ilu/N3zvVMUwx8h99G8rusmLzj8nSizX5NmEm8CJiQ3pIPl1R6xOp b0t2hhewBdCHuJTQKoobflEN9h8wcUrZBDBvXa6CqGiVUQqS2r3U67vFNAx8XKjX27qw CrNvPrS2zFnHzNgy8bZb5gLpT5EZrY2MuCmHzArT/aMjUW8coYX1byCzufe/XLdeOOBa DFPQ== X-Received: by 10.68.59.98 with SMTP id y2mr36775781pbq.135.1374592335504; Tue, 23 Jul 2013 08:12:15 -0700 (PDT) Received: from dvb.updatelee.net (S0106c0c1c01263ff.ed.shawcable.net. [68.148.74.18]) by mx.google.com with ESMTPSA id xe9sm42338749pbc.21.2013.07.23.08.12.14 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Jul 2013 08:12:15 -0700 (PDT) From: Chris Lee To: linux-media@vger.kernel.org Cc: Chris Lee Subject: [PATCH] This brings the genpix line of devices snr reporting in line with other drivers Date: Tue, 23 Jul 2013 09:12:06 -0600 Message-Id: <1374592326-13427-1-git-send-email-updatelee@gmail.com> X-Mailer: git-send-email 1.8.1.2 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Chris Lee --- drivers/media/usb/dvb-usb/gp8psk-fe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/dvb-usb/gp8psk-fe.c b/drivers/media/usb/dvb-usb/gp8psk-fe.c index 67957dd..5864f37 100644 --- a/drivers/media/usb/dvb-usb/gp8psk-fe.c +++ b/drivers/media/usb/dvb-usb/gp8psk-fe.c @@ -45,7 +45,7 @@ static int gp8psk_fe_update_status(struct gp8psk_fe_state *st) if (time_after(jiffies,st->next_status_check)) { gp8psk_usb_in_op(st->d, GET_SIGNAL_LOCK, 0,0,&st->lock,1); gp8psk_usb_in_op(st->d, GET_SIGNAL_STRENGTH, 0,0,buf,6); - st->snr = (buf[1]) << 8 | buf[0]; + st->snr = ((buf[1]) << 8 | buf[0]) << 4; st->next_status_check = jiffies + (st->status_check_interval*HZ)/1000; } return 0;