From: Takashi Iwai Subject: Re: [PATCH] ALSA: usb-audio: Fix the enable parameter behavior Date: Thu, 30 Nov 2017 10:06:05 +0100 Message-ID: References: <1511994376-1803-1-git-send-email-otamachan@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id CF4BE266A74 for ; Thu, 30 Nov 2017 10:06:05 +0100 (CET) In-Reply-To: <1511994376-1803-1-git-send-email-otamachan@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Tamaki Nishino Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Wed, 29 Nov 2017 23:26:16 +0100, Tamaki Nishino wrote: > > The enable parameter doesn't seem to work as expected. Even when the > enable parameter is set to false in /etc/modprobe.d/alsa-base.conf like > "options snd-usb-audio index=-2 vid=0x1415 pid=0x1d27 enable=0", > the specified device is not disabled. > > This patch fixes the enable parameter behavior to disable the device > correctly. Heh, strictly speaking, this is no "fix". The behavior of the current enable option is "correct", per se; it disables the first-defined slot, and in the case of USB-audio, the probe continues to the next slot as it's a hot-plug device. OTOH, it's just badly designed, and the option is present just for compatibility with other modules -- e.g. YaST has put enable option always when configuring manually. So, I find it OK to change the semantics of this option, as it's practically useless, and the breakage is very unlikely. But please make it clear that the patch is rather to improve the usability, not about the correctness. thanks, Takashi