From patchwork Wed Oct 25 02:19:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 738357 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 07602C07545 for ; Wed, 25 Oct 2023 02:23:52 +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 B4300BC0; Wed, 25 Oct 2023 04:22:59 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B4300BC0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1698200629; bh=Ab5X2HQ60rNtQCh4/8KHmH5NGP/BZoFfFpdRGnvTH3A=; 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=I/69qUcE8htkCnqcRT1O5vpYgLb6iJbjWIakNh6VOyZOXmsn5wm69gLFIchu+IEee V/rTMhw0Hk5t3wuy9VeKlM46AvdWyGI8NEc25jWAXYvYkmv0ze8AKhAapQdH6v+mN3 poq6LShsNKklJ18q5CijCErKnZYTe1y8+0B4k07I= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1AC57F805A1; Wed, 25 Oct 2023 04:21:53 +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 40DA2F80580; Wed, 25 Oct 2023 04:21:53 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 110B5F8055B; Wed, 25 Oct 2023 04:19:26 +0200 (CEST) Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on20701.outbound.protection.outlook.com [IPv6:2a01:111:f403:2019::701]) (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 BEDDFF8024E for ; Wed, 25 Oct 2023 04:19:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BEDDFF8024E 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=RwLarmR3 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ElyfjbnWaa76BvdI+K971ltrYQ8vLypcFjU9lIKy5QzQB8XjlqXT2DLTsXa6+ZQE9SSlH62CBqhW5r5R1l5Dp2wU4o8F+TK3DXh/Lp9W7X/5KvdHTC9QnpdMxwO1SWDohX7HvMrNhCIFFmFp2ECJmqoHQMgLv3W2O4oVipA+AtC/81ynP2gq0eJQVG2Br6/jxTUE5ApHAiHjKNdaatljUUru9utfXbN9Y5HjvZAuwIrDcoQZXwdzYgFspSdlRkU1QPMqb54XJ7LjoskC+MSWR9DlflrVCzIV25gXhJNx1OY6SnMJ7OBiyTPvRpUbPvVc7OWLhiC2+B4T53BYPsZScA== 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=7mJ1bvcWawDtFDfdiKrmUg496h6QNVvahuspTZO9s6I=; b=mgCaWmXpbzwQwC6LNd6OpkNFykQlj+vIaKLvRVaFQB8iEtq3VmMVm6nqQDTu8m9Wn5Fy6zLPajRZUWipdjAD6DduLVXK2x1YRCIB1RQlPTHdZGc5vi8/3o6Cw+BbMcPQIy6djKkfZz2aJmrYlM+9RT0p59sU3Gq2sdc4CZw94I2VOSfos/VVZkaynXcAuvWwXZUvnpWne9+GkbG4fnXUtOyCuueK06jgRIhDOfvHIbb8HnfF3c/4RX0ZvLC8dzhR0mDeT65uFOgp/bnKnmA92u6X7v1FCFlhSP6SSA7wApxmjGqUQ7hfGBy6YIgAfjfz+OdvaoCYNNFNc8xT9v5JCw== 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=7mJ1bvcWawDtFDfdiKrmUg496h6QNVvahuspTZO9s6I=; b=RwLarmR3AnClcIk1YNy/LFdnLnj3VQj+/SxRP1TQGOtAYDdTlGyXjzla0ud3Sf15+EJ9zSlAtY+vgaiV+V1jk3rZe6p3LRh268N2uGRAYjNpHRaJ+7A/EmdPCg6imO5Oth4jzKTXTbyAuwOY+T9e6nJaiJEeQtXJ8rpq19InOr8= 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 OS3PR01MB10372.jpnprd01.prod.outlook.com (2603:1096:604:1f9::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.31; Wed, 25 Oct 2023 02:19:13 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::f7e9:e682:d78b:f55a]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::f7e9:e682:d78b:f55a%3]) with mapi id 15.20.6933.019; Wed, 25 Oct 2023 02:19:13 +0000 Message-ID: <878r7rbg0v.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v6 5/5] dt-bindings: audio-graph-port: add channel-map-index 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: <87fs1zbg2g.wl-kuninori.morimoto.gx@renesas.com> References: <87fs1zbg2g.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 25 Oct 2023 02:19:13 +0000 X-ClientProxiedBy: TYCP286CA0054.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b5::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_|OS3PR01MB10372:EE_ X-MS-Office365-Filtering-Correlation-Id: 33c25774-256b-41d4-d619-08dbd500c7df X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JkE+nNrKGqsscd2wK2VmmxOhflqU4076Id4mVcmn9wzKBPduT3KgMqFM/15lPb5W4ndH6JkqnfPprcnVhXInbeq1ORF24G8X/55j1WfE4DfpznmlMUfPSrAZ7RqiyJ5KF/o+RQhpP+8dVYxgE2PqzEJWfXjbfKp0NuHISMA1phJCimsE3B9XKnsjPpteaKAVVm6Omn85Ke9s2s6b0FDNpdlL/cLToWKlMkycyUY/deUVwk+2bty2wC2QLUB9CQoFNTsATDfYuFb+eVVl7yP26pzUllyVRX0dZz73mGCYkdv31cdqgTGdUX2E2xcWcW/CoKU8Gk+VllSHM+xFjYm9p0iQOpi/E7Tr3wh98ueJ/RZryPUe8YDFjqcFcfM0VwcNUBRsVbXMaJz7sPUv6fbLxafmyxMQCUCxFZy37vyoRHM4LYP59dvPQ98WsU2mpMCTh7Saj8rYu8zav4460cu6EYbmDxgqWKtruSDj58cEc84iYU61aIR8x2ii+ORJl+8SPw61o1ltYTcSnjbho7sqOKWSvDkcNlxgiDr2JWTWE6kXFnN9LBEONesEi97wyFkmRLJS6+/RFMRHdF8TUgjvQXcc5faJCDwD+HNL5TPX8DApJXsdsoJp1FaAzWz2ps2WezgxQUj2hwJWaFxdLZSKDg== 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)(366004)(376002)(39860400002)(396003)(346002)(136003)(230922051799003)(1800799009)(186009)(451199024)(64100799003)(38350700005)(2616005)(41300700001)(6506007)(52116002)(6512007)(7416002)(66556008)(26005)(4326008)(8936002)(8676002)(6486002)(2906002)(5660300002)(66946007)(478600001)(66476007)(110136005)(2013699003)(316002)(86362001)(38100700002)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GXtYAxLbPHy8ShfKFWX68GkyFVTItJpCfA6rYr6RxEP/n3MGKtux87T2ABQg0QXDrPEDh3XmJO100Vx6G+psx4keSWLR7wN2FzzjW8HrdYW5suVAX+1dq1XUJBLMAkbWrdLuOqaApet7SvZzH1UaUTMsCyb2pcvZoHxYZCjb4ExF7JgG1QEOXt6sBwyxUa2IRpfdgZ8UFOyNEBhz95gBrYmaMJ9BDXDmzGl0mspm9bXCmkozohUffX4lauUwjIggivZ3tvaY4IBGrnj6CcDyRi65qsvdtveHz23a571DJCqLBz4gBACmCL3+rXyfF+vpsLdCvdpC0oeTt+VLk4JnUC0hHWA3n1atbvq7aO2xWLQBCeyRPZlLdiJbwXOkIDBlavJOvoBXETioes+eGzp7FdK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d8NH7klDNVqKA4495fgP/7Hb9VtijCmi9noEv6qvAlquMGfolq5AwW4SIBMlmAoVyekK/MRbyyUIkjUsNWwE70Wss5JTwNttzFWKOQH8rvq/cIWxLl4ntIkdcpxXmvBxGn3/tP9X96sr0/qaSyVaZTpULQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33c25774-256b-41d4-d619-08dbd500c7df X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2023 02:19:13.5508 (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: eUd12t9y883Q04pi72JFATr7dnDfor/F9xTBfWZjmOEfkpL7hA2bG2SEdm6Fl9jMp/JbbzYd5IFLzR+QLfJIqp3GlSJMPJTPui5fPQuIT+upOwaY1D/AdID7LPUw3vaU X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB10372 Message-ID-Hash: UXBHHLSFXIPLP5K3CTN2FWFD5CNXKXO6 X-Message-ID-Hash: UXBHHLSFXIPLP5K3CTN2FWFD5CNXKXO6 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: This patch adds channel-map-index property to enable handling CPU:Codec = N:M connection. Signed-off-by: Kuninori Morimoto --- .../devicetree/bindings/sound/audio-graph-port.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/audio-graph-port.yaml b/Documentation/devicetree/bindings/sound/audio-graph-port.yaml index 60b5e3fd1115..2a7e0784d591 100644 --- a/Documentation/devicetree/bindings/sound/audio-graph-port.yaml +++ b/Documentation/devicetree/bindings/sound/audio-graph-port.yaml @@ -93,6 +93,19 @@ definitions: minimum: 1 maximum: 64 + channel-map-index: + description: It indicates CPU/Codec DAIs channel mapping index if number of + CPU(N) / Codec(M) were not same in one dai-link. channel-map-index is not + needed if the numbers were 1:M or N:1 or N==M. Same indexed CPU <-> Codec + will be paired. This is CPUx2 <-> Codecx3 sample. + CPUA { ... .channel-map-index = <0>; } + [0] CPUA <---> CodecA CPUB { ... .channel-map-index = <1 2>; } + [1] CPUB <-+-> CodecB + [2] \-> CodecC CodecA { ... .channel-map-index = <0>; } + CodecB { ... .channel-map-index = <1>; } + CodecC { ... .channel-map-index = <2>; } + $ref: /schemas/types.yaml#/definitions/uint32-array + ports: $ref: "#/definitions/port-base" unevaluatedProperties: false