From patchwork Wed Jul 15 07:11:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 6793831 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B47C4C05AC for ; Wed, 15 Jul 2015 07:24:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CD24520603 for ; Wed, 15 Jul 2015 07:24:55 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id B35B2205F4 for ; Wed, 15 Jul 2015 07:24:54 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 562CA265990; Wed, 15 Jul 2015 09:17:19 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 859CE2658CB; Wed, 15 Jul 2015 09:14:03 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id C1BFD2658CB; Wed, 15 Jul 2015 09:14:02 +0200 (CEST) Received: from relmlie1.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by alsa0.perex.cz (Postfix) with ESMTP id 50BBC2657DF for ; Wed, 15 Jul 2015 09:11:28 +0200 (CEST) Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie1.idc.renesas.com with ESMTP; 15 Jul 2015 16:11:26 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id D7E0B44BB4; Wed, 15 Jul 2015 16:11:26 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id D5C37480A4; Wed, 15 Jul 2015 16:11:26 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id D05F1480A3; Wed, 15 Jul 2015 16:11:26 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac4.idc.renesas.com with ESMTP id SBD12184; Wed, 15 Jul 2015 16:11:26 +0900 X-IronPort-AV: E=Sophos;i="5.15,477,1432566000"; d="scan'";a="190394579" Received: from mail-pu1apc01lp0018.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.18]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 15 Jul 2015 16:11:23 +0900 Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; Received: from morimoto-PC.renesas.com (211.11.155.144) by SG2PR06MB0601.apcprd06.prod.outlook.com (10.161.10.151) with Microsoft SMTP Server (TLS) id 15.1.213.14; Wed, 15 Jul 2015 07:11:21 +0000 Message-ID: <87vbdlvqxj.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown In-Reply-To: <87d1ztx5pb.wl%kuninori.morimoto.gx@renesas.com> References: <87d1ztx5pb.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Wed, 15 Jul 2015 07:11:21 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0039.jpnprd01.prod.outlook.com (25.164.162.23) To SG2PR06MB0601.apcprd06.prod.outlook.com (25.161.10.151) X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0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i9IgQdH41WQQNc2j2rPKUb3C6jeOTUQiRvMicVb16i4y; 4:5h1iHnl5i6KWLl8JQZar3nC+ta8DYYodyWh9jpRkoI3ALZnv5riof2IVXJbJ93THjptyB8VInFMZBK0C7pMx7+lkXGjpubOXWsMFM5fMPCGL/SQcisFHkXmGocxdF9UuYxrs140q8RzSp63AXVcIjmeYsb7M/ghBZEw1LE3Vgcl3ph0iZXy234LlRj/GbGr8ux7ymY+uKRVrohZs6fdldlz99E64XEs6yVYxv1cFtiHMQV14yIGboNxke6W5q0/+4ja07SiMkRXHBCNE1h/oqtdhdA5xXv99Y/hs9x0sjfA= SG2PR06MB0601: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:SG2PR06MB0601; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB0601; X-Forefront-PRVS: 0638FD5066 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(87976001)(92566002)(110136002)(42186005)(40100003)(62966003)(107886002)(575784001)(86362001)(36756003)(77156002)(4001350100001)(5001960100002)(77096005)(2950100001)(23726002)(83506001)(33646002)(19580405001)(50466002)(229853001)(189998001)(66066001)(122386002)(46406003)(19580395003)(47776003)(50986999)(46102003)(54356999)(76176999)(53416004)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB0601; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:; X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0601; 23:YzXa52mATIiFoKZXI8HWVxJWEVjVI6ep5pinXzj6azKzB1UecdP961kg3d2ylf6E4ipm+fBlBHTbPheZiVS1YEhqAcTGv0ICXT77DK4KbTwlq7+Zv5c+HlY9Nh3nCBrOKFkRZGlS3EUNN2Y+HxFKIBtuwku+ofvYVL+vCZoUi3enOv1AmPgMyHVzjM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EW+PxFJ3xPaMvUl3gHlcfDigi5YwzCbV/acDuT8Tru9Dk17b3djmCkdZ/KwGN6r5Jnxy+NSiIcReJAgI5Unt/PUnYYn3CtQwHahVtctif8Tksm8ipzDQzTLiPd6/F+KDoC1RdiRdDNGS8ai9Ue3hKObjSEAIrl4eyk= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2015 07:11:21.2871 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB0601 Cc: Linux-ALSA , shiiba , Liam Girdwood , komatsu , kobayashi , Simon Subject: [alsa-devel] [PATCH 12/35] ASoC: rsnd: move SRC specific macro into src.c X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto rsnd_src_nr() is used only from src.c Signed-off-by: Kuninori Morimoto Tested-by: Keita Kobayashi --- sound/soc/sh/rcar/rsnd.h | 2 -- sound/soc/sh/rcar/src.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index 8f793f0..c8d2029 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h @@ -554,8 +554,6 @@ int rsnd_src_ssiu_stop(struct rsnd_mod *ssi_mod, int rsnd_src_ssi_irq_enable(struct rsnd_mod *ssi_mod); int rsnd_src_ssi_irq_disable(struct rsnd_mod *ssi_mod); -#define rsnd_src_nr(priv) ((priv)->src_nr) - /* * R-Car SSI */ diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index 38d0aba..0b06ac8 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c @@ -30,6 +30,7 @@ struct rsnd_src { #define RSND_SRC_NAME_SIZE 16 +#define rsnd_src_nr(priv) ((priv)->src_nr) #define rsnd_enable_sync_convert(src) ((src)->sen.val) #define rsnd_src_of_node(priv) \ of_get_child_by_name(rsnd_priv_to_dev(priv)->of_node, "rcar_sound,src")