From patchwork Wed Aug 27 15:29:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiro TSUKADA X-Patchwork-Id: 4789411 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 37FD99F383 for ; Wed, 27 Aug 2014 15:35:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7A75F2011D for ; Wed, 27 Aug 2014 15:35:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5CF6A201B9 for ; Wed, 27 Aug 2014 15:35:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935427AbaH0Pb6 (ORCPT ); Wed, 27 Aug 2014 11:31:58 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:56090 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935216AbaH0Pb5 (ORCPT ); Wed, 27 Aug 2014 11:31:57 -0400 Received: by mail-pa0-f51.google.com with SMTP id ey11so508605pad.24 for ; Wed, 27 Aug 2014 08:31:56 -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:in-reply-to:references; bh=mGCYFCOMreX5uyGY3QTldS3LqQ6TTqfPWh8MhQ0lxoo=; b=uo4P2sXkJdfm5mcm6sIepA8TcCOIZPclC5UumrY85Lo4qlmwQecRH/zgfZzj2BzyRe Y9veCeFjpoSh1eQuEV0f0kzhb3N7QKSSFOR2cyQZurlCA9JkvAXRWHah5yXQ8aAycg04 0pN3nijMlDzeZeqpCtyRhtZFM6yUh9Y910/qkjpBd9d/rPLS2cwRl2dtqm4Dr5A0nI+m 0S57/+URU0ndodvnlxXoy7/9hmOdwX7zmREaTfsU4axgUEH5ZuC9t3l4Y9Bf4hIIWeyo l85/KwFtzo1AjBDi9c98PqQ3MjnNHcrR3nutc5EpqJGCmmipticIsqbhLQn8Cp2Fgzm2 CYdg== X-Received: by 10.67.1.195 with SMTP id bi3mr47128586pad.74.1409153515376; Wed, 27 Aug 2014 08:31:55 -0700 (PDT) Received: from seabird.localdomain (softbank219203027033.bbtec.net. [219.203.27.33]) by mx.google.com with ESMTPSA id g13sm2339887pat.45.2014.08.27.08.31.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Aug 2014 08:31:54 -0700 (PDT) From: tskd08@gmail.com To: linux-media@vger.kernel.org Cc: m.chehab@samsung.com Subject: [PATCH v2 1/5] dvb-core: add a new tuner ops to dvb_frontend for APIv5 Date: Thu, 28 Aug 2014 00:29:12 +0900 Message-Id: <1409153356-1887-2-git-send-email-tskd08@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1409153356-1887-1-git-send-email-tskd08@gmail.com> References: <1409153356-1887-1-git-send-email-tskd08@gmail.com> 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 From: Akihiro Tsukada fe->ops.tuner_ops.get_rf_strength() reports its result in u16, while in DVB APIv5 it should be reported in s64 and by 0.001dBm. Signed-off-by: Akihiro Tsukada --- drivers/media/dvb-core/dvb_frontend.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/dvb-core/dvb_frontend.h b/drivers/media/dvb-core/dvb_frontend.h index 816269e..f6222b5 100644 --- a/drivers/media/dvb-core/dvb_frontend.h +++ b/drivers/media/dvb-core/dvb_frontend.h @@ -222,6 +222,8 @@ struct dvb_tuner_ops { #define TUNER_STATUS_STEREO 2 int (*get_status)(struct dvb_frontend *fe, u32 *status); int (*get_rf_strength)(struct dvb_frontend *fe, u16 *strength); + /** get signal strengh in 0.001dBm, in accordance with APIv5 */ + int (*get_rf_strength_dbm)(struct dvb_frontend *fe, s64 *strength); int (*get_afc)(struct dvb_frontend *fe, s32 *afc); /** These are provided separately from set_params in order to facilitate silicon