From patchwork Tue Aug 7 02:46:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devin Heitmueller X-Patchwork-Id: 1282531 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 63D943FC8A for ; Tue, 7 Aug 2012 02:47:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932509Ab2HGCrw (ORCPT ); Mon, 6 Aug 2012 22:47:52 -0400 Received: from mail-vc0-f174.google.com ([209.85.220.174]:52727 "EHLO mail-vc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932505Ab2HGCrv (ORCPT ); Mon, 6 Aug 2012 22:47:51 -0400 Received: by mail-vc0-f174.google.com with SMTP id fk26so3432709vcb.19 for ; Mon, 06 Aug 2012 19:47:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=tKHWo7mfNzjL0AHtNKrb3R4meeX7w158AQZ5vuM2K8w=; b=PImybffrpKtRt2sGKt5ZjhWPq7SaoJ3VVYoNR+HrR7jp/UulxQWdXJDWuKe1iCj/+b Ct79nPpmCRY+3NRfYfOpCv881Aw516jLmmys4JWCQMlf5tMs00+bpRZkLDQkIK9WKnGA CitDKn971BbCnff/uSlUFXkk0qhOeD1/hpxmAW0BdqP0xJKH6fiOAz7avxfC/fQ7DcYL XHWioGMA+HfnMT86eGQQMdMrf4YLdSrKPmfJAxJqBuq8/NuRX0wPc/o+BkLc7ocXY8f+ 6t/ggczTznh+gKYt6xukBYk8GS1f942P8R2ZyFbbNtpFRb/+X1EbWQy4rTSstxxs2pWh wH9w== Received: by 10.220.221.206 with SMTP id id14mr9821109vcb.22.1344307670743; Mon, 06 Aug 2012 19:47:50 -0700 (PDT) Received: from localhost.localdomain (pool-108-54-72-165.nycmny.fios.verizon.net. [108.54.72.165]) by mx.google.com with ESMTPS id e9sm17555638vdf.21.2012.08.06.19.47.49 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 06 Aug 2012 19:47:50 -0700 (PDT) From: Devin Heitmueller To: linux-media@vger.kernel.org Cc: Devin Heitmueller Subject: [PATCH 05/24] xc5000: properly show quality register values Date: Mon, 6 Aug 2012 22:46:55 -0400 Message-Id: <1344307634-11673-6-git-send-email-dheitmueller@kernellabs.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1344307634-11673-1-git-send-email-dheitmueller@kernellabs.com> References: <1344307634-11673-1-git-send-email-dheitmueller@kernellabs.com> X-Gm-Message-State: ALoCoQk03ynpK4I+0tuuK1/5BU6HMLFXTx1fZhiLVjAJnWZ39Ekxn7X+voOzgJjQFZgpzrc99a9D Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The quality register only has relevant data in bits 2-0, so discard the other bits (which results in a value being printed that is consistent with the expected 0-7 range). Signed-off-by: Devin Heitmueller --- drivers/media/common/tuners/xc5000.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/common/tuners/xc5000.c b/drivers/media/common/tuners/xc5000.c index dcca42c..c41f2b9 100644 --- a/drivers/media/common/tuners/xc5000.c +++ b/drivers/media/common/tuners/xc5000.c @@ -684,7 +684,7 @@ static void xc_debug_dump(struct xc5000_priv *priv) dprintk(1, "*** Frame lines = %d\n", frame_lines); xc_get_quality(priv, &quality); - dprintk(1, "*** Quality (0:<8dB, 7:>56dB) = %d\n", quality); + dprintk(1, "*** Quality (0:<8dB, 7:>56dB) = %d\n", quality & 0x07); } static int xc5000_set_params(struct dvb_frontend *fe)