Message ID | 87vb1ur4d4.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | New, archived |
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 83E3460777 for <patchwork-alsa-devel@patchwork.kernel.org>; Tue, 31 May 2016 09:12:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7699027B89 for <patchwork-alsa-devel@patchwork.kernel.org>; Tue, 31 May 2016 09:12:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BA7F28185; Tue, 31 May 2016 09:12:33 +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 9888A27B89 for <patchwork-alsa-devel@patchwork.kernel.org>; Tue, 31 May 2016 09:12:32 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id B0C032667AA; Tue, 31 May 2016 11:12:31 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 2ED55266856; Tue, 31 May 2016 11:07:29 +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 12F6A266858; Tue, 31 May 2016 11:07:25 +0200 (CEST) Received: from relmlie2.idc.renesas.com (relmlor3.renesas.com [210.160.252.173]) by alsa0.perex.cz (Postfix) with ESMTP id 1B44126573D for <alsa-devel@alsa-project.org>; Tue, 31 May 2016 11:04:46 +0200 (CEST) Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie2.idc.renesas.com with ESMTP; 31 May 2016 18:04:45 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id D039B502D8; Tue, 31 May 2016 18:04:45 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id D4EFA480A4; Tue, 31 May 2016 18:04:45 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id CDA52480A3; Tue, 31 May 2016 18:04:45 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac4.idc.renesas.com with ESMTP id UAB06704; Tue, 31 May 2016 18:04:45 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="211980592" Received: from mail-sg2apc01lp0243.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.243]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 31 May 2016 18:04:44 +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=yfNbIAInQyHGFgC5Zc4zQqLNGcHHoSk8kL77MZgwUek=; b=Hxals34qix/xUxAvf3y6z6V8be47mJgJZz1GdEw9wYeYSFUGTsj4KqgRj981kqiQKRxztB6LkUsSKGZoa5LMcRXf3sQHx2ule8yImQ8qKzup7POnuKV0gijSpdzj++P9kY2eHiuIZgQS7v4JKpwh1wXdbnwdPKMdvnmCgkPFqvk= 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 SG2PR06MB1711.apcprd06.prod.outlook.com (10.167.82.141) with Microsoft SMTP Server (TLS) id 15.1.506.9; Tue, 31 May 2016 09:04:42 +0000 Message-ID: <87vb1ur4d4.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> 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") Date: Tue, 31 May 2016 09:04:42 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0088.jpnprd01.prod.outlook.com (10.167.153.176) To SG2PR06MB1711.apcprd06.prod.outlook.com (10.167.82.141) X-MS-Office365-Filtering-Correlation-Id: 8c19cb46-f68c-464e-c1cf-08d389329b2c X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB1711; 2:dGEstZb1zIzFRgBbBfv2gPIXDPyC5vf5LKewZB5aCFSNAM4K4M91fLc5cgjXB7Ql54gcyCDJv9OlTzK8pdlJni8ktT7mkYqaQKFTm4fVTgC3XhUm94i6btOMYG8laDF1zLL1xcxrnuhBH7zbmi0lBVvmVdl8W688XCa3RXCMtxund36UYDPkoUk8AxZwls6/; 3:nO/3YjAf6DD4fxJ8iHiUfl3LuypRIMvepoDkPdj7q0o/fW46kq4EswZjciaYI18W/ZSd1zq5tAV9sT6zQpG0YJCObK/9VjtfEgdJ3WFWdoV+GDZr/K8+pUMeg/d+jdjN; 25:PGAcV4yiGtbgUxS7H9O3P75pfp9b3USTpnRPpbtiCMnvu1mT2YBEr9Uo6OqMim6zGFfjnc5Q2+0ljSoYajHPp/kr5n+6/MBGpyJyTN73dGRHUf8HB6RnmaJtGidvCdQOglfcj2sPeAVYytVdCJ4GPabuawYVdlxSh9nGS9pVhZOf4DwZ6Tk0M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4egD89tPl/t4mHP5eJ0J44InWYEX4D0XHQta+LKaMwxwQgeO+LOGhJy+9VZTUhcdPiceYYXlla55vCZa6PCGrDlDSoVxciFFczN2WCPltMUj6AQDsNe0btO5YKEu8++9XAgMVUmmWUZLMomb4XjXAqFPAAaBqasBzp1udav5QJheSMSTHS1wGQZeSDRpIBrvw== X-Microsoft-Antispam-PRVS: <SG2PR06MB1711D3F53921AEF3292DB29BD4460@SG2PR06MB1711.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:SG2PR06MB1711; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB1711; X-Forefront-PRVS: 095972DF2F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(586003)(5004730100002)(86362001)(4001350100001)(77096005)(23726003)(92566002)(81166006)(2950100001)(230783001)(36756003)(46406003)(50986999)(66066001)(33646002)(6116002)(8676002)(5008740100001)(76176999)(3846002)(229853001)(189998001)(19580405001)(54356999)(50466002)(19580395003)(42186005)(4326007)(110136002)(53416004)(2906002)(83506001)(47776003)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB1711; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR06MB1711; 23:dkJ5/zivUV6JXtNfyBv0wzOsSBl9WahVMdtBCdGai?= =?us-ascii?Q?wNTC1WAa0MDeYofJCr9kMEEl5qIXMkShNU+dNMj8aelJhRRonxu3ShdZbyLn?= =?us-ascii?Q?JRLF4jpyHYOb/wgkHyz0JTGsSsXHlN0Ma4Czhd+WK3YVNRRv+O60SP+yqQ2y?= =?us-ascii?Q?wtfHCXimNw8xWTHqEOXXwrliruRRYpWr7srVBscGOlQTFg5gTa7OiO8GwQ7b?= =?us-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XOi+OEHe8Km0AU4HTdRMwfWIfE9Q0yl91zJedowwiq7bFOovE9JFT9XOH5lnp4cRQGOW4iCpaYOErBo5gf3/Ww==; 24:ZKDH4ttHAWjRuXBdJ5NvoRzZAsM8ln1GXk4tw4Ouoo0hmyIm3+Y5K6WUQH7E+IzKUkR/8hYq1bTdAiLg3X5en02CWfLRBcv30f5Eoiwd6q8=; 7:/IOw2izd/2RtfUYWqzLr2uyHZEpyK7OsIHSvVgXiG4A0JQgBiJYmzbyRarEk/DrDF8kluih8tzaJ+A+AferAMylYPBuFb2wnV4tNbBYQGUSfm5yL2WJz3Y24MFx0pqn4Pz7Dp7pDmWzfNq9zWNgDydYG9pIlhqNzFIMn168Mcvl5NyF/0UWhDBVT7EGWtIl1; 20:xauyZFgcDPGVg6B5cjH+SoJ2uLZHLvhgYnAtbR8msvDyPl82TTS/Yl+/mTYoa4dDNL8gN2OoFd/9/X5fBsgiUzukHj+qcxWYNWPjwOh4rixh7Mz3x72OCNmTeVpg4zDkWePWTTh7Ct8jnQHjzBt6IJgMS1Usg3UaQGvtoVAdqXE= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2016 09:04:42.8518 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB1711 Cc: linux-renesas-soc@vger.kernel.org, Linux-ALSA <alsa-devel@alsa-project.org>, Simon <horms@verge.net.au>, Liam Girdwood <lgirdwood@gmail.com> Subject: [alsa-devel] [PATCH 14/39 v2] ASoC: simple-card-utils: add asoc_simple_card_clean_reference() 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/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h index 7846467..7dbb349 100644 --- a/include/sound/simple_card_utils.h +++ b/include/sound/simple_card_utils.h @@ -72,4 +72,6 @@ int asoc_simple_card_canonicalize_dailink(struct snd_soc_dai_link *dai_link); int asoc_simple_card_canonicalize_cpu(struct snd_soc_dai_link *dai_link, int is_single_links); +int asoc_simple_card_clean_reference(struct snd_soc_card *card); + #endif /* __SIMPLE_CARD_CORE_H */ diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c index b8977ca..8bd4c83 100644 --- a/sound/soc/generic/simple-card-utils.c +++ b/sound/soc/generic/simple-card-utils.c @@ -271,3 +271,18 @@ int asoc_simple_card_canonicalize_cpu(struct snd_soc_dai_link *dai_link, return 0; } EXPORT_SYMBOL_GPL(asoc_simple_card_canonicalize_cpu); + +int asoc_simple_card_clean_reference(struct snd_soc_card *card) +{ + struct snd_soc_dai_link *dai_link; + int num_links; + + for (num_links = 0, dai_link = card->dai_link; + num_links < card->num_links; + num_links++, dai_link++) { + of_node_put(dai_link->cpu_of_node); + of_node_put(dai_link->codec_of_node); + } + return 0; +} +EXPORT_SYMBOL_GPL(asoc_simple_card_clean_reference);