Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758837AbcJQIel (ORCPT ); Mon, 17 Oct 2016 04:34:41 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:15302 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757612AbcJQIeZ (ORCPT ); Mon, 17 Oct 2016 04:34:25 -0400 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="222518292" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <87h98b4c30.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 08/23] ASoC: soc-core: snd_soc_get_dai_name() become non static User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Rob Herring , Mark Brown CC: Linux-ALSA , Liam Girdwood , Simon , Laurent , Guennadi , Grant Likely , Frank Rowand , Linux-DT , Linux-Kernel In-Reply-To: <87shrv4c8x.wl%kuninori.morimoto.gx@renesas.com> References: <87shrv4c8x.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="US-ASCII" Date: Mon, 17 Oct 2016 08:34:19 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TYXPR0101CA0001.jpnprd01.prod.outlook.com (10.168.40.139) To SG2PR0601MB1456.apcprd06.prod.outlook.com (10.169.106.22) X-MS-Office365-Filtering-Correlation-Id: 8b20f17d-09b1-4a67-e446-08d3f668643d X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;2:1M7rEzXUtvKI6DukDvgQqvumS8IMh+69m+0W4DjSOSsBlfsfxy6b+9VUp6sEOe9L+yDSwwD4fsc2wjTptKtV/8bgG/nhdk3xZZcVYvq2PAHCcYq/5AMFCgVJz5Kl1PAIWlGFRPkdZgeZw1YefUw3oKilm4cVWB51pWhCu0+xYtzGThCK+HvXbyLgsm4H4xEPsKQNrbkzHCZBh2frhNxZ+A==;3:HNQOygP7CVQ5og9YUvwJVcnCWTxlGaux3uO9wP/YtDQK1iP4h/bLW6uJhn7s89plkRRq7K4FBri5vD5vlLp6p1RuauG0HTIKyzi9cMCYE8uwjUdjIEHUqtbm94G44Js+IBwAiZDDDComgnMFEM0ibg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SG2PR0601MB1456; X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;25:PV+petRcjNm1BThE1sW5R0zcaZJbk2P9NgUTXLkFZOpNj0c5T8Mrx9z8VL0RYB2C8GrDDNpRTJPnr/c1yTsBSizaLh2kOhNBONzGB8B0LbAI3yNklzOxR8y+SmZE0OEnm1xq9KxoqSbHnq276FT1Asy4yZLBITtPot8MjDQy9UykT4VS3vrP9K5Y+0/4102yccritojxodTVYFcg+E40A8mOW9DEmlhCTeoUJjdQPTkneDzy75IG9hlmqTV6yd+trXGyaGXmjNmtDbVG8riEFE7d1km4JO5AWcc2TQcfSXmzDmMinQ4m6qyYU3YWY2F5HVQISbQaLIT/xjqJ3z9+oCJ4W/Nuyc56CmSiAaK7b9KdE4+3kVQ3rDjQWqJsxxyfrDR0wqLU0AppH8n05u7Bfdb6HgqFMGHXOA6X0DuVhVjvOHEGl4093nePk6ftY6nB7umyjUGQaqMmzwDHcxaReMt/ZElMvm2X2ao+oWu+weAPxSgwwXjV6y5/sfWSzKVXgXFMJhwDdehuKvxSPtp/3jh7h/aljXLkMlizyjINjNeu5bueK2En13BV3V89FyZlt9KEXe4BL1zUMEeOiJtR3mD7L82z4bVo9bdo5r9cpcQ8AWhb4Old4KAV13U8xyLK+NLQlKYeliy6RcTyDHNGwCyYJKO2xob8BjBBtQ0eR/QJMDDHWf7Msj/2IPUiJoade9c5o4NDGy/nIyfpKxrmVGSiLrkk2LwNsiJBFrUu330= X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;31:5vEfhgSB12DeVtERv+WyCxhwbnieUz4Dke3czdOJLH/lz3ptj/Er1dxWZR60HxH9ExsZMXzIo7fN/zjrhcujzd37wPPZRcStmoAVvduvLaVcRereXfv+a3JHzi4cBjVN58vxx7CeKY8PSDrdOE6SgQH9IqSdaW/15KIwqiT6BHqmtqcuI8Q9NtK3i7Wfr0bZszIdfMNNt2P/TToW5EDVHqscY8RquIz4RV8T/Q6jXhRLvNhkWCFRyN5sg/xkZ2yT;20:+wRM/FeFkMTVcpgBPUYbLZ8HV9+EOqZtxrveMWE4/6HnAOtiS+lyTSUyNXBww5Qh/aisD+CJCejhS6JuvuuIzxtWmjtuAqU9vD7kqTMTq2GUY8W0PQjDO32+1kyzpGT35wrVdi0Pq2+Zk4lz+p10Rd/311/jmnFq7+eDOxFNeSWgArnjIYgUrnnYqm6HvbBZjURPV+vTy/q68LuXNcCXixr1mDdyUHqj1TnxPh3HlZKz3XMMv8RG9OvL73/+433h6pwsIqCi3PwUNBIGHqW8t66moXPxa5dj4LRrtsCDJJmx2pT+Uwbq5lLt86NtpA1QaajgPm9B6aGAVaA8H7T9Yhnyna8/aYNfyIgizYsCUeXDz/Xhihh/zvW5jniKZtRn/H9xUPAWlOeSSfQVcZnYG1CAxyTBzugX8vm64X/EyauxRi/fCYuBDPAgaTkfeIZSr2AN6I0DRHwer/Tp2ZvvcSVkxVb7cZ2KQTckcazil7PFXPs2zfCKdi9nlEfBX3Dq X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026);SRVR:SG2PR0601MB1456;BCL:0;PCL:0;RULEID:;SRVR:SG2PR0601MB1456; X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;4:n8TAo33vjkxFV8UE7PZa55rvqNfO3+6MyUf8CeijvRH2j7hfBJRFMjx/8Bm/1VczPjni45SiIcr5j8kK1NQL3LtqKt0U3Hw1kBWTceugMx/YAUNK45FPAut2FvUVCdYD0EhJultUgr49W2f9RxloP6C8kY/IrHLsU7BtgI9S650fSW5j/2xKAVstdy8iHQGGrtHb7ofvqfNKbyBBVDfaxwlR1kCMYdCSrXLogiirLr/5wYRlevR3tz2bWBeOnSO6K/+FIaaiAzicVxwh0IEAtzFX3OMP5Qf/b2dK1/IyV+GwsMIen4E5lEzS9QcaxizqxlOgeyZZsrmZWyhpXjk8cgXDhRFLkcqVwGVdZkT045Q1nzQ2beag8Y1O/7LJV0ey3ANBowlFcHeXY9dSbxFhWMXFgSXUMsijTzHgyMZZFl8= X-Forefront-PRVS: 0098BA6C6C X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(46406003)(106356001)(42186005)(105586002)(5660300001)(77096005)(6116002)(3846002)(586003)(7416002)(47776003)(5001770100001)(4001350100001)(83506001)(68736007)(66066001)(76176999)(101416001)(50986999)(54356999)(86362001)(69596002)(8676002)(81156014)(189998001)(4326007)(23726003)(97736004)(19580395003)(7736002)(7846002)(2906002)(81166006)(50466002)(92566002)(36756003)(33646002)(305945005)(2950100002)(19580405001)(229853001)(53416004)(8666005)(7059030)(16060500001);DIR:OUT;SFP:1102;SCL:1;SRVR:SG2PR0601MB1456;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SG2PR0601MB1456;23:rXUlILrlTQbEj9dg06BiEDAeAUsiAtV1d+Wk1SX?= =?us-ascii?Q?iD2NYYohzjv6/2udjl23a5kagvEUU7NitSTt6NZftyMiUtCw/B8X28TMejXJ?= =?us-ascii?Q?cFDeBORwdASTqa+ouyG5hsAel8H9tlWQYkNh1C/PpN6WY1dS0hAl+uCU1o6r?= =?us-ascii?Q?EAea4eWBw9FTHri3azdnybnSBzC9wk7auoWZtg7LzACJqoTJvIxr7gB+B9ow?= =?us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0zTnSdRQX+kTbYV?= =?us-ascii?Q?OxMVVuk6u1N0YCArAeH9lW07AwF6Kjsc6U7KtJ8CM2G9aplT4iJKMiRwmxp/?= =?us-ascii?Q?GLVAaAM5h5W/g8BzT09bDve90jJFY0372f/ihcf2daolaLzP9GqDsw5LD102?= =?us-ascii?Q?5aEPBM7TgfGIi53A0Fa8=3D?= X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;6:MKT5viP2Ozrn9QkXEe9gIfmaMrNKzoKH6QZuAnTJF2j3KksiZY92waC9DqKW7GwxlTYpowibiYWKQTUmzNfmNEOLHFU3b6G462Z2J84uiC7wXBMqXWmq0JQlYseC+NVcjhZdvXAaP6Qfa2/UcLYk/A+FpwoaUXcYNcNranaC7vI1vN77R5mvjPxoVCwIAjgcQVmVvmex2Lw6J9/jARhxOeE8YXI57lbFfNfVmdwTt5FMhGMt+5H9XU9ve7KLKcyU6sNCO01RYkeMkn6QJz4iN2qHJI0c+9wD40K85pdPkPGsgUAKFpB46/xXKTs/QX4ReNM4r/XHMpxr4zyE+tbG3end7WkDLaF7SP7paF7eRo4=;5:EV+tYqbrboFOXXSFS2g4nc9MTUQLr+oMC8eAstwx15+DqMwsDNEkGv50l66RcQ0SGTmyBaDDl13SgBang0MVIdIvA3KhvJhpn9hbxtMkBWFyGj05vaxeH+hPl4YcHhsw2A5v38OV8wWT/qi5NZYZQVQGR5GZpUjjPUyAvFtI9D0=;24:gvZmxRZ3bjimvj5OvQFcFw599pXf8NOA62JbehkEuU8mIdsUZEkAlSIZTfz6xtZF+aT1gFqsoSj55bKSi/df7MGDMCRAMtrnFLurbkFB1Yg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;7:pfeREv+USrQ/A13FFL7qaPzDGcNvRmfLYA9FaKPmVNEJ9g3egtUSPD+DZzv4wLuTBtKrJDz+hI87gTQ9eEiMalZnAU9pbn/kxzpaIIQeFuU6UBTiMLn27LsSBFEkmL7dn9ss+Yakx8+wbpPJezlBTQkurGbQ8EAZWHLYTEEwQfGQblV2uLvQ7SoMMNdUNJLVMaAwzChJpUEMfNPlGTeItYN7LVAa8o/jzD/dGumG9rYnC0pVfCuWiuESrCG6PfXD1nvaATrhcgObnVtA/dq6DWzdzrTopuOU/zc6oNJfPbvAfTNYyAS6CI2ZcjL7nLqfHWVqFkMq/38EGVkuARBeL7/AyZAHtmhdhk07OrPsNcw=;20:pQsljA8rowhExMv5eECzQn6YUvpk/BOVnpJFBYlqZjXkZm9zV31m5iz7cVvLJGIjcJ0mfjvi59YQS5hTLyyfadiLwlw514WhiJWBKHU33mdlhhQdcVbrHC6nkBpbMOvNo3W4cD9GFUS6B6WAYwfCcgolMpyoYPDhhIxiTHcjQ8U= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2016 08:34:19.7502 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR0601MB1456 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1794 Lines: 49 From: Kuninori Morimoto snd_soc_get_dai_name() is used from snd_soc_of_get_dai_name(), and it is assuming that DT is using "sound-dai" / "#sound-dai-cells". But graph base DT is using "remote-endpoint". This patch makes snd_soc_get_dai_name() non static for graph support. Signed-off-by: Kuninori Morimoto --- include/sound/soc.h | 2 ++ sound/soc/soc-core.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/sound/soc.h b/include/sound/soc.h index fd63d23..77b01c4 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1677,6 +1677,8 @@ unsigned int snd_soc_of_parse_daifmt(struct device_node *np, const char *prefix, struct device_node **bitclkmaster, struct device_node **framemaster); +int snd_soc_get_dai_name(struct of_phandle_args *args, + const char **dai_name); int snd_soc_of_get_dai_name(struct device_node *of_node, const char **dai_name); int snd_soc_of_get_dai_link_codecs(struct device *dev, diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 8371488..6f911f4 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -3794,7 +3794,7 @@ unsigned int snd_soc_of_parse_daifmt(struct device_node *np, } EXPORT_SYMBOL_GPL(snd_soc_of_parse_daifmt); -static int snd_soc_get_dai_name(struct of_phandle_args *args, +int snd_soc_get_dai_name(struct of_phandle_args *args, const char **dai_name) { struct snd_soc_component *pos; @@ -3846,6 +3846,7 @@ static int snd_soc_get_dai_name(struct of_phandle_args *args, mutex_unlock(&client_mutex); return ret; } +EXPORT_SYMBOL_GPL(snd_soc_get_dai_name); int snd_soc_of_get_dai_name(struct device_node *of_node, const char **dai_name) -- 1.9.1