Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756571AbcJSGN5 (ORCPT ); Wed, 19 Oct 2016 02:13:57 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:34414 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750947AbcJSGNo (ORCPT ); Wed, 19 Oct 2016 02:13:44 -0400 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="223313150" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <87inso3meh.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> <871szd3z8l.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 06:13:39 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0112.jpnprd01.prod.outlook.com (10.167.154.30) To KL1PR0601MB1446.apcprd06.prod.outlook.com (10.169.69.24) X-MS-Office365-Filtering-Correlation-Id: 3c92d4cf-d83a-474a-72d3-08d3f7e71225 X-Microsoft-Exchange-Diagnostics: 1;KL1PR0601MB1446;2:Sq8ww6doDUKihFPrgvADf0Ws+UFpKeCNlFp+3x9AEDzAfEbCYfXemmga9r5ybLVkauG2f1vnK49SjJX+4tsqKXXBubk6+U/5Zff6rSzGO3Qdese7gFhx8g1BOgjVBZc13uwqAp5Q523f+iv231lYl+FkZ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QjfLPUoMEsuzH3mfuuGnMdqz70Q79ooVbkMU5M3zn/2Lig0ItT7x84LMZizcuCgbErOTXsFEKCeynyWf1V9ZZf2ioYM8RrIsOSj1O9jUj8wlzrhR5xRW6LPwghGYtbByMAJmgdMiVtmSKM1LsAwQstV8kqoPA0FEzUdJiZZRi3x0Z/vbxHUJxbTiDRRfhLHqMJcf3OWeMr4sADLNYIpdpD9+FHPIvy6AmSOzXI0vQEM563d0MNPXfWEYqUS6fEikssW7ESxU4cDh76HSpJdtz3P3Y/BUcNOrrjjA0M1dO8rKBk2/wkA3M1Lm5Y69iESvmBabPDIt/6VrVqMGvxxMS0GY4K1VbtKDqy9cvYEVtKzC09iJdfrtt4U+Ic7wV649eTRG+IeRk0H4whgHWhKJ2x237yf+q908w97cLMRr5IBFRAv6oQAGuoQczbl0jJ1EVfOBoxuuTaNaSs41O1En X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(21532816269658)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026);SRVR:KL1PR0601MB1446;BCL:0;PCL:0;RULEID:;SRVR:KL1PR0601MB1446; X-Microsoft-Exchange-Diagnostics: 1;KL1PR0601MB1446;4:iC1CYLCzO0sDXcujZF9UcL4SRuxuSf5DBoiyG/1AUtyJo0PWu0ua+G/ueh98pmt2/euESAyROjodhKHB9zML2DEgWsFfDzBCkx9ACgKvnFm5NaUGuS1xwCadfbvazFEXJLq8WAN9cjMG59ZP2CFDvxvg0QlHRevPJ3K3Er4LCydfzYQBRObqlnMw9E651Ay/QxRyZtjuad+jZruJGAKxlkH+8Nk2bI/96A0f5pzrV8qYg7wJkIR0uL90TaEn7R++n1s/nPmqDiDkJ85uKxOSYTK/ZgdPEDqljTeuMbfF1XRPSp68xT2pMIDJ+SN0vP6oboHmyadsjysAeWjBaIbWt55LP3W6MIpnb3c2B6nH8kbEVeHali3f+upTGwUUXUB/zmdecpQ5z154SjMQaukQgCqJk+LpJ4Tu2G7JoclTW3oPdqPt98MxFY6OvF3aGRTHgMVhhpsfc4PeiUjtfLlsm4FNov03GE+iUVo4uLYZxlsiYGX9YcotBTTdXUdTt7br X-Forefront-PRVS: 0100732B76 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(52314003)(199003)(7416002)(33646002)(42186005)(36756003)(86362001)(4001350100001)(7846002)(6116002)(3846002)(77096005)(23726003)(305945005)(19580405001)(5660300001)(97736004)(8666005)(81156014)(47776003)(53416004)(66066001)(106356001)(105586002)(81166006)(50466002)(230783001)(46406003)(586003)(101416001)(345774005)(92566002)(83506001)(2950100002)(69596002)(189998001)(93886004)(4326007)(2906002)(50986999)(110136003)(7736002)(8676002)(76176999)(68736007)(54356999)(7059030)(21314002)(16060500001);DIR:OUT;SFP:1102;SCL:1;SRVR:KL1PR0601MB1446;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;KL1PR0601MB1446;23:I6Vhe3jrg37LaFpmIh38GtK0WdUP4yZuwAlJcsm?= =?us-ascii?Q?sjpJ9uPx+iawiwB9TKv3WvW8uHz+UANyM+CBtjeuu5BhQFmMfrESsfCH/sTo?= =?us-ascii?Q?9zys/yM1tJVwhU2jlcllPoAik9ZpaURZalLfyvSARPNUriWn1I4h7ZOB9vhm?= =?us-ascii?Q?JCLegjHHbIQvLo6ZuW8sWayXehkbnbRMSjNKjJ6H4EHqMBlNKyMuwf6n7G1O?= =?us-ascii?Q?wf3U5janicoB4vZHUG/dqNw21WbFs6FtR9ifrh6tSg9fVCa83ZFxQ86/25nV?= =?us-ascii?Q?FN53cDitFiAXi4bw73sT2K8UWZsC+dPHBs6Vae2u4+9flgxPUm7Lt/n70JSO?= =?us-ascii?Q?kf80kSEvfKC0inQ5rIc/WeHcxXgMVmp8FxthO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pUAeHYEjdU2c6HM5eX3jGSKCbsHuh2UO/yXss1+S25ot+pnT3f9Ua9nZIPpV5OvnMSbjPPJnVRyilutCDq7yCcleqMeRFfGxSer/UO2j0x1VAxvOabXxaz/5xGGU+8h6KI9dlsa3BVOxeENjI=;20:XD3tYhpgQv7Nf+kTWdp8WOM2fwxSij3KGpUqaKs+9oZlRt+gdYzuj3LW1Lw6+/A5yj7e1ogeGbsD2Tmucm+BpgY2qcJZyWZHtbMaIrPUJLCcIwT3BAOBbJbIeKNC+NScmVmgOQj0z6WKI7uHP9r9tOoudhTh78K569yF2YpemEA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2016 06:13:39.1721 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB1446 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3053 Lines: 72 Hi Rob Thank you for your feedback > > 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. > > For HDMI, the port number should dictate which one is video and which is audio. Hmm.. I will consider about that. > > ports { > > compatible = "asoc-simple-graph-card"; > > I think your problems start with trying to extend simple-card. This > binding is anything but simple. I think using OF graph is a good idea, > but trying to make it completely generic is not. Current ALSA SoC basically needs CPU/Codec/Card drivers. If we use this new simple sound card, DT needs only CPU/Codec. Card part will be created from CPU by using compatible = "xxx" (= Card driver itself is needed, but no DT) This "Card" part is related to its whole sound system. If you want to use normal sound system, it will be "simple-card", if you want to use feature sound system, it will be "xxxx-card". This time, I'm focusing to simple one, someone will create xxxx-card, but it is not me :) > > port@0 { > > simple-audio-card,format = "left_j"; > > simple-audio-card,bitclock-master = <&rcar_ak4613_port>; > > simple-audio-card,frame-master = <&rcar_ak4613_port>; > > These look like properties of the ak4613 to me, so put them in the > ak4613 node. If they are standard property names, then you just walk > the graph and get them. These were "Card" part property, not ak4613 property. It indicates which can be master (CPU or Codec) on sound system. > > type = "sound"; > > rcar_ak4613_port: endpoint { > > remote-endpoint = <&ak4613_port>; > > playback = <&ssi0 &src0 &dvc0>; > > capture = <&ssi1 &src1 &dvc1>; > > Not really sure how you are using these to comment. I'm sorry, maybe your confusing is because this sample. This playback/capture are Renesas CPU specific properties. Renesas CPU port needs to know CPU-inside connection. > > 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>; > > If you are trying to describe a connection between hdmi_snd0 and ssi2, > then do just that. Add a port to ssi2 and connect it to hdmi_snd0. I'm sorry, same comment. This "playback" is Renesas CPU specific property. It indicating Renesas CPU inside connection