From patchwork Sun Sep 2 22:47:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antti Palosaari X-Patchwork-Id: 1398151 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 9D07EDF283 for ; Sun, 2 Sep 2012 22:47:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754788Ab2IBWrr (ORCPT ); Sun, 2 Sep 2012 18:47:47 -0400 Received: from mail.kapsi.fi ([217.30.184.167]:57378 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754763Ab2IBWrq (ORCPT ); Sun, 2 Sep 2012 18:47:46 -0400 Received: from dyn3-82-128-190-199.psoas.suomi.net ([82.128.190.199] helo=localhost.localdomain) by mail.kapsi.fi with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1T8IxF-0003jg-Bv; Mon, 03 Sep 2012 01:47:45 +0300 From: Antti Palosaari To: linux-media@vger.kernel.org Cc: Antti Palosaari Subject: [PATCH] af9013: add debug for IF frequency Date: Mon, 3 Sep 2012 01:47:25 +0300 Message-Id: <1346626045-29396-1-git-send-email-crope@iki.fi> X-Mailer: git-send-email 1.7.11.4 X-SA-Exim-Connect-IP: 82.128.190.199 X-SA-Exim-Mail-From: crope@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Used IF frequency is one of the most important parameter to know. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/af9013.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/dvb-frontends/af9013.c b/drivers/media/dvb-frontends/af9013.c index 5bc570d..2dac314 100644 --- a/drivers/media/dvb-frontends/af9013.c +++ b/drivers/media/dvb-frontends/af9013.c @@ -606,6 +606,8 @@ static int af9013_set_frontend(struct dvb_frontend *fe) else if_frequency = state->config.if_frequency; + dbg("%s: if_frequency=%d", __func__, if_frequency); + sampling_freq = if_frequency; while (sampling_freq > (state->config.clock / 2))