From patchwork Tue Jul 25 04:01:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9861105 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: 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 43234602B1 for ; Tue, 25 Jul 2017 04:01:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 250AC285FE for ; Tue, 25 Jul 2017 04:01:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19B0028609; Tue, 25 Jul 2017 04:01:16 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5FE0D28606 for ; Tue, 25 Jul 2017 04:01:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751009AbdGYEBP (ORCPT ); Tue, 25 Jul 2017 00:01:15 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:60738 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750983AbdGYEBN (ORCPT ); Tue, 25 Jul 2017 00:01:13 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie3.idc.renesas.com with ESMTP; 25 Jul 2017 13:01:12 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id F18E541A98; Tue, 25 Jul 2017 13:01:11 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.40,409,1496070000"; d="scan'208";a="252218030" Received: from mail-sg2apc01lp0248.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.248]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 25 Jul 2017 13:01:11 +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=dtQTVg2GATQlvXKLT/MHAdwgEwRcRRkBoZJS9BXgD4g=; b=kGI0n7RPP/S+ICryPPdoFk6vdyGG5lAT8+r1B6Xhw6Tzkq/T5aoHA9UH8YoNj/yE2xb1emPAy1KoKdLsM6qUq9vWeAGOdlTWpLtjv+HjwQbehqjF39iyNWBvLwa0JtcW2oGbj0pPqbew49QS6lOw9Orw8HFm+HIa08096J7bh70= 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 SG2PR0601MB1887.apcprd06.prod.outlook.com (2603:1096:3:9::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1282.10; Tue, 25 Jul 2017 04:01:08 +0000 Message-ID: <8760eh6ui9.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 2/3] ASoC: soc-core: add snd_soc_add_component() User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown CC: Linux-ALSA , Simon , In-Reply-To: <878tjd6ukd.wl%kuninori.morimoto.gx@renesas.com> References: <87a83t6ulz.wl%kuninori.morimoto.gx@renesas.com> <878tjd6ukd.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Tue, 25 Jul 2017 04:01:08 +0000 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: KL1PR0601CA0024.apcprd06.prod.outlook.com (2603:1096:802:1::34) To SG2PR0601MB1887.apcprd06.prod.outlook.com (2603:1096:3:9::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 26c7b49d-6363-431a-0882-08d4d311c830 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:SG2PR0601MB1887; X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1887; 3:0OhKjxdPGKxFBZfcfMHcePXkIefrxyQaA5xXc9uP1HOqF7cNcaScXwyQr3o9S1NYFi2AKbk2ZFfadhWuTNlecvvjFCr9zbKWM3Edouxuf5gKSDaSuNlqm9uLh2tzpcgA8ikxCgnTtkG30tiJZLj6RDJI53EBm5F6AFiYE7ep+Rj/CkbYZnMmecr793rzlpvc0J1U4eUf+0NVe2rMxLfhm4QrB6lgJXJmvNn8zLJ1lttpevEFUURoT4HPWuMUM0ewiS34DfQOfyjJqAUjQGUEJJpE055ikTIy1FGD5W8QJ7h7znG835GldGc54eRepmHO8WYC0shKmjUFR2nKbnDU1WOyO/e+r0yeRYS03J2Nfv2L7mz3WX3Ow+bytV8zBuaaUCli+qyCgwUHQodqHyxZuibDILqRFT7Ly4cBUNpswIKK+8zod2zl1YzP9auW2eRTaH+2aYiK1TzGpqXfd9YKs9h/EQX7zItg9GqDPljoOicCL6Ni6g/+42cQQFjJvyrE1YsoAb3X2itv3UV+snkNz0J4yP/nu+xQigF7uKCRJDfYpIJrnbednl//Jk4wKtLKu8xGF6JwG98Uux8iY/H8/UJKyPkM3+wVJ7nX8Fyj0etst5BwoH4dx7TmCF9+wyb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qnKofzywcoTR27HTHAx1qqDISd8069q92ZxEXfjtrLPGf2Kk1G7Hz0G55zcGA7CdV6ipHh98flkiZ/NyxtVSpSnLX8Ctlvcq/N/upaba5p6lymuAmOg/KOYyA6zuIMvdY1LzKQXW+Vo+IChzaglLtZufjfl3/e5xt80ptczKUHhUsxkQ2Z8GnaXW8Ax9ChoGFgyWVMKr3/bPrY8OsLgfnCgxmTYW1UL8LdwVekQr3yoJ3BTg1JUcmdre7p4Qb2oJ2PcCBB79UqeNCDXY1ZsEJchqnJ0sVVFWiKvlM598xjfXe+P/Dcoi1LbRYHIyAi8GS3i X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(20161123562025)(20161123555025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SG2PR0601MB1887; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SG2PR0601MB1887; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR0601MB1887; 4:7AkSsEXx6Wx8vGYQJmLWZHxqCrjbexThGmReRrRP?= =?us-ascii?Q?Ev0kliYQnN8AY8V+ib5YBwGi7izDu3W9vK2YrG43RGY1Wwlx6h3/1oPedE/c?= =?us-ascii?Q?yHHt85l7w5Rh4n4MGTQRDigJ+3yZuBDXX4lCJB8MuE87dXLrMQrKE88HFwCd?= =?us-ascii?Q?ems8mULl4TOh6x/DVnKWgZlaI/FlVPuiIuw8HoLJ33y0o9N1vMpVPBy+69PB?= =?us-ascii?Q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EQwxA56A3Fc/rpgEgHB?= =?us-ascii?Q?HNS1xersyDHZt40CzGr0WU4xQ/d72LKtuW/nvqd0zI2k12MMcxwRCA=3D=3D?= X-Forefront-PRVS: 03793408BA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(7370300001)(4630300001)(6009001)(39850400002)(39410400002)(39400400002)(39840400002)(39860400002)(39450400003)(189002)(199003)(305945005)(106356001)(42186005)(5660300001)(81156014)(47776003)(66066001)(69596002)(83506001)(6916009)(2950100002)(25786009)(478600001)(8676002)(7736002)(105586002)(36756003)(4001350100001)(53416004)(2906002)(3846002)(68736007)(54906002)(50466002)(53936002)(4326008)(6116002)(81166006)(54356999)(76176999)(38730400002)(86362001)(46406003)(23726003)(101416001)(33646002)(50986999)(189998001)(97736004)(6486002)(7350300001)(110136004)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR0601MB1887; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR0601MB1887; 23:XEMgBdjA9Rr8TN4u7B/K5KNGpxcgYJDZXZqV8kF?= =?us-ascii?Q?0XRH3OfrVk7GitFd0puVrRHs9zYyKGIyzOwbCPX/+n8kB14T+NrXHO6rn9OX?= =?us-ascii?Q?DJ8DJwyciYpX7TxMM6WU2PrXek/QUlajE94v/RfiFWArkT2yOC27oHNxGyR4?= =?us-ascii?Q?jPaoProf/so+25MFwZjN9n67gze5QV26q/OwjtQCs1bOXhLLeteYuV6ZmZEn?= =?us-ascii?Q?3lAO/cS8UfYiW76AsnFYUnKBVHqeGBqHewIb6rt1cxHfEGN0+OaI7HCW61l9?= =?us-ascii?Q?Yv91wPm/JxPj5UrabJB5fCOjeGgx2waPbjrXQQVPRA8+dTBfM7AVOg5vHtHd?= =?us-ascii?Q?N2rtqkg4mUR0O+YLNDat1r66lrO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aEsa9K54= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2017 04:01:08.4721 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR0601MB1887 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto Current soc-core has snd_soc_register_component(), but doesn't have snd_soc_add_component() like snd_soc_add_platform(). This patch adds it. This patch also renames current "cmpnt" to "component" in function Signed-off-by: Kuninori Morimoto --- include/sound/soc.h | 10 ++++++++-- sound/soc/soc-core.c | 48 ++++++++++++++++++++++++++++++------------------ 2 files changed, 38 insertions(+), 20 deletions(-) diff --git a/include/sound/soc.h b/include/sound/soc.h index 82209be..38038cf 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -468,9 +468,15 @@ int snd_soc_register_codec(struct device *dev, const struct snd_soc_codec_driver *codec_drv, struct snd_soc_dai_driver *dai_drv, int num_dai); void snd_soc_unregister_codec(struct device *dev); +int snd_soc_add_component(struct device *dev, + struct snd_soc_component *component, + const struct snd_soc_component_driver *component_driver, + struct snd_soc_dai_driver *dai_drv, + int num_dai); int snd_soc_register_component(struct device *dev, - const struct snd_soc_component_driver *cmpnt_drv, - struct snd_soc_dai_driver *dai_drv, int num_dai); + const struct snd_soc_component_driver *component_driver, + struct snd_soc_dai_driver *dai_drv, + int num_dai); int devm_snd_soc_register_component(struct device *dev, const struct snd_soc_component_driver *cmpnt_drv, struct snd_soc_dai_driver *dai_drv, int num_dai); diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 0bd7764..e8d31e5 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -3279,43 +3279,55 @@ static void snd_soc_component_del_unlocked(struct snd_soc_component *component) list_del(&component->list); } -int snd_soc_register_component(struct device *dev, - const struct snd_soc_component_driver *cmpnt_drv, - struct snd_soc_dai_driver *dai_drv, - int num_dai) +int snd_soc_add_component(struct device *dev, + struct snd_soc_component *component, + const struct snd_soc_component_driver *component_driver, + struct snd_soc_dai_driver *dai_drv, + int num_dai) { - struct snd_soc_component *cmpnt; int ret; - cmpnt = kzalloc(sizeof(*cmpnt), GFP_KERNEL); - if (!cmpnt) { - dev_err(dev, "ASoC: Failed to allocate memory\n"); - return -ENOMEM; - } - - ret = snd_soc_component_initialize(cmpnt, cmpnt_drv, dev); + ret = snd_soc_component_initialize(component, component_driver, dev); if (ret) goto err_free; - cmpnt->ignore_pmdown_time = true; - cmpnt->registered_as_component = true; + component->ignore_pmdown_time = true; + component->registered_as_component = true; - ret = snd_soc_register_dais(cmpnt, dai_drv, num_dai, true); + ret = snd_soc_register_dais(component, dai_drv, num_dai, true); if (ret < 0) { dev_err(dev, "ASoC: Failed to register DAIs: %d\n", ret); goto err_cleanup; } - snd_soc_component_add(cmpnt); + snd_soc_component_add(component); return 0; err_cleanup: - snd_soc_component_cleanup(cmpnt); + snd_soc_component_cleanup(component); err_free: - kfree(cmpnt); + kfree(component); return ret; } +EXPORT_SYMBOL_GPL(snd_soc_add_component); + +int snd_soc_register_component(struct device *dev, + const struct snd_soc_component_driver *component_driver, + struct snd_soc_dai_driver *dai_drv, + int num_dai) +{ + struct snd_soc_component *component; + + component = kzalloc(sizeof(*component), GFP_KERNEL); + if (!component) { + dev_err(dev, "ASoC: Failed to allocate memory\n"); + return -ENOMEM; + } + + return snd_soc_add_component(dev, component, component_driver, + dai_drv, num_dai); +} EXPORT_SYMBOL_GPL(snd_soc_register_component); /**