From patchwork Mon Jul 24 00:21:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13323374 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 18F93C001B0 for ; Mon, 24 Jul 2023 00:29:04 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 457C0207; Mon, 24 Jul 2023 02:28:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 457C0207 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1690158542; bh=uHfGZsWQlIaWPXIOISjEx33qMR61fUrzglPCK8bC7AY=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=kYdNkGCNmSNVhVqdZRiLRhKtVI+ME6woJhd58f4PJQ7DOiNtr3Me5HRQjoeIQ+3kz 7b4HFjb8Y1VDODXfa4PQNnCmfEFddDat3EHO/bHT4xho9USpmzbW/Qf5UFStr1e9kN x4EOjc4Mc4MM5/ZK46WX24X2wNzYrgtk5aSY5An4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 55B97F80544; Mon, 24 Jul 2023 02:27:24 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id CE334F80548; Mon, 24 Jul 2023 02:27:22 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C808DF80549; Mon, 24 Jul 2023 02:21:49 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20728.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::728]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 2C02AF80520 for ; Mon, 24 Jul 2023 02:21:31 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2C02AF80520 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=PkleNIxJ ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fFx7P08P5OKk60hJqHwI8bzQG71lLWThNPa05Ra4ihIcuY4PlLJefX6fu54BVi1JiMxbhCL1GlMnQs2NSYq7RUk08FKTkb4tkJuVI957E9Ym4512heWqYw5PKRVgA/Gv8rKbRrOR1a17QA2VlR7SrIveXtoqrKetNJQY7du1AI39NsSSi9RuMxyn5ith2Sha8J98BSRKlYbqVbQj41ZSgjc9yUl30BCMr38RMmYV71IYIjBae2dYyVay8wocBXENGvp+4OmjWkYJEe+/f9SG5vq7UvyKjdXNi77Lypee3BtA+WKn2LOFH8dQd2LiXILsXP6QZTtwv6uysJyldtXamQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HPQjkV/yUGqOnlH0brfqHlDsVtEbqQhTz6n3QSPRYAE=; b=KwgkzIyEsVS1Svghhc14z68ceBeIZ46juKrsvTNT17epg7AmlzECxv/GL8D7RUgfYUGb+LUQkJ8JxGlR9+Pg3wn0/PSzBgBzQSs3pNIWKauM6FHJegaEReFxzRkuma2b0qBW462e16Dqd/UcgpZo6g695CgGQcT9Zhn0wKvKWAiPFF28cl3WScWdZt2N0tOxYl76vOdKJsmnRjCflJtyxxZoOl5I037XusdhCoQqEF7rRBWTCmlxGiVhLrJWohZv9eVI735MXbfVrBX8zoAJft3/2ZVZjl6j1yD2NCKFCtgHMmEhNCWmZYR1RBLTU6fIu8MamvswOhcSNWzQEhyJKQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HPQjkV/yUGqOnlH0brfqHlDsVtEbqQhTz6n3QSPRYAE=; b=PkleNIxJSbWZxlExP4N0HsikyUbdqxHo/7HfusDdYBi3B2NRaiuv0UTg804UjChvubqbELl559AvkIPR6tpdHI1CtamvUwivFgHzbOqMIHFyiJImTgE/NjmhFuTIjw5QhTqWCQk1rGvCwcAs8Ay1EtODL5mnOEG2A1i0ZJE3yGk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by OSRPR01MB11420.jpnprd01.prod.outlook.com (2603:1096:604:234::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.32; Mon, 24 Jul 2023 00:21:22 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e6db:c2b4:3f89:e3a5]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e6db:c2b4:3f89:e3a5%3]) with mapi id 15.20.6609.032; Mon, 24 Jul 2023 00:21:22 +0000 Message-ID: <87wmyqb1mm.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 1/5] ASoC: rsnd: use DAI driver ID instead of DAI ID User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 To: Mark Brown , Krzysztof Kozlowski , Rob Herring Cc: Linux-ALSA , devicetree@vger.kernel.org In-Reply-To: <87y1j6b1ne.wl-kuninori.morimoto.gx@renesas.com> References: <87y1j6b1ne.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 24 Jul 2023 00:21:22 +0000 X-ClientProxiedBy: TYCP286CA0235.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c7::13) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|OSRPR01MB11420:EE_ X-MS-Office365-Filtering-Correlation-Id: 741724fd-66e3-4bb0-5b47-08db8bdbe8d3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GB1v10wMFnVSXIM3yvcjOaI5wkfLO46gBrDadxO8rGzm5ZW/14jsFaHY38Z71YajCzUoVnhjUNnG682IaK8Aad4AXO2fUfE6vlc3Usr4U+A6LnuJsED9KwQMiyexaPAXxdDuqcZbUjAWDtkLhYZGM8+bOGq+6Eghh6EK+ryzi8F45MyhceIbcJprLTC2Ma2DVwFOtRNn5eGo4fC4//e/Y7aMmWLELQN+0fIPSBElexH8RVi4SeqplElp5qzrijL+yBMx74W6TrWh6g3bkFujCin3zmSfgaJdD5/roJdhEdkC6MGPDfRPOa2KjYhdZVdEF+BhREA154x7m+6UfvwmCAIbwC1DklwnMSMxK6qmbou/DyIW7tmXqItOcm6jhSa31vqMpmJKGEtI4vTyVyCm55pifEBUzTTXTcaX/w9Uxn5WeB5DDBDp8GAqn5a+I//eqpRYxOchXr2D1UZfUkXMlR9FMYZixdEQqAVlqMc4f25wntUrpGklDacjdnDCDzbP/GZvxpaFj02vZeAddiOVEGF/Q2e4q+ITbJmFU+CWt2eNMA+uTnJ0S3KfwhhjwHVUnDXHcITBmMtB21nuzLOttzvClbi3R1vpJf9Zrt5CGYZHLFSZTCHb8j6U8zAH5v1W X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS3PR01MB8426.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(366004)(136003)(376002)(346002)(39860400002)(451199021)(2906002)(38350700002)(38100700002)(6512007)(186003)(2616005)(26005)(6506007)(5660300002)(86362001)(8936002)(8676002)(4744005)(36756003)(478600001)(6486002)(52116002)(4326008)(66476007)(66556008)(66946007)(41300700001)(316002)(110136005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zL6UuIeQfWWNT/Z8haH0l7bLaxOJQMgSbeY9ev5LVtN7Y0ohQmEavxg5Y3SnI5hwVR6XEEXYHK4eHisYBWYKRnt+kMrAwv6y6JPYp+CA85Kbuiv0Oy26OgbhbCKcok1vL0nc9Hl1bTwLeZH1T2DFmv9J0NAsVdrj4dTaiTgzWsYQmGAgg0d9N05TfFAI35pRvrkrBy5+T/TcsEssWvAnnpUCb/OoGLFh9+y9Xe6pujWxngN1cE16NSYxaQBGn1Ti9nBW1ERuxH5zWpfdZm93dMju930PZcQsOaxSjweOIqqxxTuLCo8s2iC6IASQR8VTPnoV9g3m2E+auNVoFuhdwWruzjQQEbwpnmnmExqAdIq6/o/4QxpnSzkYApso3jajMWuhtl83i9+CHDwEea0TEjHTtp24Ji5JYRJWhDiEczs1LrK1aRAdZkyD+xjMO/F6o3JVc3GL5VrbCg+DTgdd+U3CyOamL8jzV8qW+Q5yT6GpjCqHGoLqpMojUIdCazyevIFv58RIeas48uK+2/fp2Afl75sPWR3P6P5KQOEP6iIDsPrtbJ+AgF8aIKwxT3wFO3AuF9IIq2rXWVb9UXzJ6YNsx7inoBtrbd7p/P/JtfFt55VK9MMeYmRkVP3WhTH/EXtFMEVEhJYgC8ixG1TB4RvXUs/C3FabLuwCzkvVymocBG/Y28nex1qezbaHpy1F8oFa5Z6084MVbthWrOjC43SsFVw8Dyp/tERdnxjSIoEhtPZZtXJUer/u7jgWz/kpcKqzqyGrc6IMi5W26eH7Qm1pqdvhdgSI9Ph4DJjEBd4n9uCKVGtGp8omqWvDl2Mt2bEkhvyeNIFzxa3mzx48HS+717TI86acR8Rw+VUFkB7PHnH52wnE+RPUvYl85JYQsL1xoob0k+TsAZtnWp4f7jLfW4Hmx1Mj7Q9jWclFRPdHh1rA91ZbAkigGf+FjdqGJn1QmdQ7m+xnt791GGZjIRIXfkLo6bPowF96M0fVwjCn1lvsGbiGjg2p/9ZJirP7I6V7Ee5tFuPB735PqH7xcNrU3zSyy2lfWsr5ma3vGq4GZ4hulvE/9XpW2pyxBfsL/8X19XaTpSoohok+/7j4rs9rjYWO7IPncZ04WlecpXjPmc3hpK9mdSWVPv+kwo9j/ae1E9ikDzE7OxHUFumHSjpgiOE2id3FiTxWwmvBEDVzssoydXPSfb+7Wn488JQKcxk5+1xnlCV/UAJOJ0cSzzMK+o7/DzAGYxfNPAhHH6gW9o0pWt0ZzlLhftFwYEcT9jwIawPNVRSq/PXFevUQu7BUzricmMs75UJgk9qnosKRCtLnlk5GZTWZ9kiVG1fJ9EkdqQAwYH5Ke7Bix36BPkBLvwtIPnst/sAmGBkHbGKg9XS8Btqb8PxK1sEA3Qs6r64jJ9uJwcgEjqXcg+d0tFWxkhDFPg0huNiQnIkbacXioWvq0mpyaDk93G+eI2ljUyTDjmsR28COLGcjnkjBviK0fLydzIYIDDW7epUGsh26y2cYxhx+bIJNALut51YRIlbOtILI34XFKFFS3ISrXP6//xjPjQ2lV6CrFKt4/Abz1jwKxCCVzfLo3WbHkWkBnlJrI9TYwjb3zrOT3lFjUUGRTtpPujZN1UgZrX6moKQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 741724fd-66e3-4bb0-5b47-08db8bdbe8d3 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2023 00:21:22.5823 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: IflDHJdL+o3HFFFHMDtD1atJE0i4qFvAE8+PY3KkfeU80Wm5mNw7gB51UIbC1YgqqHq+GvmPFh2A75tSY8lfMEk52ug1jrsyFERr1UMw7UtAMUR0At5GeUD/6pGUx6VD X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSRPR01MB11420 Message-ID-Hash: FR473AQK4AN7HUXUCI6DQKKVIVUAQDQF X-Message-ID-Hash: FR473AQK4AN7HUXUCI6DQKKVIVUAQDQF X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Current rsnd is using DAI ID to get own priv data without setting driver->id. It was no problem for Single Component, but will be problem in case of Multi Component, because it is not a DAI serial number. struct snd_soc_dai *snd_soc_register_dai(...) { ... if (dai_drv->id) dai->id = dai_drv->id; else dai->id = component->num_dai; ... } This patch sets driver->id, and get serial number. Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 6a522e6dd85a..f3f17b784025 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -1378,6 +1378,7 @@ static void __rsnd_dai_probe(struct rsnd_priv *priv, drv->name = rdai->name; drv->ops = &rsnd_soc_dai_ops; drv->pcm_new = rsnd_pcm_new; + drv->id = dai_i; io_playback->rdai = rdai; io_capture->rdai = rdai; From patchwork Mon Jul 24 00:21:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13323373 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 78F93C001B0 for ; Mon, 24 Jul 2023 00:28:36 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 938C5DF; Mon, 24 Jul 2023 02:27:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 938C5DF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1690158514; bh=8Su+tqEeeYpVjM3Jc3N/Qb4bDgW4DFXePuZm6cHq+ts=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=fFw8LLmQ6P8bNOBciv+SlzxNT5hobNskfuwlGksr8JOwu71r4v3V0PBUE4mypQV5I VfJu5Me+6MCKb4rOpCvSWRciHX2FemrMjPVZCCdw16fMrgpWUrfAc3aPBJ/+n/nv2J 5IHOcBuWJ99LQaT3JP+xXkJ9jDlLt9q44N+hV+2E= Received: by alsa1.perex.cz (Postfix, from userid 50401) id CEDE3F80153; Mon, 24 Jul 2023 02:27:18 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 15A91F8019B; Mon, 24 Jul 2023 02:27:18 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5B712F80549; Mon, 24 Jul 2023 02:21:47 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20728.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::728]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 983E8F801F5 for ; Mon, 24 Jul 2023 02:21:34 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 983E8F801F5 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=XniQKHCY ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U8GVIfLgI+qQjHleTFA9sCfSslMB/luJ/3scXHHvleyRaK2K7Z7aBNbZFnCuf0XvNwBxSIa/jSdCiRMfG3yxhPz81XTmy1DkIzbJPqvco0P6D6IYS4qKJ+VjalUNR/gR/r6fMxfni3QYzXC7VyjS4NQft01TRMRuB1mlKUB2Irug9oevFLqGF91jgOuPXuXJdWX4CvVVDXzaZylvu5z4WLZjzK3rW4pevrH0BlwcMa5ejIrmfOQcND4WYRw10fRZQCuv5lQYo9ofhB7X514Tge3GAk0u8q5XQq0+vRUeiV6JPUIfWXX3rPYf0QB6L9XuaDKaqvELnNs66qeneT7RFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WhEl3GMfXoWSN/+Hu5gK7wW3vMPVDfdRQW/p01UWKFA=; b=QKDHSkyv78Nd6vzQiAVhzsw/VsPXffwNnJpT07gqBPUftTc2t64gXZWOiF+C8mK+PK3x6tajIvuHEfSuQ1RBz4lxkNWQcix0ZTQQ9Bfef8d/EE0xkvm+aD982tkQ4xxSVW+F8QQmjb9S6MKTjZwE/ALzZa4cLkZS5mhYHZ6WExruPvypPf2w2nV2kVKMB1RE/Gh5FigxET+7jbejTPUJg4N0O+bOmmNtdBDP81xJNP4AxIL4MBVkIzScbV8Epg9dOmObWlkFExwshISwCjg9fT8zQoTsXmJhzSxqwX8ZCRpXtwp9UdX91OW+aN5+Y4wo4ILklLzjcPma9iQcBDxc0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WhEl3GMfXoWSN/+Hu5gK7wW3vMPVDfdRQW/p01UWKFA=; b=XniQKHCYafjwaOQTs9WeK+rq0BYC2O6KFXOe6epB/ixrPvg2KFZ4EuPcXC2S0iwXXKT/OoXXEgB/I/p2DBygjsTOG8daPkLdRWkq3gKxPttRSY2DOq3ViXZCsQUBKx0onsasnZ4/yvlauucAdYweevrNisbIYjWgpC2VVcsxVdc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by OSRPR01MB11420.jpnprd01.prod.outlook.com (2603:1096:604:234::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.32; Mon, 24 Jul 2023 00:21:31 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e6db:c2b4:3f89:e3a5]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e6db:c2b4:3f89:e3a5%3]) with mapi id 15.20.6609.032; Mon, 24 Jul 2023 00:21:31 +0000 Message-ID: <87v8eab1md.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 2/5] ASoC: rsnd: cleanup rsnd_dai_of_node() User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 To: Mark Brown , Krzysztof Kozlowski , Rob Herring Cc: Linux-ALSA , devicetree@vger.kernel.org In-Reply-To: <87y1j6b1ne.wl-kuninori.morimoto.gx@renesas.com> References: <87y1j6b1ne.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 24 Jul 2023 00:21:31 +0000 X-ClientProxiedBy: TYCP301CA0058.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:384::7) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|OSRPR01MB11420:EE_ X-MS-Office365-Filtering-Correlation-Id: 2bae53b3-bc3c-4d1d-1869-08db8bdbee22 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: T3qR2jZbjEmhqPQRSHneWrAS21yuGrIkCOC/KL9JY+GIEtg1Q/0m9Aym4ONhMaN04iyYeFoKj2CP/DOFt60v9dWL3d14B6lS4devRK1abSw/66DbTkN+HgChiRYFMFXx2JMzeaSPiFMZN6+4Xq1bJMVjzVGL935TQyvAfXfwuIqCWX8iar/8qPWH6jA4bhSb2v++F90EXhQ12DXGK/h5+dZF84zGPKikcwEFrP4Z9VbcOfLGPWmlzOhDuNTa8yYMLNOaF+N8h8FUYKovXeuMmVm1wASjz5awIKqFYd3345e8QQLCXFPXCTWZFwJ6ZJkrSxiJ/4Y1Pzve/zUB2NsSI/t1FJvHcEdSua495YN2b0BFc5U6kvrZaXgR/sLAzkrORW90OCZiijzxwf2HDoO/ReEHIFxNW4Ojw3V9LoopoBrYJhJtU6QeV3kdHZBYBUGZ/MAxMfsf1LMoSyt8ccasSqGqjRZq/jWMu5JNlIto9Yn56zsD9B11XC6YVyXShMd89DcyKiIV+RyHKd1eUa4hfdfUS/v90w1C+YOv5DdT1BZ7WhCStOHb+cZMSvvKA0G9pJ+NPrhiz+eOdrFV4jTAhwokolV4WbO1Kz34E+37DlyhjtG/KhhIG3v0j6Eol+tC X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS3PR01MB8426.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(366004)(136003)(376002)(346002)(39860400002)(451199021)(2906002)(38350700002)(38100700002)(6512007)(83380400001)(186003)(2616005)(26005)(6506007)(5660300002)(86362001)(8936002)(8676002)(36756003)(478600001)(6486002)(52116002)(4326008)(66476007)(66556008)(66946007)(41300700001)(316002)(110136005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: b3PJA76M9dm7RwdPuUYWzbtZvlWwdE8oJt7fUrwIAlaDciV44lXSz/h+LAL+p/3Sh06IBkFRbRcxlmlbaODaM4xmYoQZDXK6aZP4HyvHHmmxbMEmP6Z+93INowQhOWwnBeVRgxsQjtb611hHH/a92QTqdhmJom/Afzhe8og/WezGAkVfKeSlFM9x0PFvwmazXAWu78b/S2HWJe1grHD5koIl03fLFQnMwLqUOeKcTC94/cTH5KtOwI8Z8XyNI/4nH4rAZ42oAAk25ya8CaFWVS77uwyh6187ePgPExQ6JQk0MNV+jGt7R1pk0QJ+6+UNLg14uRtjUI0fcZahShjzfMbYAlmgru93VtOC1fbyN1wMGf2erKp8sScdv5fSUE5thfWr/AK9JFi1nNI6J3vtMlA/hstiiXckQ8iAKYkA7N7l6mVsOb0g3OYgxqig5x9ktRllmdnyPKwkWd7OXzyjcialBGdTIfPrg2CAUwLwpxB5/kB/0SDYjFr20Q/ntyW7DZTIkaBYDJbH1sELh9v58zZHtJdn1aVzo57j9jivn+2OqDa7qo90r3ghvCCSOJ5hWv2cLlUkm2priZmDkT/hXAmW8jE2wJx5rBll53u1dFIk8wS20fq1OR5AVjKeew2eb4ReRJSbpWQoeprf3KFuYnRhBKh9pPGFP/LxReCd8ooZs1Nkb6BBxq8m8KQjbc0RoLenSXvcpDFgbPVPjvEtAQrhv2OH+iOt/wAAXql6gQ3BHABvYAqKNU8WDuU8l3i9HlOJKgXkQbRrUfsXv1DCG9Ff7EJbZx//0bzFQkBhxkI1WYxtPlXIbZNo/SC+8VoHIx85u/61H+/BnJIIYqsGQyviCzg/7U2CN9DYuC7zG04FoPvPB8p2VFopIDHjrjV8hk8yCthez9nsRU7Ac2e8ajm4ZHfmWDZWd6DQ/z4I/iQrQjHVYRTZrBLYEaPeESdJoEK7dhWcoT7BeJmtAVhggGZBOL5Ulrz8/NGBooKvPRGDBze8mVMyHHZa+tpA0zxutyPMEonz0QYgbF9lSqYz2YBgX2ZMit4VEeJwy93JbSmyvWL/rw+8Y3d6aV/eInWC19B0NpDz9ciuuG1eC6Z0JT4S8f3Yib4+qvBMqNAt/KkvlQyP4d4gCw3/7ZWCk1IdkiMchIak6chekZCwqwTz1S4+fwmVfo1LC850hr9car811d5d7EG3kekQJ1mm2QkmyEEyJBNcZWVRF+gDMOwvM5JinPZGZGfN4ROj0MWmJXWHkPhKNj+VVq9/eoV11EzejZ9ckuDpQHVstH5/TIiSG/N8p4QG8s5J4h+Ckr/OVWvkUPLoJZONFeuSDoodnz7ocPmvfJk1tckRw3Hy/yq/Zt5AI5WpHhP9QBMqVyou9bQ3jPAWMaLG+X2BIe1KkJdRYhOrLfAJ7oUalajrnskMZjQgjh03eK21j7VI64t2RCSzF+kVqAu8OGIqXbyYDQ+YP/C5HknX8+igwBICdguatEsQ2DiLB7edBiEV45tSSpR/sTK8BGwp/d6lVp34Xx4Tq2fRtxOR+V1MvpMfL6aj5ES/rCfgXVPRQCIsXbsrvx1HjDYmgwpNjxdacX1ri5dp/8rkZE6zmtvjZ6KZ3ofSJiPmC259CD9G1BMocd11j74= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2bae53b3-bc3c-4d1d-1869-08db8bdbee22 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2023 00:21:31.3242 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KTJVCoyIduk0759lcT7nhnrlfcZsAswb7xa+CsiHGnQND6njMSjvcPFyehELJWVk3H+AK4ednRJtwlRvr5RCtzGbHCWVzYriXHG2xFDA7QySHqEEeYr8PEFcNY8Gvw9N X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSRPR01MB11420 Message-ID-Hash: B2HBQCDM74TGBSEQRKE6Q4CFKPQFMOIA X-Message-ID-Hash: B2HBQCDM74TGBSEQRKE6Q4CFKPQFMOIA X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: It calls rsnd_dai_of_node() to know it was called from Audio Graph Card/Card2, or from Simple Audio Card. And after that, it gets number of related DAIs. To be more simple code, this patch merges these. This is prepare for multi Component support. Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/core.c | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index f3f17b784025..a87d7fa55f7b 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -1261,7 +1261,7 @@ int rsnd_node_count(struct rsnd_priv *priv, struct device_node *node, char *name } static struct device_node *rsnd_dai_of_node(struct rsnd_priv *priv, - int *is_graph) + int *nr, int *is_graph) { struct device *dev = rsnd_priv_to_dev(priv); struct device_node *np = dev->of_node; @@ -1274,22 +1274,30 @@ static struct device_node *rsnd_dai_of_node(struct rsnd_priv *priv, * parse both previous dai (= rcar_sound,dai), and * graph dai (= ports/port) */ + + /* + * Simple-Card + */ dai_node = of_get_child_by_name(np, RSND_NODE_DAI); if (dai_node) { + *nr = of_get_child_count(dai_node); ret = dai_node; goto of_node_compatible; } - ret = np; - + /* + * Audio-Graph-Card + */ dai_node = of_graph_get_next_endpoint(np, NULL); - if (dai_node) - goto of_node_graph; + if (dai_node) { + *nr = of_graph_get_endpoint_count(np); + *is_graph = 1; + ret = np; + goto of_node_compatible; + } return NULL; -of_node_graph: - *is_graph = 1; of_node_compatible: of_node_put(dai_node); @@ -1447,16 +1455,11 @@ static int rsnd_dai_probe(struct rsnd_priv *priv) struct snd_soc_dai_driver *rdrv; struct device *dev = rsnd_priv_to_dev(priv); struct rsnd_dai *rdai; - int nr; + int nr = 0; int is_graph; int dai_i; - dai_node = rsnd_dai_of_node(priv, &is_graph); - if (is_graph) - nr = of_graph_get_endpoint_count(dai_node); - else - nr = of_get_child_count(dai_node); - + dai_node = rsnd_dai_of_node(priv, &nr, &is_graph); if (!nr) return -EINVAL; From patchwork Mon Jul 24 00:21:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13323375 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CB981C001B0 for ; Mon, 24 Jul 2023 00:29:24 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id ABECA203; Mon, 24 Jul 2023 02:28:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz ABECA203 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1690158562; bh=JjE34Jd2But6De2FMN0iOxyj89atp8EwfCke625edjo=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ClyQZjuE6Xnda64tOmimmRlLhZenerv6XIYOQ48bxo5uDJLTF5ooqs/UtdwBlzQgf p/VmHkLFVQeVS/ghfdjDPVXpEIAshXJRIfuRLcywlB0II3TJVi9dexzxJfsLzvNmcQ qjZhlYJ64i19j3UjnzlJ7tTWjN8NN/z4PhTqp9k4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 82346F8057B; Mon, 24 Jul 2023 02:27:25 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 58F4BF80558; Mon, 24 Jul 2023 02:27:24 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5086BF80548; Mon, 24 Jul 2023 02:22:11 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2072d.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::72d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 78A95F80544 for ; Mon, 24 Jul 2023 02:21:46 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 78A95F80544 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=NkQAllte ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eLtXj9Xkoxw4upLB1fez+x1E7xXG910MJ7hGs4+gLMPK7akHluNdwTQhilabXFPQZ4/APV3DHAkmLFdQCb8Eed/NdqQlwosWnGFAdRV+U/9gyNKWC0rZZKy7LnMgGhRuTfCUxSBCeZNs06FOsU6N7Kplhu8HBm8xlb54be2qdNAED6R+LHTgx/mvv+FucpU+m2qShIe1QCP3YI0VYL6TWyBN5ONEiftQKBT6qQNjRc2ySCJ370e0QTboeehOFVxSYBFdPtdH1i57ggUMoJy/yQPPSg43Bpvn9mlx+AKLyCbVg6Q7L6T92CWdo5wnyd6fK7DDMsuL9YOzAAUKW5+F6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5XTRKCPjGgjyDxCAyPvubwyCywfxoXn/giWNhRXQ+/E=; b=D7cnWNxyKkleVbYteCwiJi/XVL9SgAmJLl5tBhm0/FBj5ZbFVz3PQCVL1ZCPYoZNBIASEUFmnXMgi3nzCkEJrcfZ/V0260OiLyj+hEOKWksm88k7zTuNvEO1QG+oO8BtlU9R3tf5cPtDGrevKigWjdu+YBecDqRy8ToRM0sC+/YhqanwS0Q/cd095r4wpwtfD5YiLRMI3rBYZek8kLuak31e/EYx/n3t1nSAxNTIthjanfDVee5kHxE3vic/K/ZE7R02d7Ffw9XtKMnzRk+vmhBoDkW5bYmV2n6Xm797dj43KHDl1+XL4XfSOMKdnaJYrIbCvIItjcfBupbGTyjVLg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5XTRKCPjGgjyDxCAyPvubwyCywfxoXn/giWNhRXQ+/E=; b=NkQAlltew+YGpYHqmQUXwxqxictexMmWx+8yqdlsHKdr5/RXhB49XG8fLdt2YthjJuksgqL5CIHrrPF4K1tZd+pB3BvOw5XXZ8BHzelOI0DB0W06D1cSzvd6fRN83XMKuAnjSerMusSHWZYyT8IPYqQ4zvMmH+Lr2Tnib1TFMps= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by OSRPR01MB11420.jpnprd01.prod.outlook.com (2603:1096:604:234::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.32; Mon, 24 Jul 2023 00:21:40 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e6db:c2b4:3f89:e3a5]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e6db:c2b4:3f89:e3a5%3]) with mapi id 15.20.6609.032; Mon, 24 Jul 2023 00:21:40 +0000 Message-ID: <87tttub1m4.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 3/5] ASoC: rsnd: enable multi Component support for Audio Graph Card/Card2 User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 To: Mark Brown , Krzysztof Kozlowski , Rob Herring Cc: Linux-ALSA , devicetree@vger.kernel.org In-Reply-To: <87y1j6b1ne.wl-kuninori.morimoto.gx@renesas.com> References: <87y1j6b1ne.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 24 Jul 2023 00:21:39 +0000 X-ClientProxiedBy: TYAPR03CA0024.apcprd03.prod.outlook.com (2603:1096:404:14::36) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|OSRPR01MB11420:EE_ X-MS-Office365-Filtering-Correlation-Id: 4da539f1-2bd3-4a2e-9cdb-08db8bdbf356 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0SjccH+LTBbh3/xfdxM/byxoajawsuQbF/cxUo0tGMJ+q0FwRAb34mjZxW76EWEGPLObeNfdb8oKZKcBdjDz1nkQOHf89W+9qXoay+YyMc8KG1JEusgCRbijhahYnStQ8nnLuPn4Sbm/xes+JpRV6ImzjSkLSq0fZAtd581kQFls8IQ2omIvUXOyB5DX09I1osPsiGIm+1MmUD5rcqovWtb/N6BIg7r8VqR04nB89xxz8XGrQHD+v1bUlutbjpsrFENUk9V2PNrgwJrMTHt2CNwWK3CMjrIjAQ9twdjS/6h/qwqXGnc7u99w7CoJ/Cd9dDgfryP8uwVqdYZ3cWDNTO4O2OgQxfk7QV+cpZ8WK2uI4V74TrdNyl3gejMwEufz38awxh9tn5BbhfYE+G4qjCKmTgjnqssObdUmxOx7mTu5jnebZdMlHpDf/guYteRN6sGaLlxVcP+C/kvJkxSeVdlWYkHQ23meaQSLFRuRlahEoyuWKitf99jiAL40cDCjjNf1ab1PK6yPK1mHUTc9qBsuCI83gPWHgsWirmSO8pkMaEC/x1SarLHoCY6f4Wvhvk9taUosVcpp6vy/jMQUUAFpjHcy6F/8sxNEfU8ldU1FQ+qLVcJafhd6fhP8zuL+ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS3PR01MB8426.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(366004)(136003)(376002)(346002)(39860400002)(451199021)(2906002)(38350700002)(38100700002)(6512007)(83380400001)(186003)(2616005)(26005)(6506007)(5660300002)(86362001)(8936002)(8676002)(36756003)(478600001)(6486002)(52116002)(4326008)(66476007)(66556008)(66946007)(41300700001)(316002)(110136005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tKRu/DeOBQ6jIV0f0UoPJ72cBwh6Uf5Hq2Ya7gk7Bke8ehot4ctp+/3Sfhz3iONMMv/DXe+8pnUEwMa0IWuo+gJw1Ddx5yjYPuYe4k3V5fzhnBrYIRbgERqMcz2HyBWLTF0RLBDK9nPxC3lyISZfecAx6P9WQN9VZF2MBIOyNezsiQ/7N0vwmvlO5UFvMzArH+4bUEH2SkN0wenHt+63M/TFZ66uldehI3JDSiWdpPGpPDYbTEgg9U8ARqtmBkTNNvvTlrYsgBcYzNOlqNvCh11W3i1M9q2Jed/LHS0KgbmDiUB0A0jEyqfCdW6TzZF818f1qNjWESLK5IG/T5VzRlMQzTD8eqEbiA2LBT5SnuFWa8hZdzxac/D0zWXfOKto61+kdoJp8DrKS6ZbYagn4oAE2+7yvghuCcsrEXGOYqfMUYvEkCR4ug5lTB4Z5A4zIwvGPQmFQOwZulbowinFtIJjljkRmgqeBeVb4uHQO/hnrEO/7ad+Y1iLroS5n7LpMgW1OcoiGXTkTs31WoYz+Gnb9MZwnag4zv7bXfZl5H2ye8XKDUQ5ocEXXCvHJm/typAvkYJlkn5/vYVELmwGZwOGhUeaGHJuhgz7JXCzqv8KEdfOAVRohGRrjnMeYINKE1jY9pa16UEljEvWE4XdwMCHxjJcCHOviMf2O9a626HrHgBIA9ZfNQIlwvX5P+VFov2+ffqocNNM94zppzM5YA+xdQk2kRXmBWwnl4HZvlCecCNlhoyIJif2Ngduhhh5ddpLyBpYbUPfe7k0xwkSnUOhU39AeGOsYKvAcDfoq757VNlM1HtbGRKVYW2Oafpu/HKk17dgfVSEvhv8+yO2DGKqx7kuxLxpsiy2RzMznyoWO53rks5jI4r16ArpQuekkH1IVTFPSo5/ruhgC+SUaSM1zBMix94RRDByn78gYr3/rC9ox/JKSalpW2YucEDcH5X096Ca5EZwYBWuVWAT3tAVVdt7LcirD9RZ5WYh1rk8Yc/xlTYVVeK8Mf5WIcn1b5K8fPav7FyKaXQY4UFRhicrFplCAzRklu13Y7bDlR/LidzTlAY6SppkKyKNyQEHcV9nfDulq8lF44jWCuaGjgLxzc19QOdTML7FKmSkGnlW1uLkKJLhoVQHsTMD/tSZ99s0P6bOnvkWW2G1HF6PSTd9FiNhGn8bvnWr0tOAZYaTPKpyleopnbr82hFNC2WKtTfuCkm+wKiZ7eBYjK6VfC6BFjXOyvMTBvLhByoC8pcqiZZzUB33xZ777MdNXZ51MudTt4ekGWbygQmvhslff0CTK5Qf0xkl2ZINS+yl+svrOZrOAJwTw92kGFUTugD3mRgp7XVhFoWoFJFLTE/v2yNJKYNPBzwFY6oRQx0SSvSBINxhYuOkJ5Vqd2LdMfZqvQl8TRzpMcyXOs3BD0DOoTsCWKvQuSMmbpz20iLmOhg95hOahKLtDL2pXSdl1iqKUrEORY+zcZzf0E4C9IScb6k4zPMMqcieTWvCqDXmxIOdkLzlK5kz/S2e0m0yD7aDut3vtbsE3Fa1Oqn30Dnka4j5eHszsgqnaceyWvPX7zQ2mYSTfNZrKzmGWzOSedrfwcDf3+2PQ0oL2qDnrtuqI+ssKhhWaCQ2fsXBeh7FYek= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4da539f1-2bd3-4a2e-9cdb-08db8bdbf356 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2023 00:21:40.1351 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HaGehMQfDIzGqrd49vzDQrt8WCCO2puX8zLHugQI3loXs1f0OX3GQeN35MNhkavVBPuthgm2q/eBuIl/fF1zql3/1k+6buDe1SBPPCwbL8TrNPfdaJ+6SR4zQzz8DnLo X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSRPR01MB11420 Message-ID-Hash: JPINRXDFINF7SBCTVJMOENNKOLFUJPM2 X-Message-ID-Hash: JPINRXDFINF7SBCTVJMOENNKOLFUJPM2 X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: +-- Basic Board ---------+ |+--------+ +------+| || CPU ch0| <--> |CodecA|| || ch1| <-+ +------+| |+--------+ | | +-------------|----------+ +-- expansion board -----+ | | +------+| | +->|CodecB|| | +------+| +------------------------+ In above HW connection case, we intuitively think we want to handle these as "2 Sound Cards". card0,0: CPU-ch0 - CodecA card1,0: CPU-ch1 - CodecB But, we needed to handle it as "1 big Sound Card", because of Component vs Card limitation. card0,0: CPU-ch0 - CodecA card0,1: CPU-ch1 - CodecB This patch enables multi Component to handle multi Cards. To support it, it needs - Fill dai_args for each DAI on snd_soc_dai_driver - Parse DT for each Component (Simple Card/Audio Graph Card) Ex) Simple Card rcar_sound { ... /* Component0 */ rcar_sound,dai@0 { ... }; /* Component1 */ rcar_sound,dai@1 { ... }; }; Ex) Audio Graph Card/Card2 rcar_sound { /* Component0 */ ports@0 { ... }; /* Component1 */ ports@1 { ... }; }; Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/core.c | 134 ++++++++++++++++++++++++++------------- sound/soc/sh/rcar/rsnd.h | 4 ++ 2 files changed, 95 insertions(+), 43 deletions(-) diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index a87d7fa55f7b..9f3d97bc177a 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -1260,13 +1260,13 @@ int rsnd_node_count(struct rsnd_priv *priv, struct device_node *node, char *name return i; } -static struct device_node *rsnd_dai_of_node(struct rsnd_priv *priv, - int *nr, int *is_graph) +static int rsnd_dai_of_node(struct rsnd_priv *priv, int *is_graph) { struct device *dev = rsnd_priv_to_dev(priv); struct device_node *np = dev->of_node; - struct device_node *dai_node; - struct device_node *ret; + struct device_node *ports, *node; + int nr = 0; + int i = 0; *is_graph = 0; @@ -1278,30 +1278,47 @@ static struct device_node *rsnd_dai_of_node(struct rsnd_priv *priv, /* * Simple-Card */ - dai_node = of_get_child_by_name(np, RSND_NODE_DAI); - if (dai_node) { - *nr = of_get_child_count(dai_node); - ret = dai_node; - goto of_node_compatible; + node = of_get_child_by_name(np, RSND_NODE_DAI); + if (!node) + goto audio_graph; + + of_node_put(node); + + for_each_child_of_node(np, node) { + if (!of_node_name_eq(node, RSND_NODE_DAI)) + continue; + + priv->component_dais[i] = of_get_child_count(node); + nr += priv->component_dais[i]; + i++; + if (i >= RSND_MAX_COMPONENT) { + dev_info(dev, "reach to max component\n"); + break; + } } + return nr; + +audio_graph: /* * Audio-Graph-Card */ - dai_node = of_graph_get_next_endpoint(np, NULL); - if (dai_node) { - *nr = of_graph_get_endpoint_count(np); - *is_graph = 1; - ret = np; - goto of_node_compatible; + for_each_child_of_node(np, ports) { + if (!of_node_name_eq(ports, "ports") && + !of_node_name_eq(ports, "port")) + continue; + priv->component_dais[i] = of_graph_get_endpoint_count(ports); + nr += priv->component_dais[i]; + i++; + if (i >= RSND_MAX_COMPONENT) { + dev_info(dev, "reach to max component\n"); + break; + } } - return NULL; - -of_node_compatible: - of_node_put(dai_node); + *is_graph = 1; - return ret; + return nr; } @@ -1365,6 +1382,8 @@ static int rsnd_pcm_new(struct snd_soc_pcm_runtime *rtd, static void __rsnd_dai_probe(struct rsnd_priv *priv, struct device_node *dai_np, + struct device_node *node_np, + uint32_t node_arg, int dai_i) { struct rsnd_dai_stream *io_playback; @@ -1382,11 +1401,17 @@ static void __rsnd_dai_probe(struct rsnd_priv *priv, snprintf(rdai->name, RSND_DAI_NAME_SIZE, "rsnd-dai.%d", dai_i); + /* for multi Component */ + rdai->dai_args.np = node_np; + rdai->dai_args.args_count = 1; + rdai->dai_args.args[0] = node_arg; + rdai->priv = priv; drv->name = rdai->name; drv->ops = &rsnd_soc_dai_ops; drv->pcm_new = rsnd_pcm_new; drv->id = dai_i; + drv->dai_args = &rdai->dai_args; io_playback->rdai = rdai; io_capture->rdai = rdai; @@ -1450,16 +1475,15 @@ static void __rsnd_dai_probe(struct rsnd_priv *priv, static int rsnd_dai_probe(struct rsnd_priv *priv) { - struct device_node *dai_node; - struct device_node *dai_np; struct snd_soc_dai_driver *rdrv; struct device *dev = rsnd_priv_to_dev(priv); + struct device_node *np = dev->of_node; struct rsnd_dai *rdai; int nr = 0; int is_graph; int dai_i; - dai_node = rsnd_dai_of_node(priv, &nr, &is_graph); + nr = rsnd_dai_of_node(priv, &is_graph); if (!nr) return -EINVAL; @@ -1477,26 +1501,42 @@ static int rsnd_dai_probe(struct rsnd_priv *priv) */ dai_i = 0; if (is_graph) { - for_each_endpoint_of_node(dai_node, dai_np) { - __rsnd_dai_probe(priv, dai_np, dai_i); - if (rsnd_is_gen3(priv) || rsnd_is_gen4(priv)) { - rdai = rsnd_rdai_get(priv, dai_i); - - rsnd_parse_connect_graph(priv, &rdai->playback, dai_np); - rsnd_parse_connect_graph(priv, &rdai->capture, dai_np); + struct device_node *ports; + struct device_node *dai_np; + + for_each_child_of_node(np, ports) { + if (!of_node_name_eq(ports, "ports") && + !of_node_name_eq(ports, "port")) + continue; + for_each_endpoint_of_node(ports, dai_np) { + __rsnd_dai_probe(priv, dai_np, dai_np, 0, dai_i); + if (rsnd_is_gen3(priv) || rsnd_is_gen4(priv)) { + rdai = rsnd_rdai_get(priv, dai_i); + + rsnd_parse_connect_graph(priv, &rdai->playback, dai_np); + rsnd_parse_connect_graph(priv, &rdai->capture, dai_np); + } + dai_i++; } - dai_i++; } } else { - for_each_child_of_node(dai_node, dai_np) { - __rsnd_dai_probe(priv, dai_np, dai_i); - if (rsnd_is_gen3(priv) || rsnd_is_gen4(priv)) { - rdai = rsnd_rdai_get(priv, dai_i); + struct device_node *node; + struct device_node *dai_np; + + for_each_child_of_node(np, node) { + if (!of_node_name_eq(node, RSND_NODE_DAI)) + continue; - rsnd_parse_connect_simple(priv, &rdai->playback, dai_np); - rsnd_parse_connect_simple(priv, &rdai->capture, dai_np); + for_each_child_of_node(node, dai_np) { + __rsnd_dai_probe(priv, dai_np, np, dai_i, dai_i); + if (rsnd_is_gen3(priv) || rsnd_is_gen4(priv)) { + rdai = rsnd_rdai_get(priv, dai_i); + + rsnd_parse_connect_simple(priv, &rdai->playback, dai_np); + rsnd_parse_connect_simple(priv, &rdai->capture, dai_np); + } + dai_i++; } - dai_i++; } } @@ -1926,6 +1966,7 @@ static int rsnd_probe(struct platform_device *pdev) rsnd_dai_probe, }; int ret, i; + int ci; /* * init priv data @@ -1962,11 +2003,18 @@ static int rsnd_probe(struct platform_device *pdev) /* * asoc register */ - ret = devm_snd_soc_register_component(dev, &rsnd_soc_component, - priv->daidrv, rsnd_rdai_nr(priv)); - if (ret < 0) { - dev_err(dev, "cannot snd dai register\n"); - goto exit_snd_probe; + ci = 0; + for (i = 0; priv->component_dais[i] > 0; i++) { + int nr = priv->component_dais[i]; + + ret = devm_snd_soc_register_component(dev, &rsnd_soc_component, + priv->daidrv + ci, nr); + if (ret < 0) { + dev_err(dev, "cannot snd component register\n"); + goto exit_snd_probe; + } + + ci += nr; } pm_runtime_enable(dev); diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index 239705d52517..43c0d675cc34 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h @@ -545,6 +545,7 @@ struct rsnd_dai { struct rsnd_dai_stream capture; struct rsnd_priv *priv; struct snd_pcm_hw_constraint_list constraint; + struct of_phandle_args dai_args; int max_channels; /* 2ch - 16ch */ int ssi_lane; /* 1lane - 4lane */ @@ -702,6 +703,9 @@ struct rsnd_priv { struct snd_soc_dai_driver *daidrv; struct rsnd_dai *rdai; int rdai_nr; + +#define RSND_MAX_COMPONENT 3 + int component_dais[RSND_MAX_COMPONENT]; }; #define rsnd_priv_to_pdev(priv) ((priv)->pdev) From patchwork Mon Jul 24 00:21:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13323377 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADF67C001DE for ; Mon, 24 Jul 2023 00:29:53 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D6B98201; Mon, 24 Jul 2023 02:29:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D6B98201 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1690158591; bh=fgIV9kTbkxCGTsMs/ElRg2JMf6gq7+7Pk0+9qbKqqW8=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Z/lqAw4IjbBHwo+IHrq++cQShOTT/miqGGaAeKWIuW3jVtSf74hGJqIFPiK7lUV35 m12XL9YZybGzv7QyuHxhVPdkTbBK4bt0ZYYczDhheiTLXOelg6kWMN3hj75lMw5dEL hGwU4EE/fGoh2GhlOlJHpYavdzmleTELLdgyrq5Q= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 783E7F8059F; Mon, 24 Jul 2023 02:27:27 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 65EC0F8057E; Mon, 24 Jul 2023 02:27:26 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6B340F800D2; Mon, 24 Jul 2023 02:22:23 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20706.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::706]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 2B136F8019B for ; Mon, 24 Jul 2023 02:22:04 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2B136F8019B Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=AvXIexof ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lCTWq4pJJF9f8yBOFuYm4O2WCjDcRadRywi2mFvsNEdUjEquk5BHXrJwwFuBR8cvdHDCWTDNGdQJaZB7MSYFT+KMwlIBRxcxt/WlLATGBl1LqOje53HEohCnRCOJsvlE+PDLL3U72da+x3BzP/5KxGRXhZVv3MKWPjaLP3ilKOZh7DbPD+/4vN4DL9+CCdq1lBc0laRlNOLi3DgS6J0t1u7yrh/+4SEBE4zfarKqunnbA40W50/9vmqtO/We4T7Kog+bNdSj4G/mmWJm/QvJ55EwyBGeRomkL6Y3k7saUrrg7HKiW7bfL7N8P6g1mZxW7E3CarVV8cQJ/R5anNhLUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=osE7+rHcFpL8iDZlKbNPdvvxY/980NiUFS0BABMvcuw=; b=Upb+Om31toUmmym7qU9hcVxNZpUN5yH4c46Vn5SPPs5T5V5gVokQcI1juPaT4oHndyml5NOyMPZRWJKU+bxr+Wjf2k7JQ8e8Er6kzfJ7YbGy9YT7GF61KmZyCCQY5UflU/chcMzKl4r9mzNNz6D0PTjpKhchZRfp8/3vfYhSNZPMK5J1jDPhI3unMJ8Hvji4M9EEP1K3NYxLiwMxLTgLGLdL/d7GcfA8WeA11M/c3xGjnpYeCgOBKlRapMDofHM6eOTm6wOlw3EoiH12PDkJMNPl755R9Kq7EOHTbYy3lcI6mn1mKnovtzidOrLT/pg6QWjk+VLSgzTYErQqip8XkA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=osE7+rHcFpL8iDZlKbNPdvvxY/980NiUFS0BABMvcuw=; b=AvXIexofEXW0m3Qv8n57PXn2Yrg079gT14eH3CizoV2LhJZ8tUZ/4M/ByWPF0OYQxQj/5qWwYa8WsPMI7SIqlBILXW6ETFc6NUTRrpFg+5Hq1PoJT//dMzvtdgBYZUvTV1xp1YAU4wXBTqFicHWjZvepwa0a2oGa9pdaJPkhtlA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by OSRPR01MB11420.jpnprd01.prod.outlook.com (2603:1096:604:234::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.32; Mon, 24 Jul 2023 00:21:57 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e6db:c2b4:3f89:e3a5]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e6db:c2b4:3f89:e3a5%3]) with mapi id 15.20.6609.032; Mon, 24 Jul 2023 00:21:57 +0000 Message-ID: <87sf9eb1ln.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 4/5] ASoC: dt-bindings: renesas,rsnd.yaml: add common port-def User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 To: Mark Brown , Krzysztof Kozlowski , Rob Herring Cc: Linux-ALSA , devicetree@vger.kernel.org In-Reply-To: <87y1j6b1ne.wl-kuninori.morimoto.gx@renesas.com> References: <87y1j6b1ne.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 24 Jul 2023 00:21:56 +0000 X-ClientProxiedBy: TYCPR01CA0136.jpnprd01.prod.outlook.com (2603:1096:400:2b7::6) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|OSRPR01MB11420:EE_ X-MS-Office365-Filtering-Correlation-Id: b4055512-2962-4cee-01a1-08db8bdbfd33 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /Yzf50EfqGSFh3lpogs69v6/T/GBPiY98a6vnzOgOnmp8Rg1fytjjY83MIVSZR76POkJWOlkXn89f/Ir/1byv1yijiEvV4pxSg+M2Y+wlsGZoPvW+t79GZfzzgQm/XxK4FH67MIfH0z+dBkgvbWiIHugzrgGiraYaeCIjl0isbBk06hsTY0zWN2QRGeRjO+UnJLuSoPbFayPdPZzpqGDuWx6PKsabMSiJwvHdXhoCRwsHwnx2s2qfVZm4Z2WLxND7k4rItG+pwFB1RxSlad2zgivUFW9g9oQyWCwJOUbBpQG1NKPGMlbtOXBUEYyNxXS7FveV/iuzCAoAcEXgueeJ9geTfKGZCAGDo6FW+wIUVlnOmo8UzrAWqBZYzo75L1n5z12ZeWLHc+e4KDnPGJAO2CqBTROdDFVi6ppAIhOHCfwjNfPFlokhJPGedDlbQ81oquLxyW9L421Bus4ntDHGWzPllqEQuXapzB0NhiHkqssxz/tqiEYM00cMk1Xn/y07e1C7jz1jW5Zq33x5n/i0IqGr3Gzc9mLGOV7F3yXS7/cShHDhwl2MYSSqpkEKf31SU2TjGugFk0FtNLqUlkvhL+bhCMTQLrpSVC+XlUw2skbsi5emtYVLxIQSXoDdbxt X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS3PR01MB8426.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(366004)(136003)(376002)(346002)(39860400002)(451199021)(2906002)(38350700002)(38100700002)(6512007)(83380400001)(186003)(2616005)(26005)(6506007)(5660300002)(86362001)(8936002)(8676002)(36756003)(478600001)(6486002)(52116002)(4326008)(66476007)(66556008)(66946007)(41300700001)(316002)(110136005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: pYXIsQdhBbKlndfJ7EDTZzYjsOORlrUQbZRVeuB+66wtZhLel1MAqiFA6Q/GzvyqLdK0rzPhx92rjhQGnnDcanzqDo84wnpKXmRwdWWKpJdUa0Gyiy/709GlCcjiDrEUhMg5LMMFe56Ld444hhry9d2M5FaqnhTTzMEO5HgJACD/8rNxIVciISAZERrBRi36km5fVcM134dwfBoNx3l/HJrEY7khyjVTXOVUyTTIdMy/OYaocrOA5Z4gIrGC1E3rwzaINIhgqTB+VthPkU/6++sF508WNgri730CUx49f4jXO0RpP9GvIG/Mk6WlVizu/IDsJxIzW3A8AvxNQccaHP1rY9YhEpREJ9SKQPJ4oOgylAJ4I6pUzttMtTRUnllXJlf3m32KGsL2rxIYPr6Sqkhwx9XHGMdxItfNXi2kIOJpSlvrasBTU7dQNB9cmzeyRpdT9RVDho6ufGIBJdaGUuL+z/u/XZzQoIOdaLUSP21qtrCf23GM4QLKgmbleP5XEQZxxxG+VnmkxYBaJRX4jCg7jDQLId+rzx2CcoK8vWOYSLalN4fIplpQhx9j9j+TugSGZjRbV9Iuqg3ezxkvwRqhfTouMDMUZHBfHfCNV4GeEv7ohuMOGiYoYCK5IzG0e3sjLD5FaYtLGv1gHoacX4hQ5EIctbIE14Hwaf6rxOGWUSTDVv67U60hwImo0z49vjpFw4SvF84FPLFCSPDO3Sj7RpV3XIAbdIuPwoAsf7opiBJ/ZeJZyWMWbdkEcvYXCKI8mhIcHtj2vxgMMZHVsLmy9rYEveKPftpIRHz3g9p5QIBO+ql6JVdrdlc+vhrEKvkbMRHT7Me0gCa7v3JkQSZz1v7LfEODX1HQ1oOQrACjzW0XntHDsgNiWmUscklPjsD9Odp2yd5gIRG8ER29T90oHI9JINEDJBfzUb0m87+yk+ApQtbGylBanUQPa83HnHC6RxeWddJnMyMIlmTGGkPaAehFUpPAlei7y8FKSayU5BHiKIY2p0gGncrLrZ5eXQY8MWCl9ax39gSg6JSMiTMbHgZ4RtdfolwA1/vArYhtrAaM3NCzMfEsd/3gg1yIjaqG3XsBBv66eVi7rVwSxQGvG6eQDj/hkIUkIAe8GEM8k20QFUhFUvuYINA9eVjWVYlTCdnssbOiSiGkZMsHhqKTqf2cpyp/x7vxcEtCWaYseJU+eVLExtohSan44eSRUq6obnK5GB6CyPjDGO6A+f5r3mAUih8Q3Yd9DFcEP7LpkpCrpS7kTM2u4GCRoQUZIC9c+wOnwdkPvZpu/XyoD6mMWS8FPjJOUFvM5DsawpJu1V+Ne0Zq00Yz3s4gEW4ROSWDJFnn1hXXO5ClBe0IORRvWnZpDaSHeuXa3ZADN64Asr4YNpJw+Iq8qdZz10NvwgSvMOHsQl2wYoGf+r33EKzeiQRhUV+jrtC7vhsTZdriVnzqhUFHJekzQi/E66b69YwrHhfoCgH/c1SA27L7QTXvhVOwlyaNSUM9U4fGR6NlSCVtX28VTFsRcPEpfl0+Y1gojFlpCLzLP+q0KBxD3wQ1VoZgUtny01uQYI2LlvBjZ8SsuEv9Mg+LaFtbV9ngCjxppvDyOaQ84Sg8uSHk8Y8lgBX/ZjBQuDR2itSAVsU= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4055512-2962-4cee-01a1-08db8bdbfd33 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2023 00:21:56.9329 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: U0eTUOyFYrNCrDO2RuWl1x6CKHwJ2M4j2Mp5OF93Hoz0oREv3Dmcm+MJsFKCE/s953D26+xjcsBcQGB1YJh8EtfhxLwwebkNhYqwut4s0Z9BOEeGybdKFe1eCZ/czULz X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSRPR01MB11420 Message-ID-Hash: C6LECBXCFF6IADQLLZ2I5Y3YRGQ4RWLJ X-Message-ID-Hash: C6LECBXCFF6IADQLLZ2I5Y3YRGQ4RWLJ X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: renesas,rsnd uses both "ports" has "port", and these are very similar. To avoid duplicated definitions, this patch adds common port-def. Signed-off-by: Kuninori Morimoto --- .../bindings/sound/renesas,rsnd.yaml | 38 ++++++++----------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml index 8a821dec9526..d9808b130e8d 100644 --- a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml +++ b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml @@ -9,6 +9,20 @@ title: Renesas R-Car Sound Driver maintainers: - Kuninori Morimoto +definitions: + port-def: + $ref: audio-graph-port.yaml#/definitions/port-base + unevaluatedProperties: false + patternProperties: + "^endpoint(@[0-9a-f]+)?": + $ref: audio-graph-port.yaml#/definitions/endpoint-base + properties: + playback: + $ref: /schemas/types.yaml#/definitions/phandle-array + capture: + $ref: /schemas/types.yaml#/definitions/phandle-array + unevaluatedProperties: false + properties: compatible: @@ -108,30 +122,10 @@ properties: unevaluatedProperties: false patternProperties: '^port(@[0-9a-f]+)?$': - $ref: audio-graph-port.yaml#/definitions/port-base - unevaluatedProperties: false - patternProperties: - "^endpoint(@[0-9a-f]+)?": - $ref: audio-graph-port.yaml#/definitions/endpoint-base - properties: - playback: - $ref: /schemas/types.yaml#/definitions/phandle-array - capture: - $ref: /schemas/types.yaml#/definitions/phandle-array - unevaluatedProperties: false + $ref: "#/definitions/port-def" port: - $ref: audio-graph-port.yaml#/definitions/port-base - unevaluatedProperties: false - patternProperties: - "^endpoint(@[0-9a-f]+)?": - $ref: audio-graph-port.yaml#/definitions/endpoint-base - properties: - playback: - $ref: /schemas/types.yaml#/definitions/phandle-array - capture: - $ref: /schemas/types.yaml#/definitions/phandle-array - unevaluatedProperties: false + $ref: "#/definitions/port-def" rcar_sound,dvc: description: DVC subnode. From patchwork Mon Jul 24 00:22:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13323376 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 509E2C001B0 for ; Mon, 24 Jul 2023 00:29:31 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 7C188847; Mon, 24 Jul 2023 02:28:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7C188847 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1690158569; bh=YzG/uj/R5kKrrc69kFQIJUHb5ImlIgAcxbmPlmw/r2w=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=mHHiRUMAw12qHc3CpVg9s/OhDsEVCzT+Gq/KKOk5AaAAijyKSbERU9L4DvGhyvSeO rA5wEw2GwApGOyOxlq1ncYKLfZRV1DERNnC8rmab6BzF+e/m9lGbS8La5BRcni5Bjo ByyEgssisoovBJpUmUgHrhbZchEXxkwBQzBd2vn0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 84662F805A1; Mon, 24 Jul 2023 02:27:25 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 77B1EF8055B; Mon, 24 Jul 2023 02:27:25 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1DEDEF801F5; Mon, 24 Jul 2023 02:22:16 +0200 (CEST) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20706.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::706]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C95B7F800D2 for ; Mon, 24 Jul 2023 02:22:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C95B7F800D2 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=lGhLx5e/ ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WiXEDlWykjD5FUtQMRUsOwJEcHEuLZ97bEvqwHPU30xj66A6Pui3teamXMkGU24G7rXUflGa13155DTeLAMvg3MK8Ozjhb6X2r1xyy2acxYULJOnOyyLGOJcfmdqsdCGbsaWuUW5ES6BNTaU6Eix1Z6ADuqeDAi0+ayNxcl+LXHGd9ql64uGZX3OvDwcI9LR1+q2x1gRN4PB08iM84R8YaXXegu8WbV5aU9ZhRJjMAUdZ9jGbB9ZN1/7yKAvehF589UfIg0kKHHZrKXYL92cCHaa0yO3HYZLGGUVZtX0jf7fSkk21Faxzn+nnzjjL8iXafF1BEXui3EDmmNNmivavg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DIX0MxRtmvnMBXmS+gIcOCZAHHIxK90sAl7uauE02b0=; b=K7KbB7WKUeiOFGm45ihgaOLr3gJDYp3KJyKeEhB9Nwb+QMU+XesnZg/TEQomcQKxXhS+TzdhK5lS3lVchzLIHTEiakQa6uiovwVDKPrG2gkAagfoHGLdf2LybM67AF7dNLitcbRbTc3DQ6Ri6rwxfihUD/D7MGflWnAk/PojF/mrf0s1mcTVSmP1bFu0Ny5xp8FND3pYCEb2pys8XKOnNdhbABp5gIx5OWw1wkFcMvdneLSYqzRZww7YdDatY6o0c9+OcsIJvmvyVkD8FvL3na/l9MInf8BFQDRmkU0FV9QpZfsefhFhKXOrlWz4G7b8Qo051rY+MK9Dd/UuN/kPgw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DIX0MxRtmvnMBXmS+gIcOCZAHHIxK90sAl7uauE02b0=; b=lGhLx5e/89CJnhfyULLqAQWp8qlvVZbxaDsPPMqd0gvv8DtrH2qUZfiwlCC1seYg3l6lxbQieoUgWkk9Jl1aJsGJpirfGu2zbOumkjtMtE9mi3dESQ+DMgI/7H/bV0K+SA5OI3QSr1p0Ka+DC+jZRXQSn/BSMdzw/Tmfsua+YaQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by OSRPR01MB11420.jpnprd01.prod.outlook.com (2603:1096:604:234::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.32; Mon, 24 Jul 2023 00:22:01 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e6db:c2b4:3f89:e3a5]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e6db:c2b4:3f89:e3a5%3]) with mapi id 15.20.6609.032; Mon, 24 Jul 2023 00:22:01 +0000 Message-ID: <87r0oyb1li.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 5/5] ASoC: dt-bindings: renesas,rsnd.yaml: enable multi ports for multi Component support User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 To: Mark Brown , Krzysztof Kozlowski , Rob Herring Cc: Linux-ALSA , devicetree@vger.kernel.org In-Reply-To: <87y1j6b1ne.wl-kuninori.morimoto.gx@renesas.com> References: <87y1j6b1ne.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 24 Jul 2023 00:22:01 +0000 X-ClientProxiedBy: TYCPR01CA0150.jpnprd01.prod.outlook.com (2603:1096:400:2b7::19) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|OSRPR01MB11420:EE_ X-MS-Office365-Filtering-Correlation-Id: ca5ea86e-49dd-4bf6-e0cf-08db8bdc0040 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kwaMYJ3caujx33yK9cVkgI6Fey75bOjx4lFNHqu8UyMAyciiJg6mM8ia55ABsNW4MU+CZd04h5o6tRtSgdJS25/b4mvAbfqo0oT5YiSOFM3FAQ6vm8AGK27nlaUNH7KSZ02JXcBxisVsePuvT4oiqdiMbP3JtbGMU6IVr192YTjdGr3A8IKe9LuEBvrdaecJaCMn+m153n9so6O84dqiMIGRcohM4GTelSOoclUaTJ/eXx9CQepNQw/aUr6IskC5fb5wYoXhahTpyQUHD3ZkY0J2TiYatBFfFA48D1wX32lr5uesB1iUinc44jYQU6PjniTZjkLOGL94Kjq7NBba6tqF5a6JvWFM+TreSMylnf85o5m7abkKjfUtve9dwaHdZNgDEpAPqJL9LxqvOY1kXzOiM7GqAC0RiKPLclHiuDEJudSv9rMzCbDKNhgTk989EeZj2TnQHvEgu4kiLilwm5cg1grHoonu+LG5ovBWEARffnMeviJ6DEcDTVOHLX02ZXUuLI94iCYbCjf3EsV0S7AI77AdEmu02keuG7a4HWpKejj8itiOV17hN53W5w1rPhSwZhWxJvIp50mUxhuQ2A+BjImYhfGusLUxPWukwJFWNKRzSkCMip3qsi0DmsQV X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS3PR01MB8426.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(366004)(136003)(376002)(346002)(39860400002)(451199021)(2906002)(38350700002)(38100700002)(6512007)(83380400001)(186003)(2616005)(26005)(6506007)(5660300002)(86362001)(8936002)(8676002)(36756003)(478600001)(6486002)(52116002)(4326008)(66476007)(66556008)(66946007)(41300700001)(316002)(110136005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aEsQN/Z3aIXENLqzbThCB2BSiVp4RZ4T7ipG3XmyhQydZhLCXB7F1Up2C3kdDMmORF2lqXIVO4L6Fj1vU4/hWg5uHg2UEAxapd6HqqSYjBHx8wy3Za+jaajcJ0CuTJ40Fbw0WEhvp//vw+XRitr+JOzL9v3THIRO4aZXGzWBVbAtTGe8tkd2rUitnoXI72DXLPE4LYnQMyBwy9ht0w4VvP6pooLt+xnS9UadYALrmTAMk/2Jo2QTx5Nhfno/dyFsIJgrBlNhVsZXknlblIgYyI+pLm8Q/sxJgIm3qFF/kQgrCoXASEyX7JjcVfPpNGYENWvwzhenR0chA9B1e0T3spJ7TJU8b0KXSH9LT+abR1WGyFXYsl6PFYJKliLzGfSTsOtUOiFY2tXt0D+anmFRVPjaEgJNH1Bl0QcmjTv2g6vvtVculF5WYBIUW5bCm9z5jb2WTFh7O/3RvgnVpz7BEvX8+Rp/pa1zve2A0H2nhk8RKgp0KKO1egRjUsKPmfBDPpNXzuzHFZgN6xqB+BEziptPcxW3w/JapCNJhqRgig6Hfa9FjchBUJSpeuqSD0D5v3JEWxgjBEKHUAqph37JU8EiiS/oIVONL4PnWjjuF1K7kLwzrMyDG7Rv9+PCVTlO3w4fY7NbfaUYmTYpmakH4/zC3v9df7Oo40Cjex3XWq+VKSTJQxBAn7MNFol74B/GXyRjS60cX03Eg3VuwAELpmx3ZaVzLDtfUN61xikhfeeXF8XTil+72R4hj2ErmyBt7OcIoL8EiB08gN8NosNL4+DbBR6joO/XIxxQZE9ujD4eyhKoDZLVHXdJlHbvfbMKqgbtmDIGJQk/Ish44ruCqJDZxwOwne6grkqHR05GtnOw0yueY8UqOTW3DL9MZKYeFsjmM8y+/Dj884DWCpnw0ssX6WDvx3+11I6veaPFgOGB+QEJuD1BR7B5nCNgAXG/V2opjdib7mM49UZTZvLHM+k9N+V39xt1gx9sbf5loyr/DTa3/LqmcEBec/Ctz72JZHZCaeFXXXPrYxnIfmaQjwxXi1UOqALTXBxLMIpLQKGbORB6KBoaMHBZ60MYi2GIM3qAjnaWkcbS/Ch+vJC/f555r2xgZpB2AFMEAAKSmXYWWCDfagRUBd/2Jmkh93aHHo3gOhGVRQbJc8IduHGQvVhVT231Ja4rEyxgzOEqh3QHn53ZeNV/D4933kN+G2QHm9oT4PVWcGelbpjHtGtRIwsvAZ5Y6HgLAFA21XOXrNLAzwYHejnitgwrYtaCvHROpN9Iqyw7cVSAX/G8b3w7BBRAu3sxjCwgr5HCL5Y62inontv/DLp36UZkHHgNkA3c9akjOiAzbWrzRhuYVvZkGjzxsbQ/9jWZy3Iz/Rs1NbQVPEvj1aPg9pMpBJloEMwDqUbY+Xy/nlKrVz9GcLVdvaE0+JOupiRV/t/65Ng7TpgCIf6rnc34a5vuroPNg8x4lfZa7ksX/eYN+xaG6LTW0pfBPzTdcacb5JJL9l5TvUqBxLqSoHtZ+9OrTUpUBqltlpJbmJSN/e+kzBkryE7rG3l4Mp+JY5O43ap2rHL6ioJTa+8L2A7ozxRu+dVtnAhVf9UMI2B0LTHxjVzoMjWBWsumvd5vjfDBIQc0u2jsf0A= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca5ea86e-49dd-4bf6-e0cf-08db8bdc0040 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2023 00:22:01.7459 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jpRNClB9poSV0lTFWmlIDe2SWpvluiRw0gjYuE2HHSu5hYjFdZl3NL052jQJPiIaXiRK2Gz0GYZRhwiK4qPl7/q//U4t/SvHfDCInw64L5jHnwn8eU4olTdbLb9QTtjB X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSRPR01MB11420 Message-ID-Hash: WCLVGL2MHLBW7WJ5NTXMBSARMGNRDLZS X-Message-ID-Hash: WCLVGL2MHLBW7WJ5NTXMBSARMGNRDLZS X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: To enable multi Component support, "multi ports" is needed for Audio Graph Card/Card2, and "multi rcar_sound,dai" is needed for Simple Audio Card. This patch enable these. Signed-off-by: Kuninori Morimoto --- .../bindings/sound/renesas,rsnd.yaml | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml index d9808b130e8d..13a5a0a10fe6 100644 --- a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml +++ b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml @@ -91,6 +91,12 @@ properties: it must be 1 if your system has audio_clkout0/1/2/3 enum: [0, 1] + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + clock-frequency: description: for audio_clkout0/1/2/3 @@ -117,13 +123,7 @@ properties: description: List of necessary clock names. # details are defined below - ports: - $ref: audio-graph-port.yaml#/definitions/port-base - unevaluatedProperties: false - patternProperties: - '^port(@[0-9a-f]+)?$': - $ref: "#/definitions/port-def" - + # ports is below port: $ref: "#/definitions/port-def" @@ -242,8 +242,9 @@ properties: - interrupts additionalProperties: false +patternProperties: # For DAI base - rcar_sound,dai: + 'rcar_sound,dai(@[0-9a-f]+)?$': description: DAI subnode. type: object patternProperties: @@ -263,6 +264,13 @@ properties: - capture additionalProperties: false + 'ports(@[0-9a-f]+)?$': + $ref: audio-graph-port.yaml#/definitions/port-base + unevaluatedProperties: false + patternProperties: + '^port(@[0-9a-f]+)?$': + $ref: "#/definitions/port-def" + required: - compatible - reg