Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp14034rwr; Wed, 3 May 2023 21:30:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5XYS9hT2VrWlBljBoV1ibNR3p7E6AU8MkBtcqPoUw+vj7tsMP+DUkJounNwAq2CavSxkWa X-Received: by 2002:a17:902:e549:b0:1ab:d6f:51b0 with SMTP id n9-20020a170902e54900b001ab0d6f51b0mr2802462plf.18.1683174600199; Wed, 03 May 2023 21:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683174600; cv=none; d=google.com; s=arc-20160816; b=goeb9kjF8YDsGslggLjahHaBh0Ex7NsKOegE/uppkJOSNoZpzL0XqkSq6Af41huRhm 1hjvijq7z23YgXlm2DfqoTBaRpncvyiSzi26t0+kDjN8e18KMHT0wUYurYIFXUKDgfk+ U/IwGYUNnLG2hPnDaThgrNoPEg561bwZDcs4t2cTL3eSkl5sgmF5JHaqsz7VV2EdipIe gP8eIZvK2xFhAGvg6vLsTu9wGZo7vxyQklCVDZiOZ1SuN4yDAtyHGV49GiArnvUn+cnv lKYk6qPUPTbpx8XDS801E/ZKmqf2y8DWaJcqvLD554/e3KpzorO7ht0feq9PkPIxnwDd WcIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XIfqlUdyr5xJcriWlF8IKONi/il6fsfKvNvQlnMoDxE=; b=ksJGzXZgnyDkKXbSuGb7r/GgD10Ilsabh8XPOC9Rf8z7VXgyiZqfTQHZQoObytWLgE x8d/6f4ky6ANQkPu1r/znJe4IbuMr6MLLECqSUO1Jn0diCRVztHQyp8zUa1cz5WYoGUm +fkJSi8FfdBKP16h179oMKO0pFadJ2jROZbQXiT03s1r3Tk74KsDGwG6xAeMWTvP9ipe KA4mOHc0qe5OViCg4zwlKreA5omi1iGcTnkF5BZmmy2zyMcvfSGcodVKBbVQk8eWdc84 bSBzN+ercdJwTIga2R2XcyhfJ+ZOj904+fFazx8E39NcD0mJ9bvxwASxGpcOzsOJUIH0 I7/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jgh8mT0T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u9-20020a170902e80900b001a92a507187si9051531plg.80.2023.05.03.21.29.43; Wed, 03 May 2023 21:30:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jgh8mT0T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229524AbjEDEWl (ORCPT + 99 others); Thu, 4 May 2023 00:22:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjEDEWk (ORCPT ); Thu, 4 May 2023 00:22:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEDAB19BE; Wed, 3 May 2023 21:22:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4068363182; Thu, 4 May 2023 04:22:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 099C0C4339B; Thu, 4 May 2023 04:22:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683174158; bh=exMwIMNf2HDjkzVg/vgc5dShzanK1eETk2nuIq0YR4U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jgh8mT0T+ZMEbVlQoIlMMBE1QVmWnOJAFahVVZciUWMhNUg3ZRHkjjaSYRgY/XH9N ef5K4JrGKaf35pfRsGUJK8cETAbMXc6PwcEff+r2lBqrMXELs8UyS4Sn4jJMWdQLsu zX3tji7xrPc3zc975Ypo5p98mZ3cbFmffE0hZwvaWqnRgsoIkr3PUJPoMS1aqMEnRa 2Hc2qS8eCJcic27uXj+zeBLGnMCQbubrC+EVF/oyJcRL+z+vqYOq7t2s0eQJgJdPsI WXMtcYuGz7Rz1SNiQXm+ft8wTKolVoelR0muPCY9093DcTsCwCakJyUxM11L9KQjBM op6Y33zA3Dp+Q== Date: Thu, 4 May 2023 13:22:35 +0900 From: Mark Brown To: Krzysztof Kozlowski Cc: Herve Codina , Rob Herring , Liam Girdwood , Krzysztof Kozlowski , Jonathan Cameron , Lars-Peter Clausen , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Christophe Leroy , Thomas Petazzoni Subject: Re: [PATCH 1/4] dt-bindings: sound: Add simple-iio-aux Message-ID: References: <20230421124122.324820-1-herve.codina@bootlin.com> <20230421124122.324820-2-herve.codina@bootlin.com> <20230425173029.GA1967523-robh@kernel.org> <20230426093621.3834e703@bootlin.com> <5bcb2741-9212-f1aa-335b-6bc4b6fad448@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gAqgDYGpNO6m8hZu" Content-Disposition: inline In-Reply-To: <5bcb2741-9212-f1aa-335b-6bc4b6fad448@linaro.org> X-Cookie: Avoid contact with eyes. X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --gAqgDYGpNO6m8hZu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 02, 2023 at 09:26:32AM +0200, Krzysztof Kozlowski wrote: > On 26/04/2023 09:36, Herve Codina wrote: > > Rob Herring wrote: > >> On Fri, Apr 21, 2023 at 02:41:19PM +0200, Herve Codina wrote: > >>> simple-iio-aux allows to consider these Industrial I/O devices as > >>> auxliary audio devices. =20 > >> What makes it simple? Any binding called simple or generic is a trigge= r=20 > >> for me. Best to avoid those terms. :) > > I choose simple-iio-aux because some simple-* already exists. > > For instance simple-audio-amplifier or simple-audio-mux. > > Do you prefer audio-iio-aux ? > > Let me know if I should change. > It means that often what people call "simple" and "generic" works only > for their specific case, because it is not really simple and generic. > After some time the "simple" and "generic" becomes "complicated" and > "huge". Conclusion: sometimes simple and generic bindings are bad idea > and you should have something specific. > Your description in the binding also does not help to match it to > specific, real device. Provide the examples, as Rob asked. I don't understand what you are looking for here. IIO is a subsystem which represents generic DACs and ADCs (along with other I/O things). Audio devices also have DACs and ADCs, somewhat specialised for use in audio but more limited by specs and interfaces than by anything fundamental. The goal here is to map DACs and ADCs described as IIO for use in an audio context. ADCs are devices that convert analog signals into digital values, DACs are devices that convert digital values into analog signals. > >> How do support multiple instances? Say you have 2 sound cards (or 1=20 > >> sound card with multiple audio paths) each with different sets of IIO= =20 > >> channels associated with it. You'd need a link to each 'aux' node. Why= =20 > >> not just add io-channels to the sound card nodes directly? That's=20 > >> already just a virtual, top-level container node grouping all the=20 > >> components. I don't see why we need another virtual node grouping a=20 > >> subset of them. > > I don't see what you mean. > > I use a simple-audio-card and here is a full example using several > > instances: > Just like Rob said: "You'd need a link to each 'aux' node" > and you did it... > So now the rest of Rob's answer: > "Why not just add io-channels to the sound card nodes directly? That's > already just a virtual, top-level container node grouping all the > components. I don't see why we need another virtual node grouping a > subset of them." > Why do you need another node if it is not really representing a real, > separate device? If nothing else I would expect it to be useful from a comprehensibility point of view to bundle multiple IIO devices into a single multi-channel audio stream, an individual IIO device is likely to only present a single channel of data but it is common to group multiple channels of audio data. --gAqgDYGpNO6m8hZu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmRTMwkACgkQJNaLcl1U h9CpIgf8DGHa33KFaEBu9orPEvy62t4yb0j+p3Xoar2zISlY832/jm9hk/8oYSdy etd75hsgD7l1/K6l08YwHxuJX07geLoyEnyUakiEi+w4rZVBJ8z/Vj+XN2lV6eq8 VJwUq+kvpY63mjLQodrOLSH9ixNk24ab28aU5CWrw9qUPKfTSLIJLoh9ZkH081eL nBl+himFtVaWSmQ4+6l9lDNy4VJianGJ6cQI/66k9H0/LMIvj/HGo4DFbCSGzIRu ZXukxdcZCuH8mI9jHPglgmvaYkjyaAmEW3/89b8F/0lOtOpsoDWjAqWhMJhcphhH XjquUq/o3sVr1uXMMKdl3fmfUnNhDQ== =PI/4 -----END PGP SIGNATURE----- --gAqgDYGpNO6m8hZu--