Message ID | 87k1tklwr9.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 9fff2d3980b8e319b270accb18bcf08ca80d836f |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 18CCF60547 for <patchwork-alsa-devel@patchwork.kernel.org>; Fri, 6 Apr 2018 05:51:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 095FD2946D for <patchwork-alsa-devel@patchwork.kernel.org>; Fri, 6 Apr 2018 05:51:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E330629468; Fri, 6 Apr 2018 05:51:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 535DE29432 for <patchwork-alsa-devel@patchwork.kernel.org>; Fri, 6 Apr 2018 05:51:47 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 585C326735F; Fri, 6 Apr 2018 07:41:53 +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 87CA52676E7; Fri, 6 Apr 2018 07:41:50 +0200 (CEST) Received: from relmlie1.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by alsa0.perex.cz (Postfix) with ESMTP id 6519A26735F for <alsa-devel@alsa-project.org>; Fri, 6 Apr 2018 07:41:46 +0200 (CEST) Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie1.idc.renesas.com with ESMTP; 06 Apr 2018 14:41:45 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 3E9816A50B; Fri, 6 Apr 2018 14:41:45 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.48,414,1517842800"; d="scan'208";a="275994831" Received: from mail-ty1jpn01lp0178.outbound.protection.outlook.com (HELO JPN01-TY1-obe.outbound.protection.outlook.com) ([23.103.139.178]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 06 Apr 2018 14:41:45 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=2pq26bKMlxP5gkalmLOkAOn6H/uwYl4+Is9XYKfz6xA=; b=mfgnx97L0NG7WTJmGNq7KyLVDTi29H0FzQR8wpd4w4pbbAgx5ry28HMkd/ZtC22hY4uTO1WWF1i4phbEa59/Hze4s7rdYERcX+IN7HVMqqscBuegHRZMOyAp3SyMW9zuT9QcUZR4eD1uPQeoqcre1uYkAeNUhtFJc60MMefoPUM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.138) by TYAPR01MB2079.jpnprd01.prod.outlook.com (2603:1096:404:8::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Fri, 6 Apr 2018 05:41:43 +0000 Message-ID: <87k1tklwr9.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown <broonie@kernel.org> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Fri, 6 Apr 2018 05:41:43 +0000 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: HK2PR04CA0090.apcprd04.prod.outlook.com (2603:1096:202:15::34) To TYAPR01MB2079.jpnprd01.prod.outlook.com (2603:1096:404:8::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 19a0f7b6-7690-4d6b-8a2d-08d59b811450 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:TYAPR01MB2079; X-Microsoft-Exchange-Diagnostics: 1; TYAPR01MB2079; 3:mR94OsRnH4AQxI3cLA7NNIHxh1k6P2AKGsIf4LMFqh2G+aNlIU2ua3RTmIiTcBHNSxnoMyOwJzKJ1jaAGhFkpzH3GB/9G+FPXlKmO5foAPHd1z/94mgSLYt7Smlgg8HYRy0qlFyVqmzdNhpZywZK6oWDPYTJYR1ZqHTGJly+NMfFp5J/cQfysjjl/cpqxeSPjFzmDImpgXae/rWWRZzvfPrEXcpcsdTQa6uPMyA+0SyK22wYZJLf6N/m4xn9r+LW; 25:8tpHCTDo/mVGVADDtJTDnmB9X6fqrxg7YfYojNF+LnXmAYBgzN61hY9KnEO1Em7FnxxwR64GkJxpvfE3GY5pZ8OfObqYks25zhxpYXIE5LjtfQikWoiuwF4EdJem0Jf5wyM7h8wBKiL8zkSewL6Vb2R0l3iu4PTj3nBqv1TjslEOlThNtub/JYi6aQaZNq6N3LhBbUZuml2J6QVK3F57i1BUql4FDOoY4MwcRMJQ2uLNrGCQ6bd7IaodHZYiXfLAJolBfTnpI0SBwBHVDfAAloKK9sMlR8VkrTJOJJ/uWqOTtgntk9dLtdmEuZbWna1YtY0O934RJdXXUMa9ph+f3g==; 31:a7l+qKwSRJ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FYQVIE4BHPpA254eQ== X-Microsoft-Antispam-PRVS: <TYAPR01MB2079DD1430E913AB56B4DB26D4BA0@TYAPR01MB2079.jpnprd01.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041310)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:TYAPR01MB2079; BCL:0; PCL:0; RULEID:; SRVR:TYAPR01MB2079; X-Forefront-PRVS: 0634F37BFF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(39860400002)(39380400002)(396003)(376002)(346002)(189003)(199004)(23726003)(2616005)(3846002)(476003)(478600001)(6116002)(47776003)(7736002)(50466002)(66066001)(68736007)(25786009)(486006)(2906002)(305945005)(36756003)(69596002)(5660300001)(386003)(316002)(956004)(16586007)(4326008)(86362001)(6486002)(8936002)(186003)(7696005)(81166006)(5890100001)(26005)(106356001)(1857600001)(105586002)(8676002)(16526019)(53936002)(53416004)(58126008)(97736004)(81156014)(6916009)(52116002)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:TYAPR01MB2079; H:morimoto-PC.renesas.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; TYAPR01MB2079; 23:wFI82mUfVBzTZ+kktaXHK9PZbnVyxR2PP7uWf3iEW?= =?us-ascii?Q?YvsJQ4YNODyWipirfQMiFjK071545jDQ8cvUzeVVTGAjQNZkA+m/e/mY82tr?= =?us-ascii?Q?oJ0+gj87NHd4gFZ1iwHhUyFelW4jQ1QKSicUlrNPYe19OagcVYfyZ1Wc1Pun?= =?us-ascii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cv1/laaB9fKIrxLoAHqYfoF8kdU?= =?us-ascii?Q?uJ+tGz+71voBLgNX4HVFA4azJvS/9RbIAgVk5pRYU6dPno+MPycX5HsngSJa?= =?us-ascii?Q?MfS0a6bEtz3O8uJM+iijYi2U9oizHb4gRSpzUBuNM/ilDn8WaSghfjN4LRna?= =?us-ascii?Q?AQXfihy7yWVOns=3D?= X-Microsoft-Antispam-Message-Info: sNsGq45czhK7Wafqb5PtkMv6jirGBPnh1S28+IfaQK84l0oIxRBAPyUF/WOUB+qAptXsrLbyn8XRidYgiawh/046KL4yiqOL073kd+zC4XQESWh0W603Zg/z+RX009w/B+IxgzLpfBgRJhsXaA2jugly2v4X7Zs4r55BKci0BVcw+YDTG6ep7/7iaRSpd6TL X-Microsoft-Exchange-Diagnostics: 1; TYAPR01MB2079; 6:Vhu0ua1gRw6hG1uswtB4ops/I3dd6Osmzctg8mcfXKK5IlJp96qyoRY6yDe8vPIKusSiERf/yBgAU/9o8aiUT32FXMcRjNCoZNp+BvT/gbQThKzfpROC1FDiYxnoI+5rSFYQFau4TSOWd6LB4yIOVngOF+T7AL05GL6/pa0O/dgwwQrDXmiM1daXP/Vb1bt5QtTGKXO5/IRIc2MZ4Ak6XqjOY9wUsX8p+9RqMQYIeqg+EqAYBnTcwmh9kYN4yOYQtSJkAY9J64Jegebj5zM5HWegqojIamqAjb/cUhDt0yi43rjepTEXHEkriJkLojAfDwOSy8dKVBhoLJ3Ekt+tipCdoTEr6WzdgCF4O8GidJWrKwMbnuLrixdChoZl/pffNkF3oGnX8ADVEYVMHC4qsQH1zY3TPBu6jQQv8iq+voUKyflTgPXZNko5gzsePXfANKl2v+SdMaRT4RA/KNgVCg==; 5:65FM2J2W4Yojx/OEgk+cMIHaSr/706QI5cooIwWKPr0Sf0b8J3pKdFyKu8a1YWcVaxoSnHyMy2HLNpW+5z3MidNEAbYUk99nw3057xxqvgMtH3gQwZrAcLqAbK1hdAQxScAdD34rUJRVhl8k5rZmBCMjO344tYv+pzamK2rYkao=; 24:xQgNTaJnQYIQbLI9o6E1nObTLmEWFqgH75hHqqV8UIOIELT5pDhY0iE5iovG4iaaXuNqxyXBJy7qQey4FRKRblLUnm4bcIQkI0B45y0YG+c= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; TYAPR01MB2079; 7:3RNtWvzpNondO6ghSLyCbUr4ppbm9Rlgfm2xVUxXrJeAGS4q7AuQYAJL8I9D/NdmeSAVvgVdOC6FGqbbPUtT0Kz2bpSFy2aJz+UmA2XQsaFZNPegvA0wsNS/fphuuEj9D8xg1AwoGQ70MzOfypf0dR3jRRtI9HP3geBLZ5VbRHE4ysV1hdFOrhRfbTUvHnJoJcDyge6PayInE1MOgekO00R4/4YI9LVLDuP+ZTzOrSpiesVJ6UnwQ6DCdDofCV1U; 20:WL5RjfJxVYdnaG7nkGcv3rSmDamXoY70U+wC+y9f7l+geLOBzAsp3bcSjZPZSkM0QNKPUsncZ3ZAH4nfhva2ru8T1VZlimhbmS1uEkK7ZXUzfMT+Lh1kLIyHkL8IcOKTEwubSukYqwJrV4wfLp2ftgl4p3R9yPf97oxkOkCRQVA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2018 05:41:43.1702 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 19a0f7b6-7690-4d6b-8a2d-08d59b811450 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB2079 Cc: Linux-ALSA <alsa-devel@alsa-project.org> Subject: [alsa-devel] [PATCH] ASoC: rsnd: makes rsnd_cmd_mod_get() static 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" <alsa-devel.alsa-project.org> List-Unsubscribe: <http://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/sound/soc/sh/rcar/cmd.c b/sound/soc/sh/rcar/cmd.c index f1d4fb5..4221937 100644 --- a/sound/soc/sh/rcar/cmd.c +++ b/sound/soc/sh/rcar/cmd.c @@ -125,6 +125,13 @@ static int rsnd_cmd_stop(struct rsnd_mod *mod, .stop = rsnd_cmd_stop, }; +static struct rsnd_mod *rsnd_cmd_mod_get(struct rsnd_priv *priv, int id) +{ + if (WARN_ON(id < 0 || id >= rsnd_cmd_nr(priv))) + id = 0; + + return rsnd_mod_get((struct rsnd_cmd *)(priv->cmd) + id); +} int rsnd_cmd_attach(struct rsnd_dai_stream *io, int id) { struct rsnd_priv *priv = rsnd_io_to_priv(io); @@ -133,14 +140,6 @@ int rsnd_cmd_attach(struct rsnd_dai_stream *io, int id) return rsnd_dai_connect(mod, io, mod->type); } -struct rsnd_mod *rsnd_cmd_mod_get(struct rsnd_priv *priv, int id) -{ - if (WARN_ON(id < 0 || id >= rsnd_cmd_nr(priv))) - id = 0; - - return rsnd_mod_get((struct rsnd_cmd *)(priv->cmd) + id); -} - int rsnd_cmd_probe(struct rsnd_priv *priv) { struct device *dev = rsnd_priv_to_dev(priv); diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index 172c8d6..ab4d555 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h @@ -775,7 +775,6 @@ unsigned int rsnd_src_get_rate(struct rsnd_priv *priv, int rsnd_cmd_probe(struct rsnd_priv *priv); void rsnd_cmd_remove(struct rsnd_priv *priv); int rsnd_cmd_attach(struct rsnd_dai_stream *io, int id); -struct rsnd_mod *rsnd_cmd_mod_get(struct rsnd_priv *priv, int id); void rsnd_mod_make_sure(struct rsnd_mod *mod, enum rsnd_mod_type type); #ifdef DEBUG