From mboxrd@z Thu Jan 1 00:00:00 1970 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.3 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 A3C92C433ED for ; Fri, 9 Apr 2021 18:57:06 +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 DB1166115B for ; Fri, 9 Apr 2021 18:57:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DB1166115B 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-devel-bounces@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 7D79D167E; Fri, 9 Apr 2021 20:56:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7D79D167E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1617994622; bh=+rEXUwo56cRtGPkbyr/JmE5y+jWRYN/Y6DerO1XC2+4=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=jHI8Pp0vNGzHx1j8UmtmwYR3ZQXDiseLho52K6labMIwDR2lRaIMLEAc85sZhWb0q A8stUmm2UWPuSdWEayUr2/2HwCDi+N66YBrZ8SXfNNB8OeeLIAFCMULbjWfcWpdtRr uqiag2dZ7iBw+d0jiN6vlmZ+Q/PCqKLlqgIFf2Tk= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D3FF1F80168; Fri, 9 Apr 2021 20:56:11 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 19CC8F8016A; Fri, 9 Apr 2021 20:56:09 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (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 16B65F800EE for ; Fri, 9 Apr 2021 20:56:04 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 16B65F800EE IronPort-SDR: izd9Upa83/4gPY95/qAftKIYMGTP7jXbumsKcx/haVHuscDEljLydigzCMu6uRLELAWdrsr1nY 0U4JOzqGP2DA== X-IronPort-AV: E=McAfee;i="6000,8403,9949"; a="181352449" X-IronPort-AV: E=Sophos;i="5.82,210,1613462400"; d="scan'208";a="181352449" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2021 11:56:01 -0700 IronPort-SDR: bL79OWNPn4ZE3BhOmvpS56GpzLs+U585GZAMM0nSGHoLycRm0YaOdlYQigoli0L8frCQ/RI9aX RvDbZO8T2XhA== X-IronPort-AV: E=Sophos;i="5.82,210,1613462400"; d="scan'208";a="419624645" Received: from ricardor-mobl.amr.corp.intel.com (HELO [10.212.32.184]) ([10.212.32.184]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2021 11:56:01 -0700 Subject: Re: [PATCH] ALSA: core - add more card sysfs entries To: Takashi Iwai References: <20210408094314.1322802-1-perex@perex.cz> <20210408103819.GA40407@workstation> <45acc908-3603-3479-9fb2-5206339a9ace@perex.cz> <20210408120502.GA4516@sirena.org.uk> <56c874ae-e801-63df-19fa-a1325f6104ca@perex.cz> <3107db1d-f97d-539a-05db-6f880b762f00@linux.intel.com> <3b33595e-777c-90b2-6d65-346c9bf6e003@perex.cz> <9195f83a-28c4-d028-8f1e-c3beaa88d891@perex.cz> <05551192-57dd-2541-94a3-57d40a37e3bf@linux.intel.com> <8f33d7f9-50af-db15-8fb2-01d55bb0b413@linux.intel.com> From: Pierre-Louis Bossart Message-ID: Date: Fri, 9 Apr 2021 13:55:58 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Cc: Curtis Malainey , ALSA development , Mark Brown , Amadeusz SX2awiX4ski 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" >> No, replacing firmware files is not viable. >> >> Let me give you a practical example. In the course of SOF development, >> we routinely copy new test firmware+topology in the location of >> distribution-managed files. It's classic that when there is a >> distribution update in the background to install the latest SOF >> release, our test files are overwritten and it's not usual for >> developers to lose time trying to figure out why the functionality >> changed. We do need to have multiple paths and NEVER override what is >> provided by the distributions. it's the moral equivalent of /usr/bin >> v. /usr/local/bin. > > Use /lib/firmware/updates/*. That precedes over the standard path > /lib/firmware/*. (Also /lib/firmware/updates/$VERSION has even higher > priority.) thanks for the feedback Takashi, I had no idea this even existed :-) The documentation is here: https://www.kernel.org/doc/html/latest/driver-api/firmware/fw_search_path.html I guess that removes the need for udev rules to select the firmware+topology in simple cases, e.g. if you have only one custom version or an image overlay.