Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80EBAC433F5 for ; Fri, 3 Sep 2021 15:10:43 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5FCEC610CF for ; Fri, 3 Sep 2021 15:10:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5FCEC610CF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 7656D1888; Fri, 3 Sep 2021 17:09:50 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7656D1888 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1630681840; bh=G5457ROEjSKUh7STUUn/WjHVpe/TiVS9hneSpwDe7qY=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=dQ9w/WgeZcYepVBoDVRCXgQUgThhJxi3nVmuLeYDLXVnq2ynYUQtAM3ilv4jTTuBT xX3sz8CY7gUkdA2B2vQ1pABhbI12OarXbffe32MqR1KPbIqYnmE5i0Etl19LRlN7nV ON75Ql40uimzdQQ/onjE89ER0jravi95heJb5lFc= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 0D81BF80227; Fri, 3 Sep 2021 17:09:50 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 98566F80088; Fri, 3 Sep 2021 17:09:48 +0200 (CEST) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 0109BF80088 for ; Fri, 3 Sep 2021 17:09:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0109BF80088 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JyUz96uc" Received: by mail.kernel.org (Postfix) with ESMTPSA id BC0E360EC0; Fri, 3 Sep 2021 15:09:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630681776; bh=G5457ROEjSKUh7STUUn/WjHVpe/TiVS9hneSpwDe7qY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JyUz96uc+a9Vdd8A05YDF07UVBj6/nD8xZ3BxvqFq6k7ak9IwpHJ9YLZyISblX6O/ ii/1a/3qaoICQGaCJ9a3ZyoxUqRMxvHQ+kNM4ZAiXw0wKIouLYE7vqWfhDcMZLCQPJ 0wlhkcv9W069gDG/Jw3Z5Ui1naQ5FO1WhvF7ssyXuXJM5Jh7AAwTyx5B/UaH/zY8/n pMjL0FKUNdaDjwdsgjOe6WH7PlMdjipJaHqsUAsswPuLiUjEM8IbEd99GjSkctQtDB a79qOr+om3Y3w+6U1e9dOzlIXGH7GBBCpwntpXlx88Oej3tJSkFfOycodIENavtfkp nrF8GDlNqCboA== Date: Fri, 3 Sep 2021 16:09:02 +0100 From: Mark Brown To: Pierre-Louis Bossart Subject: Re: [PATCH v5 1/2] ASoC: cs35l41: CS35L41 Boosted Smart Amplifier Message-ID: <20210903150902.GJ4932@sirena.org.uk> References: <20210816224310.344931-1-drhodes@opensource.cirrus.com> <20210816224310.344931-2-drhodes@opensource.cirrus.com> <7c38ddb4-9ccc-130d-e977-4f39b01e2c9e@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="j+MD90OnwjQyWNYt" Content-Disposition: inline In-Reply-To: <7c38ddb4-9ccc-130d-e977-4f39b01e2c9e@linux.intel.com> X-Cookie: Darth Vader sleeps with a Teddywookie. User-Agent: Mutt/1.10.1 (2018-07-13) Cc: David Rhodes , robh@kernel.org, brian.austin@cirrus.com, ckeepax@opensource.cirrus.com, patches@opensource.cirrus.com, alsa-devel@alsa-project.org, david.rhodes@cirrus.com X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" --j+MD90OnwjQyWNYt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Sep 03, 2021 at 08:58:17AM -0500, Pierre-Louis Bossart wrote: > > I2C and SPI buses, when they are looking for a driver with an ID that > > matches a device declared in ACPI, will iterate over drivers that belong > > to the bus only (bus_for_each_drv()). It is not possible for an I2C > > driver to be matched during SPI device enumeration or vice versa. > That's good but that use of the same HID for two different solutions is > still be problematic. On ACPI solutions, we use the HID as a key to > identify what machine driver to load, see e.g. snd_soc_acpi_find_machine(). > By using the *same* HID, you will prevent that machine detection from > uniquely identifying what mode is used, and force the machine detection > to be expanded with e.g. DMI-based quirks. It's really far from ideal You can always add the bus type as a key if you really need to? > for integrators. The only case where this would work with impacts on the > machine selection would be if the choice of the SPI and I2C modes had no > impact on the functionality of the device, but is this really the case? Usually that's the case for CODECs, it's just going to be a question of how fast the I/O is, physical design considerations and what interfaces you have available. It'll be limiting for some applications of course (slow firmware downloads for example) but given the way these things are built I'd be fairly surprised to see something actively gated off. If you look at the I2C and SPI bus handling for individual CODECs they're usually extremely thin wrapper that just pass a regmap into common code with nothing else done conditionally. --j+MD90OnwjQyWNYt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmEyOo0ACgkQJNaLcl1U h9B2Swf8CezvTblUkk/we4wyt9iJD44L15yWSTU7aaO3W86ymZxLV4rQYizNw1kF c9bHQBDjpf94dN94x9wC7b8f40zBxwmZ8DdIlF+c3EZBboyuKYKv+ux2WbIfV/mg 0DfE6brf83pobfjaWNjWNKjK/pGba+1hTwyLPaQET66b6CXddVvel6srghLztsK3 RCq4E2xUPi8Hjhg9uM4wwqDMdfdajDFVwECDkZIXtryIriEHgNg+HRLTywq5ON2z HpmVL70Up9L2er7tunddO1KyaY5FD+5nvKJ9WR3IGSeV7bgtJJy75tgD1LT8yISE IiLGKMByrC8ahLNOWmJRcP69wbICig== =kSWm -----END PGP SIGNATURE----- --j+MD90OnwjQyWNYt--