Message ID | 877feprrub.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 6187360762 for <patchwork-alsa-devel@patchwork.kernel.org>; Fri, 20 May 2016 12:42:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44DD0200E7 for <patchwork-alsa-devel@patchwork.kernel.org>; Fri, 20 May 2016 12:42:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 38CCD27BF4; Fri, 20 May 2016 12:42:34 +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=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 B4ABF200E7 for <patchwork-alsa-devel@patchwork.kernel.org>; Fri, 20 May 2016 12:42:32 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id CD0B82665C2; Fri, 20 May 2016 14:42:31 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id E465E2665C8; Fri, 20 May 2016 12:17:57 +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 2DB1826693B; Fri, 20 May 2016 12:17:57 +0200 (CEST) Received: from relmlie2.idc.renesas.com (relmlor3.renesas.com [210.160.252.173]) by alsa0.perex.cz (Postfix) with ESMTP id BCA0D2665C8 for <alsa-devel@alsa-project.org>; Fri, 20 May 2016 11:45:40 +0200 (CEST) Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie2.idc.renesas.com with ESMTP; 20 May 2016 18:45:39 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 774C952B25; Fri, 20 May 2016 18:45:39 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 54C1C480A4; Fri, 20 May 2016 18:45:39 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 3CFEC480A3; Fri, 20 May 2016 18:45:39 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac4.idc.renesas.com with ESMTP id UAB03001; Fri, 20 May 2016 18:45:39 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="211713628" Received: from mail-hk2apc01lp0212.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.212]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 20 May 2016 18:45:38 +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=Vgt8jvZ8RYIDqc/iM7O/Hiizc27IUI436UOyAR3TYTA=; b=UbQAgPCr0XFjMvwNmVkyibn+7Uhtt0yexwtx7pMz7RUNkXTur9TacF7ug4AjCtjyZYPfFDiGoGkHzN2Dqt0JkhwHTRVtX0izM+f3bIBaJnCt9PaK0NjXfh4eWn0ilIn9A/EoRRh46c6XO6X29MJ42dSDFKiXfYu7R2Db+hqWf+g= 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 PS1PR06MB1705.apcprd06.prod.outlook.com (10.167.53.15) with Microsoft SMTP Server (TLS) id 15.1.501.7; Fri, 20 May 2016 09:45:36 +0000 Message-ID: <877feprrub.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: <87lh35rs8w.wl%kuninori.morimoto.gx@renesas.com> References: <87lh35rs8w.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Fri, 20 May 2016 09:45:36 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OSXPR01CA0037.jpnprd01.prod.outlook.com (10.167.143.148) To PS1PR06MB1705.apcprd06.prod.outlook.com (10.167.53.15) X-MS-Office365-Filtering-Correlation-Id: 59287013-55bc-4921-dd8b-08d380937f27 X-Microsoft-Exchange-Diagnostics: 1; PS1PR06MB1705; 2:LH8HnlF4w/UwfXOp4gxtmC0I9HlxCaKDrbvnGw08pnKAJBuT+Ky+CXfXjSdHmUqdFPQH2pl0KQhsbvAogaMKTuhmubLrcQJCNYnxLIel1Inj4BLOLgB5LNrODcH1cnPEvRfEnV4kRKV4r/7Ro/yKOiUvQ18d4z3HouyUoGK6Hu0PK62Nl20dzvQSy20Zir8X; 3:82w8voezBR39KiWfIi/b6m7n0H41gTT9d7NWL+a9mHk3zY4DrVTWJKFxNXA4USROOlvMzzMu2lPHZsybYHwgXltYrypAwoa//SZCda0KH6K1JXFpOYWgodKUrj6mE/GD X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:PS1PR06MB1705; X-Microsoft-Exchange-Diagnostics: 1; PS1PR06MB1705; 25:dvf+bMbRSjpm69pzLN/g5TWGUR42VNin7WdWMv94Ep1vYDtQJd5q7q0E9/rvFNE/pImF0YQ06n+rNlDOz3j59XEf1IRuCr5dGX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Q3gBpnUCi+x5s9a76fXh/drF0aAJ+TVyTm2OPOwHtoaC2MJD2C875t83pJlrUIk8FaH05Kq4vz; 4:VFTY9lBTbdld38sKIXpWSi/moUxzgKe/ntnicXmpB8Mv4H2d+ps1Vf6ncL0uWO9J7qGqJKCne5CYkskeqgi71lnB+OMORxD3UwNu7cp3qTZdoPUDajXt1NgdU0Ocr76IzGZyKWu+ScXlCtdC3oCHGWouvOpl+IAYp1G64spHP2623/v+m/88QdxQh48+X99FciwBbtIQvSIfzJYymMFl7aOkMx8CPoOC/aYSQcBIteLE0X0+KfnXbJW3lckrV+mjyQ5QesgSpmRFWJ1ByBDdhd7YnwMY1SleXyDBYn4qRX/CwhBoTvUIBUflUN47wnK8IcXcbeFFz+woM6l0GJBDrn78LfCNn1AF61hF7ilPXqhfdHbh/LSpaxFZOKl0LqVbZntE6SywdsC0d9jO5jwZDQ== X-Microsoft-Antispam-PRVS: <PS1PR06MB17053BD82B869194779A5F89D44B0@PS1PR06MB1705.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)(10201501046)(3002001)(6055026); SRVR:PS1PR06MB1705; BCL:0; PCL:0; RULEID:; SRVR:PS1PR06MB1705; X-Forefront-PRVS: 09480768F8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(46406003)(4326007)(5004730100002)(5008740100001)(229853001)(83506001)(33646002)(23726003)(2906002)(3846002)(6116002)(50466002)(586003)(230783001)(66066001)(47776003)(36756003)(2950100001)(81166006)(53416004)(8676002)(77096005)(42186005)(110136002)(189998001)(92566002)(86362001)(19580405001)(19580395003)(54356999)(76176999)(50986999)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:PS1PR06MB1705; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; PS1PR06MB1705; 23:RDP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DZRiAuGyJrggDJ3DWNjqaUmut7em6kgUjULd/1iM1SCyUPnS1/Q==; 24:2EfN6TJiZwa3jJ9MuaLKl73QlYr7Z+yvPUQOGE7UWiGqDSSDwhj+X73dTAi+mp8CQrff8I4Xq6bF4CvXTZJFlizNbG38HbENg2FSjVPtrPA=; 7:1jf18edE6mXq/2Sp4GWZE5TbYvKOqBWAIDlSE90bHwlgRSxJLRAXkfRmeI9/AGiqtyimXcDwVVwarKt4jAJA4MH/NLpVHvF6rFwjJNt0gQOEgu3/HjpqqAuXGg2NqJDeflLIkhqLXQL/bj6vRr6kiY715tjZ3BsVHrkR8fjlu8NdfAsX5dMSWN3BLxL67bLI; 20:V7MQ3I1fnF2mU8P0j7qjDvbARjie7LZXKl035GiiUazXjKipAwnvkD0S2CUe1unLF+vQAEDyPNLpTmrbNSRd5Q+Xf7am2bQEm/pd6XQGrPNKC2Xy2Ww4SKYRMuWB+18rMKeyzzvYujutNBMtGzhyQHdlHmMqNotcqRFlbxbion0= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2016 09:45:36.6551 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR06MB1705 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 10/49] ASoC: simple-card-core: add asoc_simple_card_parse_card_widgets() 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_core.h b/include/sound/simple_card_core.h index 89172aa..d66b536 100644 --- a/include/sound/simple_card_core.h +++ b/include/sound/simple_card_core.h @@ -37,5 +37,7 @@ int asoc_simple_card_parse_card_prefix(struct snd_soc_card *card, struct snd_soc_dai_link *dai_link, struct snd_soc_codec_conf *codec_conf, char *prefix); +int asoc_simple_card_parse_card_route(struct snd_soc_card *card, + char *prefix); #endif /* __SIMPLE_CARD_CORE_H */ diff --git a/sound/soc/generic/simple-card-core.c b/sound/soc/generic/simple-card-core.c index bc1f2a9..bfe3bf4 100644 --- a/sound/soc/generic/simple-card-core.c +++ b/sound/soc/generic/simple-card-core.c @@ -142,3 +142,19 @@ int asoc_simple_card_parse_card_prefix(struct snd_soc_card *card, return 0; } EXPORT_SYMBOL_GPL(asoc_simple_card_parse_card_prefix); + +int asoc_simple_card_parse_card_route(struct snd_soc_card *card, + char *prefix) +{ + struct device_node *np = card->dev->of_node; + char prop[128]; + int ret = 0; + + snprintf(prop, sizeof(prop), "%srouting", prefix); + + if (of_property_read_bool(np, prop)) + ret = snd_soc_of_parse_audio_routing(card, prop); + + return ret; +} +EXPORT_SYMBOL_GPL(asoc_simple_card_parse_card_route);