From patchwork Tue Nov 6 05:20:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 10669649 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E877F13A4 for ; Tue, 6 Nov 2018 05:20:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5EC42A04D for ; Tue, 6 Nov 2018 05:20:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9C8329EF2; Tue, 6 Nov 2018 05:20:37 +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=-2.7 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham 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 CE37929FD6 for ; Tue, 6 Nov 2018 05:20:36 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id B256026787B; Tue, 6 Nov 2018 06:20:35 +0100 (CET) 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 ADBD3267A70; Tue, 6 Nov 2018 06:20:32 +0100 (CET) Received: from JPN01-OS2-obe.outbound.protection.outlook.com (mail-os2jpn01on0093.outbound.protection.outlook.com [104.47.92.93]) by alsa0.perex.cz (Postfix) with ESMTP id 49ADC267877 for ; Tue, 6 Nov 2018 06:20:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EESJB3xzTAOjK+zv/BkAQ5xp8REQqS6kbuYhT9lsKNE=; b=UMNJPHZkKssF/I0/x7mABuHfILSv33QlbuxePKmi0+XHSePnHbusrkFnVRxF4c7OkZifO97fPjV05zPP2gCMiJu5EUVzWwqR/SqpoRMgsuoCE6LrrSh+SC6Z8LLDU5UvjouOOJXs3TwnOJch0N85wtruHeBTReTFoLBJWYMFgRI= Received: from morimoto-PC.renesas.com (211.11.155.130) by OSAPR01MB3314.jpnprd01.prod.outlook.com (2603:1096:604:52::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.20; Tue, 6 Nov 2018 05:20:25 +0000 Message-ID: <877ehqx01j.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/24.5 Mule/6.0 To: Mark Brown In-Reply-To: <87ftwex052.wl-kuninori.morimoto.gx@renesas.com> References: <87ftwex052.wl-kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Tue, 6 Nov 2018 05:20:25 +0000 X-Originating-IP: [211.11.155.130] X-ClientProxiedBy: TY2PR02CA0017.apcprd02.prod.outlook.com (2603:1096:404:56::29) To OSAPR01MB3314.jpnprd01.prod.outlook.com (2603:1096:604:52::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b0780fc7-4e6b-4304-c5fc-08d643a78ee9 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:OSAPR01MB3314; X-Microsoft-Exchange-Diagnostics: 1; OSAPR01MB3314; 3:xOkPcph6bDw6i6R+rwAw/maxL7liU5cay4Q61uk8xUyxLt6a93307rGe6opuXe0yH6Rst9kH5DqGT6FHr+3/VEzHqqboc8LhzQ5o8RaE+KcmRf/FyLBDLqBBsoL9u700UiOx1rVKjPEfTv3lx64Uymz1/S/Hno8Hu8iSdhH5C8A5teWk9M8bwuBY+jo2y7jCuYGb7DQ3wbVxv0fNlLJm9iWoh3bkXoBgtncX66R5bDCncnLtxSRCr6YVVRajkikl; 25:kwqviKLGbSx1O2k4x3WCcaAP9pwZSqZiJM9/3vKwK7X/KusCCIHyNruMAuOTavWQA/VujtBWRa9QetYDmjdlGRM0N6IDPSEzwwOj6lwtjE9XR2AwbECplkyiEBQnQlyB2pzPlAK6aWdcSDJG8WKKA4Z/pQWiG3zZifQhqCVdq/uCrGBUGhMY+QIcEsYmr0K3EG3qTVUlkcfEicJLFU9IwNf7CsYY1NvMJ5B2ALfWKuK7naZUECfjlrlnLxZa4LhJCDLdHpTfvUjiH1jcVZpQAE7UPUiDajw/bXcN1Ob1iwVtCUDbjjdim9Qq7m/GOjvPIz++GvexKvjTrVqwe8pDgg==; 31:30uWYw+uBzGpZRkWFA52sDcdSsgQnWwabBolcww9fEhJouX4j2LD5JHHNadhnz1sTmDv+IYYX1WbG2Dy3oPvz5hx8R9QQzInBKf67gZQBh4eSYvlbwdG9rkzjmquAYLy6M1sBbYPJO+EECNrAlY4xmcZ0uh5aSANcjr5fDDaxw3JX4b9K3yJwLp2agu5wLFB/8Cxxvib4QPtimrdJcNy8/FQqe4f5EBwPczM9fgTFj0= X-MS-TrafficTypeDiagnostic: OSAPR01MB3314: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; X-Microsoft-Exchange-Diagnostics: 1; OSAPR01MB3314; 20:92BmvOgJgkrbYoR+nxk2HsJzU56ay1qvxK1SBC+y+qsATOtCx4x5GWx2peOAEXF15ZyVAKUw20OcVlrTWM8jK00rY/j1dg/nmh4T8M1Ul11AzRCaahgMeWxgyRcGw6Ik8EtYw6/i5I2FtTxNhSvB6tSRLDeI9q1FIDapJy/Ipy3f8hYDektEcU+gGGkJQVK0elGAw7vYNt1uFy/Pl+OG9++6TnG3Ant2WBnuEcOBrol1uZY3iqctmeBqSX5AAn5BiyjrlEZmgjtMqcGM7d8Bh+0qOCm5Oygvj9TcrUFXrHTqfaMsCAzdjAT/n+cCaiqzQIdCUTYUWnrjFiFF7mRjbTpDQgslhj8lvmJQ2Bg8gFGo5SqwkOTK9i5EWgMkPCOwA6G6TUBO+/SJISkZJe9DHz3xZ9U+CSjsPl3vKDWwToy6ElsM0RLZqhlpq060S9OzNFrtxW4J+umULegZ6adSBgl9dQFLSCJOKmrL5wOClzivxq4PDspGJSH0P40S6M7M; 4:u8uy1MlDtSr95wKQtFPAvzs9IvejaIrhR1RDUBryHYwIRnAaEziRO9xMd/qPNbGgmxxW2vFmhpe19Ebp7Zk2euyzQcMnsof4jy+ODIzyVhFWJvOWQv6BjzsriJFTBHjni/C6T0xZnLrXNmiF6KrF+CmDr7pyLFrmM0C68h92TT4TuOulnjzjFMRmr0MVmYfkXoud5ZlKCrek51ydmZ3+ksIauiX3fn8KQQpSnbZ1P+NLPxr9xNnKFZnr8XnWELzP7zEIjYvQZv8VEY+iOLjFKw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231382)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:OSAPR01MB3314; BCL:0; PCL:0; RULEID:; SRVR:OSAPR01MB3314; X-Forefront-PRVS: 0848C1A6AA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(376002)(136003)(346002)(39860400002)(396003)(366004)(189003)(199004)(50466002)(53936002)(11346002)(6916009)(25786009)(6486002)(97736004)(486006)(478600001)(86362001)(316002)(66066001)(8676002)(956004)(53416004)(81166006)(8936002)(105586002)(2616005)(81156014)(16526019)(4326008)(106356001)(2906002)(446003)(69596002)(36756003)(52116002)(76176011)(3846002)(68736007)(186003)(7696005)(6116002)(476003)(5660300001)(54906003)(47776003)(16586007)(58126008)(23726003)(305945005)(7736002)(26005)(386003)(21314003)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:OSAPR01MB3314; H:morimoto-PC.renesas.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; OSAPR01MB3314; 23:0SlsqU30YrQZ48YT7roBev23eNm8vpsTHsF32U6qo?= xCk7PavgPMs/Y9k/WOik5sutoqQmwZu4qIe6pGuY7AVRWOesYz29XHAYctWrR20LKUiouq1CkzRQwlT6ub6mkCwsCenycAdx8/0qnRNYj9FZ0BuiRYoDg60SH4UiiH4ZKBnQPYgt+42BSNCIVsPbOgPun3zzI4YtOQGprM6OHemROH/DZgYOI1IJ1GDYF97oxqa+4c8pM1W3O/VTBuR85DaYKKPHdjYcYlmo/qk+IDs1SJu0gnUAXRx3N3mC4LL0T6QxXx9HqwKREogMXMdju/TK82nLbN1t3ahczvy0hyXpzanKOO4xMhRa85WCC7wA+q5iFUg3u0KJZlPZtUJs1ORWM87xOcCCt+ain96fM0Nwc12AnTTjhP+1HSDV35R+9EV0zlotm6H1Tvelra9WK0f+AHbG1wWUUDz6UTk64KhXXqo9LeaFbZQCzbr08VcpC7oKCi7lIJC5zK5NPQA0ogzdGmG+UcjclFMzktkFoUssnabuTKBhRKOqQ8mqlrgugJMfL5nZuvKeuB4Gv2fPC7/B53vPvPICwM5wbJzs90uZcG9k1pNqI4FGOjQq2KaPi39ZxPJIBtTN/66igPdEDZMUDw1xtXRWyzIN/Rm3/w9XPta96ZAXX7EWVyt0TbYJYvTU1tUlA2YN2LwYMydu7fsfHS8ErdlSyu5TC/LjoC+YMf10YevEBEnzi3G71PB1ENExUhlYRIiVnQW8yQuUYLHnSPNPcEaHSLPWLTQNgUeqy/R1nBC/g+TQC2ih+5Gz4ijZROuJQR+TZCAT/QeqXzuIpkkxtBVAwWd4ucb2QZKTW12jCaLJRPHuobBC+6l/LZ+t6mdLy8a7k+KY/lRdq1AGzxUAkNkellWQl5BVTonk5I0moEGvBLYJzJBACDVj2jkTIMDVqE3zlJNdwQdoPgPnFXotk7NRD9zBH5AvtQBBFbJUHR1yLCwEFQPQ4FUCnI6VSTF7UBrhFIAYHGYqeabiRkUD+QTBMnmf7lNKZjEN3jNDxQf61fmDRfZlkiIxnrJKfNRPa7XDZdXHuympszm6IdNiKmdbQwXQc2FnuYuBP9p2tD1GQd/nlF6ewIQPAf2Uth5DaAsh6evykqSEdvhvrz4lbFwLx7Vjx+ZnrxSC8K3WrubS3Uuy0h6AzxITYKoxTrLSx/ewk2AEo6L8eIdkcijM+c8hQfHuVcWNLuZsQ== X-Microsoft-Antispam-Message-Info: T1HziwkkbnT7iAu7upQC0SmqXgCNry3KtQ7v3yij1pcVX+O3oOJSealei5PqpcconfrqbgYS+OCimy6DgbI+Oe8QK4nmHwKGxI4shnopnQeJ7gCWjspCKwaMoIpjxFSiJxo4f797z6AmAsK/SPuFoPM0IoIgPExPf8Lib9JttsfXjgcbtf4nSYMAOCaWCZHor5caLZtT6cGYQ/ios8wE0+EtBG5QBPf8YjSNh9EagY1aUF5+1LItpglgfhcRDoHoBSJJCsAVvB31dbtApLF1ziCg/oYOpUOmkYlvGFZEYeTnJie7PW5CtpUxaXIjPPR/TDg1iqRnW4xjZ0nNGunWUw9seTdkHnFGJkSnGakdM40= X-Microsoft-Exchange-Diagnostics: 1; OSAPR01MB3314; 6:ig26Tps3nJdqp2m9p8i96A7HFMmbt9nKrrarnlcHwAcH2q1uKUu+hMkkQmICc8q+2Bx7Hi1wm8zF0RovwynAhy4BiLFWzsh4MMWDSKVuPjlaApkKoZ64qxAx1yfn/9Du7F1qWfIuNK1EaUR0ClV65f3br4+RhWGjj8Gib4IkttRInNM8At2H4puJo1ALb71GEKO3T+f2C0LMTeJmMLxeM+r1t7tWCX4NMRWRUGfxrv0PVbUbN/w81DKacCNzUy/4qUJkpKZj675TS9gWd0mFHTS85F5csQ512G/5rUIMYPiKNPxTHKj8lqRB2zR1thphh1AmWjswWGy82eN2X/72UP2mgW/Bw0I6sncbtV3RIRzh00aRRnELJITT4vELbVphrVsgO9ZgghPDgMc7iLBSO5AX9OFVGAeL0pxbyeu0eJ0iAArlW5HuUp+zIXB2DH6Q0W6hlCp4jx0TCPD5NpiJsw==; 5:wum39DWr+LaxigWTeNAZJ/CadmNEDeObMbDqulOORy9hPtP1jmB2mrhtxE8ZT67EqW5fTzXRL4qukmttsB0/4q31DzIMxDCTdafMi/Z4fzkCsh9U9iQqjzX335hNWhjh1OGzBHxA1H9e/BHsOSP6I+U8G9S74V6SYaqU8p9E+TA=; 7:o7yFLVQ/isSnYyy0jeKJM+wymIGIo2EiUd5l4PMd6mgo38D9JWxTHMi9Ev6gdtyettvl4HEWTuCOSmR4tnM7F98ScYjSiWN3LvP/OBMeSXpOeIS3uj4pO/WqfuEj3u05y7RTzRtHZRO2AgxzGeemOQ== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; OSAPR01MB3314; 20:QsjOwumUIOxiEGuysrDdBlUClLp6H0c/Xb3AdAYKr3aIThbD0iFMVHi7qUzQhb4FpkoZ5cW0KvRZVUoNfwEBQxbWw0/bp3cbkb0sCIkh2DZ+XqQgJURWnhRxBMVRKvaAEkQpxMe4/TK5flFRI2ideToMw98+7pLZe3uxaczXZh4= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2018 05:20:25.4851 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b0780fc7-4e6b-4304-c5fc-08d643a78ee9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSAPR01MB3314 Cc: Jiada Wang , Linux-ALSA Subject: [alsa-devel] [PATCH 06/10] ASoC: rsnd: tidyup Document for DT binding 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto It has duplicated DT example code on Document. This patch tidyup these. Signed-off-by: Kuninori Morimoto --- .../devicetree/bindings/sound/renesas,rsnd.txt | 214 ++++++++++----------- 1 file changed, 98 insertions(+), 116 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/renesas,rsnd.txt b/Documentation/devicetree/bindings/sound/renesas,rsnd.txt index d92b705..8986764 100644 --- a/Documentation/devicetree/bindings/sound/renesas,rsnd.txt +++ b/Documentation/devicetree/bindings/sound/renesas,rsnd.txt @@ -39,15 +39,7 @@ This is example of Playback: [MEM] -> [SRC2] -> [DVC0] -> [SSIU0/SSI0] -> [codec] Capture: [MEM] <- [DVC1] <- [SRC3] <- [SSIU1/SSI1] <- [codec] - &rcar_sound { - ... - rcar_sound,dai { - dai0 { - playback = <&ssi0 &src2 &dvc0>; - capture = <&ssi1 &src3 &dvc1>; - }; - }; - }; +see "Example: simple sound card" You can use below. ${LINUX}/arch/arm/boot/dts/r8a7790.dts can be good example. @@ -83,29 +75,8 @@ SRC can convert [xx]Hz to [yy]Hz. Then, it has below 2 modes ** Asynchronous mode ------------------ -You need to use "simple-scu-audio-card" sound card for it. -example) - - sound { - compatible = "simple-scu-audio-card"; - ... - /* - * SRC Asynchronous mode setting - * Playback: - * All input data will be converted to 48kHz - * Capture: - * Inputed 48kHz data will be converted to - * system specified Hz - */ - simple-audio-card,convert-rate = <48000>; - ... - simple-audio-card,cpu { - sound-dai = <&rcar_sound>; - }; - simple-audio-card,codec { - ... - }; - }; +You need to use "simple-scu-audio-card" or "audio-graph-scu-card" for it. +see "Example: simple sound card for Asynchronous mode" ------------------ ** Synchronous mode @@ -141,26 +112,8 @@ For more detail information, see below ${LINUX}/sound/soc/sh/rcar/ctu.c - comment of header -You need to use "simple-scu-audio-card" sound card for it. -example) - - sound { - compatible = "simple-scu-audio-card"; - ... - /* - * CTU setting - * All input data will be converted to 2ch - * as output data - */ - simple-audio-card,convert-channels = <2>; - ... - simple-audio-card,cpu { - sound-dai = <&rcar_sound>; - }; - simple-audio-card,codec { - ... - }; - }; +You need to use "simple-scu-audio-card" or "audio-graph-scu-card" for it. +see "Example: simple sound card for channel convert" Ex) Exchange output channel Input -> Output @@ -190,42 +143,13 @@ and these sounds will be merged by MIX. aplay -D plughw:0,0 xxxx.wav & aplay -D plughw:0,1 yyyy.wav -You need to use "simple-scu-audio-card" sound card for it. +You need to use "simple-scu-audio-card" or "audio-graph-scu-card" for it. Ex) [MEM] -> [SRC1] -> [CTU02] -+-> [MIX0] -> [DVC0] -> [SSI0] | [MEM] -> [SRC2] -> [CTU03] -+ - sound { - #address-cells = <1>; - #size-cells = <0>; - - compatible = "simple-scu-audio-card"; - ... - simple-audio-card,cpu@0 { - reg = <0>; - sound-dai = <&rcar_sound 0>; - }; - simple-audio-card,cpu@1 { - reg = <1>; - sound-dai = <&rcar_sound 1>; - }; - simple-audio-card,codec { - ... - }; - }; - - &rcar_sound { - ... - rcar_sound,dai { - dai0 { - playback = <&src1 &ctu02 &mix0 &dvc0 &ssi0>; - }; - dai1 { - playback = <&src2 &ctu03 &mix0 &dvc0 &ssi0>; - }; - }; - }; +see "Example: simple sound card for MIXer" ============================================= * DVC (Digital Volume and Mute Function) @@ -304,14 +228,7 @@ This is example if SSI1 want to share WS pin with SSI0 You can use Multi-SSI. This is example of SSI0/SSI1/SSI2 (= for 6ch) - &rcar_sound { - ... - rcar_sound,dai { - dai0 { - playback = <&ssi0 &ssi1 &ssi2 &src0 &dvc0>; - }; - }; - }; +see "Example: simple sound card for Multi channel" ** TDM-SSI @@ -319,19 +236,7 @@ You can use TDM with SSI. This is example of TDM 6ch. Driver can automatically switches TDM <-> stereo mode in this case. - rsnd_tdm: sound { - compatible = "simple-audio-card"; - ... - simple-audio-card,cpu { - /* system can use TDM 6ch */ - dai-tdm-slot-num = <6>; - sound-dai = <&rcar_sound>; - }; - simple-audio-card,codec { - ... - }; - }; - +see "Example: simple sound card for TDM" ============================================= Required properties: @@ -647,25 +552,102 @@ Example: simple sound card }; ============================================= -Example: simple sound card for TDM +Example: simple sound card for Asynchronous mode ============================================= - rsnd_tdm: sound { - compatible = "simple-audio-card"; +sound { + compatible = "simple-scu-audio-card"; + ... + /* + * SRC Asynchronous mode setting + * Playback: + * All input data will be converted to 48kHz + * Capture: + * Inputed 48kHz data will be converted to + * system specified Hz + */ + simple-audio-card,convert-rate = <48000>; + ... + simple-audio-card,cpu { + sound-dai = <&rcar_sound>; + }; + simple-audio-card,codec { + ... + }; +}; - simple-audio-card,format = "left_j"; - simple-audio-card,bitclock-master = <&sndcodec>; - simple-audio-card,frame-master = <&sndcodec>; +============================================= +Example: simple sound card for channel convert +============================================= - sndcpu: simple-audio-card,cpu { - sound-dai = <&rcar_sound>; - dai-tdm-slot-num = <6>; - }; +sound { + compatible = "simple-scu-audio-card"; + ... + /* + * CTU setting + * All input data will be converted to 2ch + * as output data + */ + simple-audio-card,convert-channels = <2>; + ... + simple-audio-card,cpu { + sound-dai = <&rcar_sound>; + }; + simple-audio-card,codec { + ... + }; +}; - sndcodec: simple-audio-card,codec { - sound-dai = <&xxx>; +============================================= +Example: simple sound card for MIXer +============================================= + +sound { + compatible = "simple-scu-audio-card"; + ... + simple-audio-card,cpu@0 { + sound-dai = <&rcar_sound 0>; + }; + simple-audio-card,cpu@1 { + sound-dai = <&rcar_sound 1>; + }; + simple-audio-card,codec { + ... + }; +}; + +&rcar_sound { + ... + rcar_sound,dai { + dai0 { + playback = <&src1 &ctu02 &mix0 &dvc0 &ssi0>; + }; + dai1 { + playback = <&src2 &ctu03 &mix0 &dvc0 &ssi0>; }; }; +}; + +============================================= +Example: simple sound card for TDM +============================================= + +rsnd_tdm: sound { + compatible = "simple-audio-card"; + + simple-audio-card,format = "left_j"; + simple-audio-card,bitclock-master = <&sndcodec>; + simple-audio-card,frame-master = <&sndcodec>; + + sndcpu: simple-audio-card,cpu { + sound-dai = <&rcar_sound>; + dai-tdm-slot-num = <6>; + }; + + sndcodec: simple-audio-card,codec { + sound-dai = <&xxx>; + }; +}; ============================================= Example: simple sound card for Multi channel