From patchwork Thu Aug 25 01:58:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9298585 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8B2C260757 for ; Thu, 25 Aug 2016 02:03:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7889029157 for ; Thu, 25 Aug 2016 02:03:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D29B29160; Thu, 25 Aug 2016 02:03:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 898A229157 for ; Thu, 25 Aug 2016 02:03:35 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2BBF62671E6; Thu, 25 Aug 2016 04:03:34 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 410CF266C43; Thu, 25 Aug 2016 04:00:21 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 38DF5266C3C; Thu, 25 Aug 2016 04:00:19 +0200 (CEST) Received: from relmlie1.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by alsa0.perex.cz (Postfix) with ESMTP id 467FE266FEA for ; Thu, 25 Aug 2016 03:58:15 +0200 (CEST) Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie1.idc.renesas.com with ESMTP; 25 Aug 2016 10:58:13 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id E93674B079; Thu, 25 Aug 2016 10:58:13 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id B73948002F; Thu, 25 Aug 2016 10:58:13 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id A65868002D; Thu, 25 Aug 2016 10:58:13 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac1.idc.renesas.com with ESMTP id LAF31894; Thu, 25 Aug 2016 10:58:13 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="218581431" Received: from mail-hk2apc01lp0208.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.208]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 25 Aug 2016 10:58:12 +0900 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; bh=jPAMeR60d6PRb2b4KclucFkJfY3NZY/8DZXy0t8aYSs=; b=OoVFUvAcb9+G2CBfTiWj+P/eqLPY04O4K6MCpEto+u4VGKmJcGPHQjPUBzPVVX3nc2OGLGpunfp7zt9z1jwzP2phbXo4lL5Y1apBWvKaaeCClodJWchBSG1808jJvyJdo4hIysQtbFSr1Q1EJAd4j5PxB+mHYLC/Eji5dXvNMpw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by PS1PR0601MB1450.apcprd06.prod.outlook.com (10.165.210.154) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.21; Thu, 25 Aug 2016 01:58:10 +0000 Message-ID: <87eg5d1ut9.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown In-Reply-To: <87mvk11uxo.wl%kuninori.morimoto.gx@renesas.com> References: <87mvk11uxo.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Thu, 25 Aug 2016 01:58:10 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0013.jpnprd01.prod.outlook.com (10.161.131.151) To PS1PR0601MB1450.apcprd06.prod.outlook.com (10.165.210.154) X-MS-Office365-Filtering-Correlation-Id: 0a306e99-503b-461d-25b2-08d3cc8b4425 X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1450; 2:GSYcaqAND8GD/zb943aLB/eHWLarMLd91zTOhoo5Rzo+e2O2JDB1HuZH3GuEUkjTc9LLHHI+OGgHWWeyDOdJDnx88ExENA7OwCDcuaCND4DuHW4ZcmeHH4IcnES7m4DErsEhkVDSXViOtbWfDnAvcgbEMNZAk0QtJdXUDvgEMBHBV+NhRk3b0HzcBokT0pGV; 3:YeZ2oYPnLO0qGxw3dtZuLh9XJEnjcVA/q4fbnhh7+Om2bMesD+7Vr1PNMhoaN+VTzbCT7hWzvkPqqGvpuTKIXbMvatZcKippm1AgU3GpOr0lx8cRj0LbREYLNh1QNsv1; 25:fVp6iKKlykIetMALSSSNAlniGAiJ+Gcp3QNUXsPT5HeHFQ4hkYD6RWHDz5QfCkkn5yXPAovCB0paMLow2lGszuduFvwtrnfAC6kaUm8t+481t10mv6hvFBmXxTNru9frRmPyKclqviecHBzX7M8yjvDlSyutceWSq0DpmGo0XOFtRGfbzquhFUD6D4XEYc1gnsJ7HxvgsXGr1Se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Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:PS1PR0601MB1450; BCL:0; PCL:0; RULEID:; SRVR:PS1PR0601MB1450; X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1450; 4:Hx4FdGheYXkX6ryrhL5yxbrog4i8d0TLSEez0nO6UgWz9XRXnJay0vlqgVwI/k/FN0Kg94MA2CaaKqr1uCRNRba7IzADn//MaiPQw9Ti9xJuLQL4aeXKiDobBG++nw/HzPbpx46lPiuJPbh8FmxHSCFTePCwgm+Z2mb224g5irg4UGxnVZzxXPQD8KQAycPKOEaJNi5FNitkYRF0EJI50YiPQ8U//eayizsAVji/pDoha/CJyWFJH2Uy7R/9j/6K4w1JA8a6YUyAfyqnTRBf1NxZ0Mh1LZBPNj/cX+hqUExOkAABgOyh3pqOretCckwEaji4aeuvN3cygRcO14d5ihDIxko/6yoQAcwUra0DENcHkKaVggyyI9i7ouI1njvKThs7VXoKT6UmWgBFnI43Jg== X-Forefront-PRVS: 0045236D47 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(586003)(3846002)(46406003)(6116002)(97736004)(66066001)(33646002)(47776003)(110136002)(92566002)(86362001)(305945005)(19580395003)(19580405001)(4001350100001)(36756003)(77096005)(83506001)(189998001)(53416004)(50466002)(42186005)(2950100001)(106356001)(81166006)(105586002)(69596002)(229853001)(81156014)(2906002)(50986999)(101416001)(8676002)(23726003)(68736007)(230783001)(54356999)(5660300001)(4326007)(7736002)(7846002)(76176999)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:PS1PR0601MB1450; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; PS1PR0601MB1450; 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OJGqYJM0s+JCSkOaI6QK7ICJRx5/WW19uYsAN0bRDRZ5ZaKsPYcUhs1vm/aapaQ7PEkH868tcAAtXuZN5wOG8uVpNJBcheUpgdEHDlPiU1qvmL4uydiL1m65iyh2ken9EpY1mX3jWB1nNF9JP4LpCPi55aZp9pxVAyV0+rksNT/BgcFinQsy3sahy96Uih0M9gq6Ppy6bWP7F1FtqbHxghxMh/NgTETavK2LToFmeAnHF06riFFpzbrV SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1450; 20:BybLfL/arySybl5pCN+guKO6V+KmY8+NP9jdV2Qyas1tUD4q8zXgIvWzYJC+1TJyVAUP8BjtRCJ6ynTWjHMPF9knXLQrKnZwWGumVAe5YohGAEPwdpIFbl+I+k9RFqssF+N1muoyuBZFIWfsi8p0vZ+zAvw65GbkVeF1LeL5/iU= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2016 01:58:10.2024 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR0601MB1450 Cc: Linux-ALSA , Simon , Liam Girdwood Subject: [alsa-devel] [PATCH 6/8] ASoC: simple-scu-card: add 2 CPU 1 Codec example 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 Signed-off-by: Kuninori Morimoto --- .../devicetree/bindings/sound/simple-scu-card.txt | 32 +++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/simple-scu-card.txt b/Documentation/devicetree/bindings/sound/simple-scu-card.txt index ecb4a24..d6fe47e 100644 --- a/Documentation/devicetree/bindings/sound/simple-scu-card.txt +++ b/Documentation/devicetree/bindings/sound/simple-scu-card.txt @@ -52,7 +52,7 @@ Optional CPU/CODEC subnodes properties: clk_disable_unprepare() in dai shutdown(). -Example +Example 1. Sampling Rate Covert sound { compatible = "simple-scu-audio-card"; @@ -78,3 +78,33 @@ sound { system-clock-frequency = <11289600>; }; }; + +Example 2. 2 CPU 1 Codec + +sound { + compatible = "renesas,rsrc-card"; + + card-name = "rsnd-ak4643"; + format = "left_j"; + bitclock-master = <&dpcmcpu>; + frame-master = <&dpcmcpu>; + + convert-rate = <48000>; /* see audio_clk_a */ + + audio-prefix = "ak4642"; + audio-routing = "ak4642 Playback", "DAI0 Playback", + "ak4642 Playback", "DAI1 Playback"; + + dpcmcpu: cpu@0 { + sound-dai = <&rcar_sound 0>; + }; + + cpu@1 { + sound-dai = <&rcar_sound 1>; + }; + + codec { + sound-dai = <&ak4643>; + clocks = <&audio_clock>; + }; +};