Message ID | 87oa7mr49t.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Geert Uytterhoeven |
Headers | show
Return-Path: <linux-renesas-soc-owner@kernel.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 EBD7960757 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Tue, 31 May 2016 09:06:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0B0828226 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Tue, 31 May 2016 09:06:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF2F328240; Tue, 31 May 2016 09:06:45 +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 1C29928229 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Tue, 31 May 2016 09:06:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756118AbcEaJGo (ORCPT <rfc822;patchwork-linux-renesas-soc@patchwork.kernel.org>); Tue, 31 May 2016 05:06:44 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:48963 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755920AbcEaJGn (ORCPT <rfc822;linux-renesas-soc@vger.kernel.org>); Tue, 31 May 2016 05:06:43 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie2.idc.renesas.com with ESMTP; 31 May 2016 18:06:41 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 02B0161231; Tue, 31 May 2016 18:06:42 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 0638A480A4; Tue, 31 May 2016 18:06:41 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id D2D6A480A3; Tue, 31 May 2016 18:06:41 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac4.idc.renesas.com with ESMTP id UAD07482; Tue, 31 May 2016 18:06:41 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="211980779" Received: from mail-pu1apc01lp0024.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.24]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 31 May 2016 18:06:40 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=baMGSe1ub0x4d3zl2zWOmP9kzvX33Tsfre0J6KZaX6I=; b=KNc5a7sD6jelDddfDHcBN8KxjPkSRtaLOznUqu2OBvhJM9gGawohr5QNVmKzgZOVl48ulFmgREMf92OC/J0riBMQqJyEVcSoIgKZdtoAAKreL27fbRucA5LLB0vGZjBMeEYBQfg0QkR1OTpDKamVpgqvkd/cslbXWM/iWGYZ2do= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by KL1PR06MB1703.apcprd06.prod.outlook.com (10.167.63.17) with Microsoft SMTP Server (TLS) id 15.1.506.9; Tue, 31 May 2016 09:06:37 +0000 Message-ID: <87oa7mr49t.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH 19/39 v2] ASoC: simple-card: use asoc_simple_card_parse_card_name() User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown <broonie@kernel.org> CC: Linux-ALSA <alsa-devel@alsa-project.org>, Liam Girdwood <lgirdwood@gmail.com>, Simon <horms@verge.net.au>, <linux-renesas-soc@vger.kernel.org> In-Reply-To: <87fusysjam.wl%kuninori.morimoto.gx@renesas.com> References: <87fusysjam.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: Tue, 31 May 2016 09:06:37 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OSXPR01CA0058.jpnprd01.prod.outlook.com (10.167.144.20) To KL1PR06MB1703.apcprd06.prod.outlook.com (10.167.63.17) X-MS-Office365-Filtering-Correlation-Id: 66a4aad0-b63b-43c4-6bb3-08d38932dfe0 X-Microsoft-Exchange-Diagnostics: 1; KL1PR06MB1703; 2:PFbT2DOe3fVptytd9ic75FOechepwifGgkNab9wsHe8bxaAKBDtDUQfNzHh7pxS0OP63GRhI27+ZEi1Rs4JjGgqwhwNmIRIxioHJJi5Z28FTf0EjSZkmuTv8ValR93YcACOfl5YS6xpAIHkS4smAdjpxMmIOsZAZyE1YVUFIkCiQsLvEJRBkqmE5kadqEpBs; 3:8TIHJQCXefrFscs9gJAJVT8bG1nTK8TBnFNmyo7o03zmTMJJ2lSxJX+Btlcyd8QukY6fy9/3ps6CK4Yg2Ia1XOfSexHVC/cpLrlSW5cq6CMFlPD3uzysg6LjrQvV9may X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:KL1PR06MB1703; X-Microsoft-Exchange-Diagnostics: 1; KL1PR06MB1703; 25:sdcEWt2J2HblNt7K2pRpaGcxBzw6u+YRICwbht5jQXXsICB9UxJ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yWjM2EZjTMYot2rlv674t3dgiVMfP620I/yTMB1jLq8qMzNmnqFelXEBWvCw3WftFjdvAESXa7EzI7T1TFVoKIqoYx4YyD3W2FBi5kA2kZY3CPclk49qordA+fOKevo03UD8eFDeRxFs60jMyKkoqtStaWgk; 4:ROvOJbt+gvQ4nG4nwcaOgJcJ2He2pgyDQ5KVU9yfkQteju+KgiCp9idIBv4TdHxg3v/ztYlrJga3RYGbC/Omc6Q5EAElS0Y8hyK40jd6KBT5WVhw0jq0C+cNsE4J5j2lourKgeq0A7FzdS8qUKF7m2CdVd7GE3XUdjHxvbATXHC0RhYXNuwcF2fGiRRKYk9xXBpbN/WH26CmRbH7vKgwRxUVFF9DLfZxOvn8y04d0LfVPHrkGSYw8nh2QnjjSBEpB3Ce5VfAYix7kNr35awUHx++rs3km2P0TAp71fFMml7J/Cd8o7rP/LGOi0+1uUDovH/thnHBZUDGxX4nkhat6F1DasJ75vwasT99U9mHPmVUneVpAj4zklJOJhezy8hM+fb4PoNV9tiwCjmtbvmVaA== X-Microsoft-Antispam-PRVS: <KL1PR06MB1703DD15058B4B750E1FAC48D4460@KL1PR06MB1703.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:KL1PR06MB1703; BCL:0; PCL:0; RULEID:; SRVR:KL1PR06MB1703; X-Forefront-PRVS: 095972DF2F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(42186005)(47776003)(4326007)(66066001)(2906002)(54356999)(76176999)(23726003)(50986999)(6116002)(19580395003)(19580405001)(229853001)(86362001)(92566002)(33646002)(5004730100002)(2950100001)(46406003)(4001350100001)(110136002)(189998001)(77096005)(8676002)(81166006)(36756003)(586003)(50466002)(53416004)(83506001)(5008740100001)(3846002)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:KL1PR06MB1703; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; KL1PR06MB1703; 23:NnqIfUXlrKY/IWD3VLEk+M2nFdg67jUuTB6W8ys7T?= =?us-ascii?Q?UvPrTSgiuZ9GBV+PfxjraqTlVLF4OP6e4n8m0yVRx88yQeWkvK2ul8DObSSJ?= =?us-ascii?Q?VNQBXDjOA3J4Xv1/NevTlPpBzuRUa9b4+gIXpCFtlnA6agmiaB/O2fhXBsbV?= =?us-ascii?Q?+PurUlEdbChaZOF1JqrwPbFmEa3FFmNQQ4zxqTzbwMj0OOnd1I1mysrnc2Hu?= =?us-ascii?Q?gUcMVNV9uqR/GBqwIJtX/4gGGI6NhX0mvjV4LMg6s8/CfK870Gi7vWFfchg2?= =?us-ascii?Q?LSP1npiik9Cxwowp5G+QcbXMibR9yCepkeaXC4VINGt/WHT80v2AbVoQmT1w?= =?us-ascii?Q?8YsonVBl28KEY25Wps+rUl0eKICn/fIGNU5m1UGuPVmL/U0NCSnvKEGpO0xO?= =?us-ascii?Q?HSUd3seogsUB5kR+IPfIr0J2iADIcQd6vJxrcq034u9N6klSFdpzhz9PMk4c?= =?us-ascii?Q?OP2+ihOcQtesEdDf6NGKKuoAoUCV9sgM8udizcLfLd0HStkPYi9C0ZHt60mC?= =?us-ascii?Q?OHo28tNaNLHzlzJRP23jP80bNhJYheUQDWDG8O1q06s/1D/eTccGLjxckSl4?= =?us-ascii?Q?nRFa6MeskGPGEOxd79onC6IsRAggPLl5NWQ4w9L712WpRUghSJnvBJcGeccw?= =?us-ascii?Q?dRARR5OTerkMYSYSd2fw5sfsz8+Dqx7151Qo4NiXcE6axmYYeN7vSaWECGaT?= =?us-ascii?Q?457iLSGubXhbFIktthnVyqmMG2Ld15+Y9JbMEkvqaytlGVH4Rs+wgnZm8df3?= =?us-ascii?Q?BpPVTFMvSE5rWwZ3qwDfgFJwFyZdJ38TuxyHMObKaeTp4F6UBGwMks3A0At6?= =?us-ascii?Q?QKw/bRsSjpBp+q3TlLZyH4CaNdnUkBgI0nxZhF3GWi5xxTYJXKkJF3hUL6j4?= =?us-ascii?Q?moq+wMhJnV9DlTelTtay+8dtc8F7ge03muyx45usZRZ/AqCI+XcHKuefEWUF?= =?us-ascii?Q?Ia6OOhxuQrwR5wfeTV0aHTVg9utcXW8fAm+vqtlSg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; KL1PR06MB1703; 5:c2risDPK8fvgusQ2sDva8XgCj9i05o9pdp/6ptf9oXAB7KOsug48Nf+kPkZreKDD5aILMpCYY08wmtbnfaJAKUYrVE1ZlZde88royjj5U12Es9ZnoRjoqmHHrgwqx6sBsqQUQvvzOywQXfBEpLWF0w==; 24:9pysG8p5G8ZcZFU0F1g+zgh/Qvrt9HZ8tOfSZUXfwWh8fB/qnHD+OOekRrQ+VGrxyDnWUAN2zOv8fPl48Ohcs87zt9W0iSIFCTzCAivozpw=; 7:fGH+YqGTQN5CHYmRIXpDT89FvfK+0JBknVx8gH70i6THD1fcUJrBhgXv4cjByaWws/2vk3Sc6J7WoD4WseLq9r+bpCcm30VYxkMh8gJ6tjkK3ZwYOKKTUFpbaGFiACr8NY76OcfUYQkl7mtEklr8+Z1PigY1xWU3vb6sqshKxpEDVMkq50r7hFCXc6qjhayo; 20:NWENBU2qvdl1KMa2nDObzgJZxBw4EKBl/f4/0RGmtUywW8KEVCz7LI6Zpiv9ckM7eBuOQuAAZTJy3qU08X9lA/ksbtvOQj9NrmlaXYFddAOWGXKxb7HNWfNyrBQ5MGTDVa6YZ7tf51XmhKjgL4bKZTWzRmOU3LVpc0ZYxGDloik= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2016 09:06:37.9581 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB1703 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-renesas-soc.vger.kernel.org> X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 2aa21a4..35ec012c 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -376,9 +376,6 @@ static int asoc_simple_card_parse_of(struct device_node *node, if (!node) return -EINVAL; - /* Parse the card name from DT */ - snd_soc_of_parse_card_name(&priv->snd_card, PREFIX "name"); - /* The off-codec widgets */ if (of_property_read_bool(node, PREFIX "widgets")) { ret = snd_soc_of_parse_audio_simple_widgets(&priv->snd_card, @@ -400,9 +397,6 @@ static int asoc_simple_card_parse_of(struct device_node *node, if (ret == 0) priv->mclk_fs = val; - dev_dbg(dev, "New simple-card: %s\n", priv->snd_card.name ? - priv->snd_card.name : ""); - /* Single/Muti DAI link(s) & New style of DT node */ if (of_get_child_by_name(node, PREFIX "dai-link")) { struct device_node *np = NULL; @@ -425,8 +419,9 @@ static int asoc_simple_card_parse_of(struct device_node *node, return ret; } - if (!priv->snd_card.name) - priv->snd_card.name = priv->snd_card.dai_link->name; + ret = asoc_simple_card_parse_card_name(&priv->snd_card, PREFIX); + if (ret) + return ret; return 0; }