Message ID | 877fcrn360.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
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 CD4D260572 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Mon, 11 Jul 2016 23:59:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF4E52236A for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Mon, 11 Jul 2016 23:59:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3F1F26252; Mon, 11 Jul 2016 23:59:46 +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 2210B2236A for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Mon, 11 Jul 2016 23:59:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751559AbcGKX7p (ORCPT <rfc822;patchwork-linux-renesas-soc@patchwork.kernel.org>); Mon, 11 Jul 2016 19:59:45 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:41289 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751365AbcGKX7o (ORCPT <rfc822;linux-renesas-soc@vger.kernel.org>); Mon, 11 Jul 2016 19:59:44 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie1.idc.renesas.com with ESMTP; 12 Jul 2016 08:59:43 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 2183A3FB79; Tue, 12 Jul 2016 08:59:43 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 036062806E; Tue, 12 Jul 2016 08:59:42 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id EFBDD2806D; Tue, 12 Jul 2016 08:59:42 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac2.idc.renesas.com with ESMTP id JAM30134; Tue, 12 Jul 2016 08:59:42 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="214867913" Received: from mail-hk2apc01lp0211.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.211]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 12 Jul 2016 08:59:42 +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=fqv0lgeSjOrtkEFNd3RIIm2NmySOeYbVihk+mtzLIH8=; b=BE3RwyInc/DpnsfSswsm1Bd8u2uCoSkRt8jxbtWxbCWnJ+oi6i3aCxrq4VxhqpiG1JCIl2DVSduXZpIwa207fnBSDnLozwV/rzW0ZL8uboNqCV4ZLzywvTlmc4xBa1eijOs/6NcsVwEzsQXUZH94KKg1q2VYLLk2KBMD2plSU/Y= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by SG2PR0601MB1453.apcprd06.prod.outlook.com (10.169.106.19) with Microsoft SMTP Server (TLS) id 15.1.539.14; Mon, 11 Jul 2016 23:59:40 +0000 Message-ID: <877fcrn360.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH 6/7 v2] ASoC: simple-card: use asoc_simple_card_parse_card_name() User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") 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: <87furfn3bj.wl%kuninori.morimoto.gx@renesas.com> References: <87furfn3bj.wl%kuninori.morimoto.gx@renesas.com> Content-Type: text/plain; charset="US-ASCII" Date: Mon, 11 Jul 2016 23:59:40 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: KAWPR01CA0010.jpnprd01.prod.outlook.com (10.161.24.20) To SG2PR0601MB1453.apcprd06.prod.outlook.com (10.169.106.19) X-MS-Office365-Filtering-Correlation-Id: 6a081e53-9625-4ad8-1f27-08d3a9e76ca1 X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1453; 2:udvIO+KTvwiggallPczF/9mldxqq5P8aLLxAr91/G76NnQnPhqT966nalxVaaeKdg55mRg67hHPHW+g3gC0JaS9eHAaeRompDwwyEx2Zft4AUjMuxSUTGixsghUHqsdlju3xnEgFGdlwpwiE9uAzHrZfCQ1dM3ER6Xiqjkeb0COI2l7RqNYVszu9YGwR/sN7; 3:2SiYn50IhB65PGNBRj+w61yKOYsp5tbvdb36uRfSh3PbVwHzm2lZ7fEEkJuDuORptCI6k3QB0tD8mRi7TgsG+EMshFzaAOV4KcWxdlv3uJCxhZmNP6D44z0LK1HMz1Rl; 25:U/7jcGSl9CZRD2Z8TycOO/RVCMA+JQT8v1fyRyVPex3TRPsviajlCJz79OJDE+PM5vJb+KGQ13KraCXK9e1Z9J3Vf/dqfsGKuTooO952Wt3gp1Pl4h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QpXoAU8dxUE4cB3K1MYBUxk/5EO7PFWKjWlGlt5md4ByLoIa/V0f3jJ9fnxWHm/8ALT6Dy6 X-Microsoft-Antispam-PRVS: <SG2PR0601MB145338BE5FC4442C72C41486D43F0@SG2PR0601MB1453.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:SG2PR0601MB1453; BCL:0; PCL:0; RULEID:; SRVR:SG2PR0601MB1453; X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1453; 4:Sf+Vl1alE2tExGXgeWtMeA3J378W+XM9Bl5X9Ltsa666ETiibi1CgfcSKcZVbtvvZ7glPQQNj4RFoXgeSbQBYquNhxZLNACERr2NEC/Tj0qTUNpYQc84q+BkEA2yZ0rnuPaF/jBEsGkpjef3jDB4peg8Yaz9Kjb1S1Drw178F3Bsbja29J9s/unh0Ph3gT/EfQusyQC6IbU1NCSZFB9NgV8i+DxMf/OAhbG0hUK/W710xODxW/GINHfCEHc9XVbSQNLNYkfg1OvhLeb0Knnxy8eZcxf+AMrcDqYf7GV8ArBWek7vp+l3ioLdRlQ++4i6BmaH9RjypxFx7PlO/wiND6FunGxmSu22XdyNjoTbjo8vZVYId0qdIZBsS/jdS23cNgvmy3+x2wHWifzCmF6ZcQ== X-Forefront-PRVS: 00003DBFE7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(4001350100001)(42186005)(46406003)(53416004)(106356001)(66066001)(50466002)(19580405001)(97736004)(76176999)(101416001)(54356999)(50986999)(86362001)(92566002)(83506001)(586003)(68736007)(7736002)(229853001)(7846002)(69596002)(4326007)(23726003)(2906002)(3846002)(305945005)(6116002)(33646002)(19580395003)(8676002)(47776003)(105586002)(81156014)(81166006)(36756003)(110136002)(2950100001)(189998001)(77096005)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR0601MB1453; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR0601MB1453; 23:NlEjfa/VWrVzah3tqA+NYfig74SO938aVC+Sijm?= =?us-ascii?Q?q8E8zjQyoJPFKUiRPsqY6bToHqtrgbVxNTqB4SZMJsoUUgmMkVXv5n1wowq+?= =?us-ascii?Q?7xbxLt2ho7SDGktLcPuoa4GFVzksyg9SM6j/WLvx8oFtssL/Cjj60HBiyPTP?= =?us-ascii?Q?6BiahOwfPySSDmJJEURhR+fDhoGz//Lol90D+awPgu1yW6sR15ld1/y8H3aI?= =?us-ascii?Q?t8JXSTNW3fczci5ATj3Sl521DXWDLVTWlzgr89EhS6pwWrjL6Wwp+qWgI+ZW?= =?us-ascii?Q?MdPxO7J/7CTESdC1d32XoGsImbDjZypPBtr7iKZFA7Ba/YjRLFPBn0OiOwKS?= =?us-ascii?Q?laRDsT/93QNwy1OORoUfFjcH+5sRgAOtWnO9uEKz63LBtxrmTAQQv/70zp45?= =?us-ascii?Q?QUcjQW2eA0QvF4sZtnWMFSQJdKWPwVei9/FMS3yQcVSgIL9Apv83cR9PoQd0?= =?us-ascii?Q?IAgQU30+gOjil9+l/sK8CZVyixeab3KNGCDEWMqPp80XLuGHyemn6YHoVC4i?= =?us-ascii?Q?MC9dIM4H2NlLJ0HNRDYYX6fmTDoDhKsw+2VA+N95mE2Q1husae3oxz0CRicD?= =?us-ascii?Q?pGPTIVoGlyI3dTDICm3Tf9l/HRjNPlo2EgaQrT5129OHIzLqmeejYnnLOT43?= =?us-ascii?Q?xSU9A3Go4+KnYO2cDhSAp8xEMLmipg31CoQLFT+9781ypuTf3AEDfTKWMKj2?= =?us-ascii?Q?z0SS8I0D28z9lquQqO1BI8yXIj740zSpcd18mxnep3wGxS3R9dwHwANxlwW0?= =?us-ascii?Q?Hc2aKisYXuPv8CGuArVa5a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Iz1KbX658veS9gHvTARJHuC3EVwgp3W+5eNDMqJaqjz8dgIocfet0chfdOsdJBUJHlbbVqJXLPM=; 7:GrHATC0xrzxVOX7NwpGTo4xDMtIwiThizFriPUg91rDqjpZZnWiT+FOSiTNS/3q5eZ73Vr2HoDefclDxrK401Q2voZ3gooiKM6gsX9jYibWm0oyO+l8kFhwdNj7TEszzDHzQb71IxRU8iO1/0C9IClgbeQP4cATIJdG5NVIFBGuunmdxCTLgRbVi/wPaaoLJm1soph/Vu+SmXgnZbO0tWyDtzKhlFMVFRnX8Z76udigUI4RWAaQ3l3dW1Qid/UmF SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1453; 20:8tCfH8wvE94Mtw3K2+Lm+LDHR9iLV9/8RebI4IR5el93FRTJdEWTIDM85vmGi5Sg5Zqj1XiJ68gNOAUM8KfM7uAxc9+I6cf1tTLjSwOZrq0PWlIAF9RDF9o0G+0Jo9KgLM6BxKR9HBH1sS6KEWQNTluJ4LknU6mLIgN98ukd2/0= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2016 23:59:40.8505 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR0601MB1453 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 07469cd..43295f0 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -427,9 +427,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, @@ -451,9 +448,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; @@ -476,8 +470,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; }