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=-6.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, 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 61B48C433F5 for ; Fri, 3 Sep 2021 16:40:50 +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 DCC5260F12 for ; Fri, 3 Sep 2021 16:40:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DCC5260F12 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com 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 6B09418D5; Fri, 3 Sep 2021 18:39:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6B09418D5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1630687248; bh=OoKJKraLFJoa9JPXutMhGUjAKGF6glzoC6gJQ1k3ooo=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=R3BEaem+RmxkczqEfnFaI1wv4ArflKgNnMd6dOSCAsAEAeEkIhnZfecMx2NFH2T6I QBaaTY/muhkqtIrHz9PQE62gNSBnH7a44xXtEhmtKwu96vLYHflM6hboe0TkUGwNmX 4llt2gu6raBkF2HWsMq8mXX9iXsoqpro+QVxWWqY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id CA706F80511; Fri, 3 Sep 2021 18:38:17 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 41C40F804FA; Fri, 3 Sep 2021 18:38:13 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 803AFF8032B for ; Fri, 3 Sep 2021 18:38:06 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 803AFF8032B X-IronPort-AV: E=McAfee;i="6200,9189,10096"; a="206687216" X-IronPort-AV: E=Sophos;i="5.85,265,1624345200"; d="scan'208";a="206687216" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2021 09:38:00 -0700 X-IronPort-AV: E=Sophos;i="5.85,265,1624345200"; d="scan'208";a="462453522" Received: from seangorm-mobl.amr.corp.intel.com (HELO [10.251.136.111]) ([10.251.136.111]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2021 09:37:59 -0700 Subject: Re: [PATCH v5 1/2] ASoC: cs35l41: CS35L41 Boosted Smart Amplifier To: Mark Brown References: <20210816224310.344931-1-drhodes@opensource.cirrus.com> <20210816224310.344931-2-drhodes@opensource.cirrus.com> <7c38ddb4-9ccc-130d-e977-4f39b01e2c9e@linux.intel.com> <20210903150902.GJ4932@sirena.org.uk> From: Pierre-Louis Bossart Message-ID: <963c3703-245f-31ae-f714-90cf818900ee@linux.intel.com> Date: Fri, 3 Sep 2021 11:02:21 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210903150902.GJ4932@sirena.org.uk> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit 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" On 9/3/21 10:09 AM, Mark Brown wrote: > 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? I could but this adds more work. >> 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. In general yes, but the SPI can be used for faster upload of e.g. history data on capture, something I2C is not capable of. That would e.g. expose new dailinks in a machine driver. the RT5677 is the typical example of this. Anyways, I am not going to lay on the tracks for an HID, BIOS folks usually get them wrong anyways.