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=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 AEF9AC6379F for ; Tue, 17 Nov 2020 14:05:35 +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 A3044208B8 for ; Tue, 17 Nov 2020 14:05:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="gYncDBhu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A3044208B8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de 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 C59901753; Tue, 17 Nov 2020 15:04:42 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C59901753 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1605621932; bh=6wChLOfGC5ucTJV42J3G+vPE9XLJ6N+LmdQxXfqrhPQ=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=gYncDBhuzXokbaoff7zUM9E0sAWripWhe0pAXXgxOAh5Jzn848ppAmEvN3U1UZ7dE +vUwnK6dRfoyuX9U8SJiRtyUxUE20KblvXuDtKT4mNN5atMzs1RL98i0ji7fXSA8NJ bHZDkSDQAwff9QTKJr/riiO2SUSR6dlsjozutvew= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 2D6B3F801ED; Tue, 17 Nov 2020 15:04:42 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 715D4F801ED; Tue, 17 Nov 2020 15:04:40 +0100 (CET) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id A04A0F8010A for ; Tue, 17 Nov 2020 15:04:32 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A04A0F8010A X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id AF79FAC1F; Tue, 17 Nov 2020 14:04:31 +0000 (UTC) Date: Tue, 17 Nov 2020 15:04:31 +0100 Message-ID: From: Takashi Iwai To: Pierre-Louis Bossart Subject: Re: [PATCH 00/14] ASoC: Intel/SOF: extend run-time driver selection to ACPI devices In-Reply-To: References: <20201112223825.39765-1-pierre-louis.bossart@linux.intel.com> <0a0854d1ddaf4f9b81ef5569a7d501a5@intel.com> <20201113164946.GD4828@sirena.org.uk> <2cf7075b-bd51-21a5-2058-3a98e6c488a7@redhat.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: Hans de Goede , "Rojewski, Cezary" , Mark Brown , "alsa-devel@alsa-project.org" , "andriy.shevchenko@linux.intel.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 Mon, 16 Nov 2020 18:47:22 +0100, Pierre-Louis Bossart wrote: > > > Explicit 'ifs' asking whether we're dealing with SOF or other solution > > is at best a code smell. I believe this is unnecessary complexity added > > to the code especially once you realize user needs to play with module > > parameters to switch between solutions. If we assume user is able to > > play with module parameters then why not simply make use of blacklist > > mechanism? > > Been there, done that. We don't want to use either denylist of kernel > parameters. > > denylists create confusion for users, it's an endless stream of false > errors and time lost in bug reports. > > The use of the kernel parameter is ONLY for expert users who want to > tinker with the system or debug issues, the average user should not > have to play with either denylists or kernel parameters. I guess Cezary mean the modprobe blacklist? This was used in the early stage of ASoC Skylake driver development, but in the end, it's more cumbersome because user needs to change multiple places. The single module parameter was easier to handle. > > And last but not least: intel-dsp-config is (as already stated) a mean > > for solving the HDA-runtime-driver-selection problem. Mixing it with > > ACPI devices is another layer of confusion. > > Why? Who said it was PCI only? We already take care of DMIC, > SoundWire, Google Chromebooks, open platforms, why not ACPI? It's just > one API to be used when more than one driver can register to the same > device. Well, currently intel-dsp-config sits in sound/hda, which isn't really intuitive. Though, Intel driver file paths are already fairly scattered, so it doesn't matter too much :) I don't mind to move it to another directory, but which one...? x86 might match, but shuffling the place won't help for maintenance. I personally find this move good, at least it makes things easier for distros. There are small details like the above, but technically seen, I see no big problem. thanks, Takashi