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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 57F6BC48BC2 for ; Fri, 25 Jun 2021 07:38:37 +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 7D49161425 for ; Fri, 25 Jun 2021 07:38:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7D49161425 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 0059815E0; Fri, 25 Jun 2021 09:37:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0059815E0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1624606713; bh=IU53CZBsEhxeCw+ZxJBL5XwZ596WZN7q/sfCMAShOJg=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Gp3PAkbXkJyD9hHMuqFTzc1TXBmwnc56eJot4A1e4QCzBXV1E72/+hByQnWoR8KB5 ZdOs+2P+wVH9vAihQjcRuh20P/hCDaPwxi3GjLn1+1JKHD5JEmcwZeNNMlmkvIKhT3 nfqTkmDIR1oXjOozk8m2QMfauEhktz3k+0OUvlNQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 691BCF80137; Fri, 25 Jun 2021 09:37:42 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 677CFF801D5; Fri, 25 Jun 2021 09:37:40 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 56398F80137 for ; Fri, 25 Jun 2021 09:37:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 56398F80137 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="fngWmBnh"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="gv/rAGxG" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 0CFE21FE4A; Fri, 25 Jun 2021 07:37:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1624606655; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8wpN+wTjLOIxYOmlGxaoeKB7SQwbOlVJz5lODT+KHM0=; b=fngWmBnhzuJA/mDzFYpfWw88w5r0DTgzlpQIr1XBvbq1FkktQHnymgQxXMJP7I2LISkDiy jgXEP7zVSBQ37CtufL5Rx+cVPD7ffRt4h2EByocdPV9XizmIchCeGWJkSOXeGdOgKyamHJ 5TCWtwAbJumBYRkMzKL+f4zrNve/eG4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1624606655; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8wpN+wTjLOIxYOmlGxaoeKB7SQwbOlVJz5lODT+KHM0=; b=gv/rAGxGBqbZDpat/RRpeWDS4IJR+o6UuiyJYImvQyubYh19J5yJEPPaAjQMivYzcOcweZ iLBgJNaTcBxKfNCQ== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 02B22A3BF7; Fri, 25 Jun 2021 07:37:34 +0000 (UTC) Date: Fri, 25 Jun 2021 09:37:34 +0200 Message-ID: From: Takashi Iwai To: "Geoffrey D. Bennett" Subject: Re: ALSA: scarlett2: Default on? In-Reply-To: <20210625021142.GB21766@m.b4.vu> References: <20210624154739.GA20351@m.b4.vu> <20210625021142.GB21766@m.b4.vu> 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: alsa-devel@alsa-project.org 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 Fri, 25 Jun 2021 04:11:42 +0200, Geoffrey D. Bennett wrote: > > On Thu, Jun 24, 2021 at 07:40:53PM +0200, Takashi Iwai wrote: > > On Thu, 24 Jun 2021 17:47:39 +0200, > > Geoffrey D. Bennett wrote: > > > > > > On Wed, Jun 23, 2021 at 08:39:24AM +0200, Takashi Iwai wrote: > > > [...] > > > > OK, now all patches have been merged. > > > > > > Thanks! > > > > > > I would next like to consider how we can enable this mixer driver by > > > default. I originally added the device_setup=1 gate because there were > > > reports of the driver making the interface hang. These were all traced > > > back to the problem which was resolved with the commit "Fix device > > > hang with ehci-pci". That commit fixed the issue for those who had > > > reported it and since then there have been no more reports that the > > > mixer driver causes any issues. > > > > > > Simply removing the device_setup=1 check would leave users with no way > > > to disable the driver in case that turns out to be necessary for some > > > reason though, so I don't think that's a good idea. > > > > They can blacklist snd-usb-audio, either the module itself (if it's > > the only device), or with enable option of snd-usb-audio module, if > > there are multiple devices bound with the driver. > > But wouldn't that disable audio for the device entirely? I am talking > about only disabling the mixer part of the driver (the code in > mixer_scarlett_gen2.c) which uses the proprietary USB messages. So > that if there is some unseen so-far bug the user can revert to > previous behaviour of audio working but no proprietary controls. Even if you split the mixer part to a module, it'll be always bound with the main snd-usb-audio due to dependency, so you cannot blacklist it. At most, you may add a module option for that, but it's almost equivalent to introduce a new option to snd-usb-audio such as snd_usb_audio.scarlett2_mixer=off A conditional build would make sense for the compilation size, but it's not about the feature to turn on/off functionality on the fly. Takashi