From patchwork Mon Oct 16 01:37:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 734699 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20BC61369 for ; Mon, 16 Oct 2023 01:37:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="fG/My538" Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2138.outbound.protection.outlook.com [40.107.113.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6036A9 for ; Sun, 15 Oct 2023 18:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oGTHZ6dCMmuBUAXBOseJ/b+9fbMM7+6YLd0fZXz5pvL+ISwFgOutOAfULr2e++NJYEDHNG9fgzrmZi6HMb30QUSjk7KDei11of7er/USpZD2AXiV5UIUYAjY9XWjsxvNfzrSYCTsOHmf+31MCTj6TYYQmuF/zdGnhQoO6NOQd9hmadU+7Ce3K6F2RKziT44uNQXaP/An+BDB4Hi0d+9tGVbGIUHUz/9c7JxJVwIhp+qkJUNTPs8qNhzBX5eECOOPX4sPcBouX1tBbtxl7unYuvSO26G2la96bvc+6GfM63Z3vlIK+UoGfPyF3Lp0RrmsIlSL/PNPzT8ZMLD/ertB+g== 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=SV40rYPgD+X79RHIP1LMFV+4ANzbM28sKQBKFTpL4f8=; b=bvlUWSFN1a9gxnTi3IaxtYCR0xsDiKPx18bFcJk7s2w7gGHV0GxEmHHeuXf3VbdkHhhbQm7Bg5dXYdfIfvMZ5TZwrrWQf8NGCHr37BLBy4AiNh2ZbzeKgHQjO36S5KGZ8Q4UEEaj+tIfkkk25o/NeUTB1HxklavwbxNEUkWp1sZfIob/3YA+EiNQWaGgK2yioqdkrpb8LzLu9gT1ZYZjExYf6P/ouAZNWV0nmnRF39qnsl6Jt1kJkD1emTM5azbtdtlMmDmdzbk49iCjszrjytc6fVfC0//b+FOBd3ivUg3V2If+WgXb42rIZY8TktifQwMyKQkcqCcOsRuiNh1xpg== 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=SV40rYPgD+X79RHIP1LMFV+4ANzbM28sKQBKFTpL4f8=; b=fG/My538BoQjfU8UxJsETpWA4OGGa0ENFmbXRuuqR0iUyIDzXfDneBK4oR0dSCIGYL7F6wrr7Xqkg0ao1g59GlLFlR3GixfeM6Ira2fQzjIqD0BjqJHri22vGs0LrV/MTNI5XqyG8gmCDjPcnAJwHsH5o7RGYou6JrfhAi8A1cs= 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 OS3PR01MB5656.jpnprd01.prod.outlook.com (2603:1096:604:c6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.34; Mon, 16 Oct 2023 01:37:48 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::d2a3:45df:a180:595c]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::d2a3:45df:a180:595c%6]) with mapi id 15.20.6886.034; Mon, 16 Oct 2023 01:37:48 +0000 Message-ID: <87wmvnwdn8.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 2/4] ASoC: audio-graph-card2: add CPU:Codec = N:M support User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 To: Pierre-Louis Bossart , Mark Brown , Bard Liao , bard.liao@intel.com, Conor Dooley , Krzysztof Kozlowski , Rob Herring , Jerome Brunet Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org In-Reply-To: <87zg0jwdnz.wl-kuninori.morimoto.gx@renesas.com> References: <87zg0jwdnz.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 16 Oct 2023 01:37:48 +0000 X-ClientProxiedBy: TYAPR01CA0078.jpnprd01.prod.outlook.com (2603:1096:404:2c::18) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|OS3PR01MB5656:EE_ X-MS-Office365-Filtering-Correlation-Id: bccf219f-f39e-4df8-b08b-08dbcde880f0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4B7jaxob9WE6EMdk/REnqBjOzk0ZuSbx7FuPzfNU816aksPrIHleWQVsKMjlMKnjrnZeMRD/bu+XSXd5JPlxWczN52lQLPHBzEwoo2FF+1cEc1/zNyQxvrBqVv7C4LshajXsfvuikHNvgenr6K/vnOWrKxVOP2tm5l9e1yUZfXTqGKunhZ/MRjALrN3Ak0EYbSMWql8JsuQq9CxihmTO+KUfpBXqoZXFJw0rtBKQBMWzE2KFLd37fkCdGnvIOHQbF1S0cKPRvBanFgOhZ3kMzfYmOynE1AtTjrGjt0FQOWgbUFL3O4/l/70GoMRZwSQkTb2FdhzprVqOXzosnMZsjEEo3pOsSCaqMN+sdzdpbvkMC/Xz7KSiDhV/X0BA/Nnpwx+paEg6ikfIqVtjexOHsgyyhaK3nlvoPHa8nnXLAiXJ4wxRWae6mcvh5iG1suLp1IZuq6m8DR1Sgl6AcAbNBD2xt2NNL9rqQoepOAzahBwupSJR5KieVbNIG8l8ewYEzQMBZr1UOUVy6junaORAqZ/V1LOIpqc1FQ9WeZBw7sOtJkDmfmJ4FF2sctdy7nRXa5cuN9p5PNBwNlqlRcvYDgOdBOZ3GT5Hwe9vDZLxbgbD3YA7s5cSmObXfD9l4LkXYxYd5ZDHfjGz3l3JlkSExw== 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:(13230031)(136003)(376002)(366004)(346002)(396003)(39860400002)(230922051799003)(186009)(1800799009)(64100799003)(451199024)(110136005)(316002)(66946007)(66556008)(66476007)(26005)(36756003)(38350700005)(52116002)(38100700002)(6512007)(2616005)(86362001)(6486002)(478600001)(2013699003)(6506007)(41300700001)(5660300002)(7416002)(2906002)(4326008)(8676002)(8936002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: O5BjMxaFsn0uHPclFAemdPnk7OLjpt4Dk01LXw1+yPwlAwfp+gu8JA03F1f0brQhTTSEgClmkEMeCYY/f05Jxp/XAFMz5o3hhLE3WN8m52d6Mxr4r1Mp4Bi7B8hvkS1hodlHLLSK7QXp4DlUH8quqR3JMeEUBZ5Enu/aNeqgWJMh00shWaRXg62wudDeaH+SO0ZrVpwMHCPDdMrqcq2iDl+4IhyvtZ8gPdBwHCiDyQyUfxV4WhBgyOFMyBeWWMOAbXs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9oB+6z/CMkkkmw4MEi9+kVlqUlEC83JSShpSzLVa182aO0F+gIWHyqR2ZLq1OBbeyS5vEhTurEMy8Ble1CnCjMMULebB3xzfhnV1sqVS8X0A38aqRPAPkmUebG0gHqlqTIWxIjhloaSp5M4f6cawL4LZc5xzESlfQm6kuRTZZa/iqsu3D7RO4Ok4spePZ25qCDIW6U1SzsucvaYOkzeNQZBWndcpovyE1KlAA9zxN8eyYHAVb2DkZNqfA/rdo/BfFTT4yWjuiobN0EBwHjueaEXBLz8uHp8IWo0G91mLD0+Rbk= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: bccf219f-f39e-4df8-b08b-08dbcde880f0 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2023 01:37:48.4263 (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: j1kPiYN6JypCBl9JiwadpdFgADrMwMyHqSgdaRXbmHACuIqlwbvt00gmGioOXM3rtibvFivHJTYwhOvermVimMaiaO9tbQ6gDy61NeymbUfUFxjMJZqaZWoY7lJeISfG X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB5656 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Now ASoC is supporting CPU:Codec = N:M support. This patch enables it on Audio Graph Card2. Signed-off-by: Kuninori Morimoto --- sound/soc/generic/audio-graph-card2.c | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/sound/soc/generic/audio-graph-card2.c b/sound/soc/generic/audio-graph-card2.c index 5d856942bcae..bd65e7a19350 100644 --- a/sound/soc/generic/audio-graph-card2.c +++ b/sound/soc/generic/audio-graph-card2.c @@ -515,7 +515,10 @@ static int graph_parse_node(struct simple_util_priv *priv, int ret = 0; if (graph_lnk_is_multi(port)) { + struct device_node *ports = of_get_parent(port); int idx; + int num; + char *props = "ch-maps"; of_node_get(port); @@ -530,6 +533,32 @@ static int graph_parse_node(struct simple_util_priv *priv, if (ret < 0) break; } + + /* read "ch-maps" property if exist */ + num = of_property_count_elems_of_size(ports, props, sizeof(u32)); + if (num > 0) { + struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); + struct device *dev = simple_priv_to_dev(priv); + struct snd_soc_dai_link_ch_map *ch_maps = devm_kcalloc(dev, num, sizeof(*ch_maps), GFP_KERNEL); + int *temp = devm_kcalloc(dev, num, sizeof(int), GFP_KERNEL); + int i; + + if (!ch_maps || !temp) { + ret = -ENOMEM; + goto multi_end; + } + + ret = of_property_read_u32_array(ports, props, temp, num); + if (ret < 0) + goto multi_end; + + dai_link->ch_maps = ch_maps; + for (i = 0; i < num; i++) + dai_link->ch_maps[i].connected_node = temp[i]; +multi_end: + devm_kfree(dev, temp); + } + of_node_put(ports); } else { /* Single CPU / Codec */ ep = port_to_endpoint(port); From patchwork Mon Oct 16 01:37:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 734698 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C357E15B5 for ; Mon, 16 Oct 2023 01:38:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="p2eFOfcU" Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2102.outbound.protection.outlook.com [40.107.114.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FEE5C1 for ; Sun, 15 Oct 2023 18:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XRnfK0rPP0sIj3gOZyljHhyox6jpIJnkOkAkC1Jk/wQeb4kL7VAJmdbe3bFgdSNhyIWK57ikmWp2Ye8QOAqVoRmRswgpQwUpFuExhiPdlNirUGgSleQT6cDs2PR3FdaOYl/KSl+cs+QhoLT94xb9Tk5leS63CGNrP7u5GQjyIhiwz9kZZxgB+8cDjfaGTpZlEv6qi6zchgGbViLTxiZj25n7oZKiTXOl3/fZqMSsVT7OAhEtcJ9E/MrN6vmgyw+2W/2JhU/R6wqIK1xSGad3FJ5BnsGpw+IrkB3xfXF3fTKOWbUXfOqQqOH6S/I5rZBONzA2VFc5Ll0qcaQlvryPzA== 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=VYmXm9T2vC4fO/F5co+2dN94BAsJPw/XSFjbixCUtUo=; b=YtM3zO5Id1FMv8AvRCIKntlncozb4cGTznOO/xM0KXdFL+k1ZUvPiYAhX+2xGtDjmw7AGuJc+nIgQSMErD2mX+u6C5XBKxH8XrPdAPfg3T7+8RaiYVkV2dylmhpYmjqYs0VXwkxvjnGEwL4JcQm3RkCOa7DD+4qVDc0Oip1o8aN7o1k9RZ8MapWpFgJjL5+Z3ppHQsennc63NkBg5vAUde9l0sUh/OwZYgFr4rT+xAEF+VX1HUiI8+TjNar5zMCuoPVAEBJBoEZti0/yXcz2zBW/4nN28dp4pc84RtAIVy5DVyBAHVoTrstv1nSmzN9i2OM+58y79AN3tI6PA1gRMw== 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=VYmXm9T2vC4fO/F5co+2dN94BAsJPw/XSFjbixCUtUo=; b=p2eFOfcUUpVMiTLU60oxGGfHxzkZQfHmpeqd1ga6zOJTgL4J52HJlzW1Decfjpevct6lVf/ohZMfNOK3Aqm0YGkaMRchL0mgAlalCvQmZ/wqTzu/OC3qsGb4rDAr2icNX238sZunBrlOznhEf42yOqLTHFozVIC9jdFbMi+ivCs= 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 OS3PR01MB5656.jpnprd01.prod.outlook.com (2603:1096:604:c6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.34; Mon, 16 Oct 2023 01:37:59 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::d2a3:45df:a180:595c]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::d2a3:45df:a180:595c%6]) with mapi id 15.20.6886.034; Mon, 16 Oct 2023 01:37:59 +0000 Message-ID: <87ttqrwdmw.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 4/4] dt-bindings: audio-graph-port: add ch-maps property User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 To: Pierre-Louis Bossart , Mark Brown , Bard Liao , bard.liao@intel.com, Conor Dooley , Krzysztof Kozlowski , Rob Herring , Jerome Brunet Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org In-Reply-To: <87zg0jwdnz.wl-kuninori.morimoto.gx@renesas.com> References: <87zg0jwdnz.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 16 Oct 2023 01:37:59 +0000 X-ClientProxiedBy: TYCP286CA0115.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:29c::19) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|OS3PR01MB5656:EE_ X-MS-Office365-Filtering-Correlation-Id: 3320983e-0489-41cb-f1d6-08dbcde887a2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aO2DadeAn85IdtfziHIZqeCPHgAt9iwZQsBH1keFx+H2ZScQ9bU7kNMXEiGk7c7EbkRieg28N6w1FZ+mogQKSWoDRo7PgbuGbBqpRBbV5Uo0Rgau+ru+Y7J4IhFJONne30yLSVNrcIaLvsosSeXVQM4xNFs8KamY6Cyahs6PPLl1hsAfl+6VE31vwIwtihTSM07GhfF1FQ6cbfyc7eyUxX3uGAi8fNM1Hgu9qHS/aa6NgonWgmnM13NHJNkyWPhmPPyB0NIaRzBg37vOBa3VsIlmALomI1oee30JTngx4fJFV2LA9mimB4dkJZXMpb7f7RP1pXS9MuTAWR/2XHeWHTPS3Qm52JFT9ytvk1XVBBn9gK2sSBvecYHMsKIm5USiM0uPGddXro9Ip1ibcBIHTtkc8k5Z1n0hW0d+uNJuUtPJWQZiWA5x+haIQgCoOM0cXaKTqdAufJf2z3k5Dmhj5CqhnNIWxLRokhhpq4sZcO8gfBldNiDJlsn3vM8ZTmgO948Pv39McnZJWiOXcX76XGixcS07lyDw51bhDDGUCkyNafEPBNOUkvdG107q7IIz6/oxtjDE/JcgBeWEVWDNIXR+dMtDetyTrx5dqgIl9VHli5jMcmc9u96Maa/22ZBI4sYbJUN4Lr/iybUaVRhqmg== 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:(13230031)(136003)(376002)(366004)(346002)(396003)(39860400002)(230922051799003)(186009)(1800799009)(64100799003)(451199024)(110136005)(316002)(66946007)(66556008)(66476007)(26005)(83380400001)(36756003)(38350700005)(52116002)(38100700002)(6512007)(2616005)(86362001)(6486002)(478600001)(2013699003)(6506007)(41300700001)(5660300002)(7416002)(2906002)(4326008)(8676002)(8936002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: uv3S19bpzbCrQOFy1LN33zHTlp4u2iDOzthwVaZP/Q9IpZ5AysUYktmMyCNK5Dw6sfVt+vJIy0sJvrZ3X6v1bvxKgemPsTAj/KUxMCrehwCYZYn7rBSqsSIII51f0HTRvBJxEDijQQ9PujvVY0oOv5yjrcB9xreFa6UOqjczltEEYlDz2URs8xs5YeEEMNEY61T8iHcJN3ViK4UfgyzQCHOev2bgRDK0khlpeofXgck3YIF4X5g82b8QStO2XDzRQW9Gufv0b/SsZH9BImERTZCmKXlSSZl0OHlihvmf31ISvJodZDs6Yb+ciFtjnNRLt2xombTtwXjD7BSHu3kQWAfgXu+ziToUMS7qGbKKJKMKIHUu+t0h+lk2E5/Ylzfmyx2t/HWotlgm9TRrDK9Yc7iX3R6z3Eu26llXCR3RN13EeBHYrP1JSMUvsVhzfStzbv+FGCryxEcHvALcaft17U9AY66wNJ/3lNnwlCEUqKLuBJ6osXsns6bretaGxP7qozUq7gQT822uNNGxU0ePIckxE4b9dYyzVYxtyelzsQ7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-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3320983e-0489-41cb-f1d6-08dbcde887a2 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2023 01:37:59.5833 (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: N1ammdu1IGnfk/cNSzyl0UJWoQC0FAKux4Z4mWRuL2kKPeyQdjtWsywVELT7ZQx1Dzqa36/EKlGFnR78plglLcqdUZs3EUZv/ZxnxJoCWtn/m+ZsdXdBcpRcn2K0Iasm X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB5656 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net This patch adds ch-maps property to enable handling CPU:Codec = N:M connection. Signed-off-by: Kuninori Morimoto --- .../devicetree/bindings/sound/audio-graph-port.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/audio-graph-port.yaml b/Documentation/devicetree/bindings/sound/audio-graph-port.yaml index 60b5e3fd1115..1f7005356efb 100644 --- a/Documentation/devicetree/bindings/sound/audio-graph-port.yaml +++ b/Documentation/devicetree/bindings/sound/audio-graph-port.yaml @@ -19,7 +19,13 @@ definitions: properties: mclk-fs: $ref: simple-card.yaml#/definitions/mclk-fs - + ch-maps: + description: It indicates how CPU / Codec DAIs are related if number of CPU(N) / Codec(M) + DAIs were not same in one dai-link. ch-maps is not needed if the numbers were 1:M or N:1 + or N=M. If N <= M case, ch-maps indicates connection from CPU, if N > M case,ch-maps + indicates connection from Codec. + ${LINUX}/sound/soc/generic/audio-graph-card2-custom-sample.dtsi is good sample. + $ref: /schemas/types.yaml#/definitions/uint32-array endpoint-base: allOf: - $ref: /schemas/graph.yaml#/$defs/endpoint-base