Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933238AbcJSBgw (ORCPT ); Tue, 18 Oct 2016 21:36:52 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:30960 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755805AbcJSBgj (ORCPT ); Tue, 18 Oct 2016 21:36:39 -0400 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="222722361" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <871szd3z8l.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Rob Herring CC: Mark Brown , Linux-ALSA , Liam Girdwood , Simon , Laurent , Guennadi , "Grant Likely" , Frank Rowand , Linux-DT , Linux-Kernel Subject: Re: [PATCH 20/23] ASoC: add simple-graph-card document In-Reply-To: References: <87shrv4c8x.wl%kuninori.morimoto.gx@renesas.com> <87zim32xbo.wl%kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="US-ASCII" Date: Wed, 19 Oct 2016 01:36:27 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OSXPR01CA0079.jpnprd01.prod.outlook.com (10.167.144.28) To SG2PR0601MB1456.apcprd06.prod.outlook.com (10.169.106.22) X-MS-Office365-Filtering-Correlation-Id: 34ec826c-7cb5-46c7-62c4-08d3f7c0590e X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;2:HabmJj6sXaW0ECRefEuieHxQl00xuF/AYp4BW3BTmUqLVKVTlnIbqBi0pr8F98cbvvXaz7SDorUBGwTRBap31+tZcw/41LGvbGw7+ItJhIgWXcu4+X50hz39qYfvtGsK5+9FCb0Xk9rXl9Yut9f33BFdRDt+u99Z/f9DZaqKd5m/QUds5agxEJUgk9O0Tu5McASGo8M3tw522ShUt+nc9Q==;3:0Qdc2O7gXNyLCyXvcOuOiaUTwPaHvCe4LLMZaMuMpviIp/ORi6izN9vP8udXR0E6RqEZrNEHPYdV3xXOgHEq4CAbP1midXatqOvzWMLs8NE+mAKEhGjkHkUwA/EXp4J1JEONpbi6AiLUQYghugBMtQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SG2PR0601MB1456; X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;25:RTQPEZtGpkQL09YvixJpy9kaRXUsYFuuT1ZKLZawQF4SuEgvG05XDCUYjsZHWlchDNuyC1YnGKEzg61EtQTshERz54HASNVwciYRHGVZ9WCpkI8xbhHXLrSTL/yhcItG2C8Dj7L3kYbaCE1dM2dr3gABohWVsXqzBZZrWwTQ1QuxmtbWtrDDs7s7VEvN4D8HUXGqzNr0QQqskmWadmJdoZ9FJXCGX5IUa48GYjQjWp78LaAtCvbrl6nxOeNtD4tVL2Vm9FDaDI2JBaqexDSFidnDIKwDQGukTmAiIfIPQWuEZ2hi54aHdq6BUgIIVdFcoY8FcjbJdNHH6yu0UPnBMwNs7pvAkjvq5FZxMqclufPghUmpcKyXkCzpoC4dAaR+0UeM2uoBYNDUSj6nb4fuegpkvbPq6Okevdo/slYtNq6zBm0waGKxl1qpZgz4xliDUqzR1rOd70KxaTz/h/Qum/q7wcqdfJoru3ZRU9rce4dPWKdK2z4xbFqjaMauPFCdAQtyYh4KsyU422h80736M5qzeuXpBEd+ker2i2FBgLns2lMW/ilzx/6DQLYpAo84idJdKiJqVykWcPICzu94i6spJZdgC66CjfZyGgzD4xUmCv2299iUHw7N8MIrAqThYTM6FxES2kqBQF3icFYLE/BvSf4+n9GOJOwDhh3qyyVX7eH1B2oYu3gfDzDOG6mQgWN7M5cCidxW+0o6g8G7IA== X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;31:CH+CT38ZV5qD9lLtDnDbhHlw6KUUMy2BGAxO6T595YL2iPhcnX7bcKu0Xl4W6T0hrj0s5T1lFjxmIdUyTF9pwGibPY3RGeiIf7CUtgq5gi8aYGE+YMX0RqNuvvCDxnaScdskg/wKsekmmXyyJfp65ry8Kt/c8F6p9Ddkb+gETcKJg0jKX2gLnaRq7HYJHnurkV2jztlM6gOq/RlXKHdqaMZL5VlC/sxXYy2g9KVvuQw2jL9p+yxDZYDdlBydgeEm;20:vW2V5rXVHrVaAX2ogc9yvyBQiGpvtUEvA/Hk1Jrn+ZaK6XvJtc8Tf82+y9ZcS5LdlYz20pYyQumsuu7cc2ZTyC6H52FShh5VwghO9OJEU/Z9KEs7a5x2qGe8Ap1g2n4GmWlgumfNs+SrsdiW2QeOkPi6rNmv3xZKKwjCbGyvnfKxWCXgD2ycDT4xDCmVEnk4IR7jXGkJuG5Ma6yPVdvXO8XVQD7V/V/tXBoEHXuxFv2qRKPXG3fOHHw471XQhbGes5EldzXaR/9/4cPFMmxKO+QbRwRk/h01FUHO0aYoAnWycMo+Ef6eM77RK1iiMEnTspDrLCLkjvH1PAOoPG+NKl1M7vJEL1HQMfs/xEYYYuD5MMo3tmnLE3MQJ6cY2XOeW1j1lJEI8TgobDCiYsG31xSZmreU2DPpeypapF1PxDE9Wv3nZ/EMs/rMcCX4OdLFn3hY/+Mo1m7irigao/Cg95HHJaAXhnHux8lYPbjFtmwYothxyb3JC3pjcPCbUCa5 X-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)(10201501046)(3002001)(6055026);SRVR:SG2PR0601MB1456;BCL:0;PCL:0;RULEID:;SRVR:SG2PR0601MB1456; X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;4:VMS9z7l9GkCMKory1+1yWZEd4qrJ1VXg6bLjQoY+M7wALgT/lIzrNJp6CQoXcfX8kdibRjO3rHJ+wVy3uBLb7+3/bDnqBwc34XuAi5hGazfe/r9AW2knvRaMBrhuS15ZZcI+mqSrm5LhXMl3vESdLNoKazPVN4GropP9/skGBLfgpHZhHO8bdC5dXGITujGqRc9+9Mo6H8W9EmL/NMoebyIjLPQ8WgK7jdKrps5r8fo46nbmVPA7/SCm1eNvvsF7L3Lu8XGGJi/CTJtGZaukjLyHP1btjo3mhnyWz6j94RWSYPhzqbkyWNakx1OFMIsifrQ8OrRoCwChQDBp5JKJx/XLb49ZnJ4Q1Ak2AwBZ55UBg81ZKlwiDwvRkgDEpNbYH0fnWduWdF/jMQkpj+L/pL6b3K1Z7Op4llRubPUTb4s= X-Forefront-PRVS: 0100732B76 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(52314003)(199003)(4001350100001)(46406003)(106356001)(8666005)(5660300001)(6116002)(77096005)(105586002)(3846002)(586003)(110136003)(7416002)(66066001)(47776003)(42186005)(68736007)(83506001)(101416001)(7846002)(50986999)(54356999)(86362001)(81156014)(69596002)(8676002)(23726003)(4326007)(97736004)(2906002)(189998001)(33646002)(76176999)(2950100002)(36756003)(81166006)(19580405001)(92566002)(305945005)(50466002)(53416004)(230783001)(7736002)(7059030)(21314002)(16060500001);DIR:OUT;SFP:1102;SCL:1;SRVR:SG2PR0601MB1456;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SG2PR0601MB1456;23:2Eqg14tw8q/slQoh9yKFWI/iZcNtsHXhFie+uhC?= =?us-ascii?Q?kUyLhlODZ8pGtK1Md7h/IKqqvYlIs1WYko+rlJaV9Lns0y1CTRIdm76XRJ1g?= =?us-ascii?Q?+Hv2uFsnEljyYu0WO9Mud+qYcKRVPb37WrhuDx+UkWx+4AFmTh2gRb7hDmtK?= =?us-ascii?Q?5pXHfPJ7SKKyjhvWriWZIX+Hk8am9z+v8juLCPMU/w/2008QOZMlW3hKLzYP?= =?us-ascii?Q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MZckkclvo6yKlpRl7KdOe8FLw3ON34j?= =?us-ascii?Q?5Zy3pMBjzBJ3VQg5unED266iBtQBaG3tceMKhmb1XdVEh6cBuEh8RbFDDVh0?= =?us-ascii?Q?LLvZigUYgtgJJU1/IH1JTqEqogiQD4FVEKaIq/zwp+4xoAejEFegLdPZ7P/x?= =?us-ascii?Q?m8hBjv5DKmVhWhmRdqWpTQmaNU9DHGmrzgVe8BOvK?= X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;6:g8LwqP3r/9LfOuqTqETOoHWQpR2zU6DdZls7/dAw4plIw8JN1353YIXPBhTk/Qg6vlo66h4Fm1xO6r9VzOltQFW1rpAAiMbfrr4QwC/TVO+vngZ1U/UGv3iG30vhaf/MHHnBEcu+8YWkYDXzLCLlf1HtA7C7V4neRj7hn7P2urcDF6g3VrrTVEWzEC2Y7hGB0xpXD/n2nzjIY7vDGwBk2hrFVDPQINHdsYHO04BCjWiGakLCl4ydC1FWqoDzT2Bi0baPDF38gbTC1Q4nNDZD1DTPD9bd5mdrV5nxC5YF4Dljsun8zxy7AaEahm2BJOEQR6Vs9hmo0pij0ZFbyg+mIXTSwbouv+NXTdI81fee4QE=;5:rztAlZyHD6Bz+1boLBMKqd+/7QQls6pU3hCNCINTFucBSogAbqvsjGjfgtgY88amZMjSzWoRFJZotOPEHFuW4aAFz4l0iRL2ccU4YV4c2F0iXos9bMR2ZhlWKp7VYXw1JbI41HkLbBcDuRbPY9D1rp/8ROdoJEzgOqoTakl5b40=;24:8NENAAg7EjzWbqf6UFNGV03pVvSAZ2Fp0NBpps00KVHe0iM376kS3XKqVYJKXiXPt84EB81aRqGRCaFPcYbl80DuVVGRco3GUVKknYRFwc0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;7:ChSCMIusMm4U3z4S627IiXCblzKW2AeOB6q+FN3sY7UwF226NyRXvLnmDP1HoMYS7PoPrMmgq9E4hXFUgkwH6GyB36HthxXbwgysMPXfpmmj8DfDQVQe1J0qA5zSNV6o1Pi5ANveaNh1BPuccFofYjQqW6OrUHpz9Y6uVyNjVWxn3OThzHGV35ilW4Y4WfRwYYLoJfNR/XxNkLeHF0SSdJ2STFSMHH0wb9Sp+FDJSKzS+jVvsIzGE3BXCfQKIsj2csF6SZjGPxEJXfFIDNhg3zxv8yTTIRuZ8rhTxMphSscLb6OHnRvmxFzHB/RueuXUxRNIJzmgNdM02eaDwzP4/dm1hN6Olar9bvtoYKROCQI=;20:4bL5LBcIQvTxXDv6LYy9UDP1R01PN6xJua0bHv8Slyq0w+y9n+f9z7keTnOoF4nAmaxPB8VciiP1+9gnCZh4RyZlXn9Ah+bsxDHiaAmDHw/TwEY7xbZg7ZT52FirN1ECwv1dXnWWKOPoFRds591Dncd5BeNosCj1/A/2nm9uZLU= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2016 01:36:27.6828 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR0601MB1456 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2948 Lines: 111 Hi Rob > > + type = "sound"; > > I'm still not convinced this is necessary. This is implied either by > the fact there is only one port or perhaps the compatible string. Do you mean "on this sample" ? or in general ? Indeed this sample is definitely for sound, so type is very clear without property. But in general, for example HDMI, it want to know port type. Anyway, I can remove above "type" from this new sound driver. > > +rcar_sound { > > + ... > > + port { > > + compatible = "asoc-simple-graph-card"; > > + > > + simple-audio-card,format = "left_j"; > > + simple-audio-card,bitclock-master = <&ak4643_port>; > > + simple-audio-card,frame-master = <&ak4643_port>; > > Don't add a bunch of properties with in port and endpoint nodes. The > purpose is to describe the graph. Put these in the parent node or > perhaps the codec node. These properties are needed on each ports/endpoints on sound at this point. If ports/endpoints can't include these, I need to separate these, is it correct approach ? ?? see below -- current style -- ports { compatible = "asoc-simple-graph-card"; simple-audio-card,name = "graph-sound"; port@0 { simple-audio-card,format = "left_j"; simple-audio-card,bitclock-master = <&rcar_ak4613_port>; simple-audio-card,frame-master = <&rcar_ak4613_port>; type = "sound"; rcar_ak4613_port: endpoint { remote-endpoint = <&ak4613_port>; playback = <&ssi0 &src0 &dvc0>; capture = <&ssi1 &src1 &dvc1>; }; }; port@1 { simple-audio-card,format = "i2s"; simple-audio-card,bitclock-master = <&rcar_hdmi0_port>; simple-audio-card,frame-master = <&rcar_hdmi0_port>; type = "sound"; rcar_hdmi0_port: endpoint { remote-endpoint = <&du_out_hdmi_snd0>; playback = <&ssi2>; }; }; port@2 { simple-audio-card,format = "i2s"; simple-audio-card,bitclock-master = <&rcar_hdmi1_port>; simple-audio-card,frame-master = <&rcar_hdmi1_port>; type = "sound"; rcar_hdmi1_port: endpoint { remote-endpoint = <&du_out_hdmi_snd1>; playback = <&ssi3>; }; }; }; -- separate style -- ports { port@0 { rcar_ak4613_port: endpoint { } }; port@1 { rcar_hdmi0_port: endpoint { } }; port@2 { rcar_hdmi1_port: endpoint { } }; }; sound-xxx { compatible = "asoc-simple-graph-card"; port@0 { simple-audio-card,format = "left_j"; simple-audio-card,bitclock-master = <&rcar_ak4613_port>; simple-audio-card,frame-master = <&rcar_ak4613_port>; }; port@1 { simple-audio-card,format = "i2s"; simple-audio-card,bitclock-master = <&rcar_hdmi0_port>; simple-audio-card,frame-master = <&rcar_hdmi0_port>; }; port@2 { simple-audio-card,format = "i2s"; simple-audio-card,bitclock-master = <&rcar_hdmi1_port>; simple-audio-card,frame-master = <&rcar_hdmi1_port>; }; }; Best regards --- Kuninori Morimoto