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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 53D70C38A02 for ; Mon, 31 Oct 2022 06:50:04 +0000 (UTC) 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 75C251640; Mon, 31 Oct 2022 07:49:12 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 75C251640 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1667199002; bh=nOTCKQUX5IKV/o5OVs3z4/g2rB8ZbLXQrhIPssStR0s=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ay3FfLcj2XKg151wgRqXVU55V/Zg6N7qZ5ROio0ApyU/3xjfbbqY2AZ+6JE3GkUeh axeNZbotnmJyMhYTs/chdvJ0I75JcmezUAgMNSrlCNXI0P8THO/8AFSNHn5g/eEGi1 eFrrw7vyjy69/zRi2xGmJ90ylgLgKqI1KDfFSUsY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id CE079F8015B; Mon, 31 Oct 2022 07:46:56 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2871AF800CC; Mon, 31 Oct 2022 07:46:56 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) (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 26087F800CC for ; Mon, 31 Oct 2022 07:46:49 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 26087F800CC Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="UEBZmv9L"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="ExKjhXPe" Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 780541F88B; Mon, 31 Oct 2022 06:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1667198809; 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=WVZsumy82ZVKhFyW4LgzVfFuXFo8OFU1iBmgA7FamPw=; b=UEBZmv9LrtFWjEFw4ahAS6+QaQ9NdsOwTfKqagdq45FXcPg6tD0WVuPPPipicYjdce2s/0 s5yfDsDvxcCcTzdKZFbDzk04zlTF3LoudWXfhDHq/py6VQXoE0T+KItCJyfLtlMjWRtd65 Bkm4ZuwU5RUFkB6NNKJChnqNwOGB0/o= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1667198809; 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=WVZsumy82ZVKhFyW4LgzVfFuXFo8OFU1iBmgA7FamPw=; b=ExKjhXPe2xPbeuyallqbf3euYXkvxduxE7z8WlqSRQrsi/1G8vHcP2wu3kehOEiwBfFStk RYb9Lt4IftB+uPBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5437E13AAD; Mon, 31 Oct 2022 06:46:49 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id PNy5E1lvX2MtDgAAMHmgww (envelope-from ); Mon, 31 Oct 2022 06:46:49 +0000 Date: Mon, 31 Oct 2022 07:46:48 +0100 Message-ID: <87k04glcbr.wl-tiwai@suse.de> From: Takashi Iwai To: Ash Logan Subject: Re: Missing USB IDs for M-Audio Micro In-Reply-To: <7ecd4417-d860-4773-c1c1-b07433342390@heyquark.com> References: <7ecd4417-d860-4773-c1c1-b07433342390@heyquark.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Cc: alsa-devel@alsa-project.org, tiwai@suse.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 Sun, 30 Oct 2022 23:50:02 +0100, Ash Logan wrote: > > Hello! > > I have an M-Audio Micro USB soundcard, which works great, though I > have to manually add the USB IDs to snd-usb-audio when I want to use > it. > > echo 0763 201a > /sys/module/snd_usb_audio/drivers/usb\:snd-usb-audio/new_id > > I was hoping you could add the IDs somewhere in the driver to enable > it by default, since the output, input and even bass boost "feature" > seem to work just fine. > > Below is the lsusb information for this device. Could you try the patch below? thanks, Takashi -- 8< -- From: Takashi Iwai Subject: [PATCH] ALSA: usb-audio: Add quirk entry for M-Audio Micro M-Audio Micro (0762:201a) defines the descriptor as vendor-specific, while the content seems class-compliant. Just overriding the probe makes the device working. Reported-by: Ash Logan Cc: Link: https://lore.kernel.org/r/7ecd4417-d860-4773-c1c1-b07433342390@heyquark.com Signed-off-by: Takashi Iwai --- sound/usb/quirks-table.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h index 06dfdd45cff8..874fcf245747 100644 --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -2049,6 +2049,10 @@ YAMAHA_DEVICE(0x7010, "UB99"), } } }, +{ + /* M-Audio Micro */ + USB_DEVICE_VENDOR_SPEC(0x0763, 0x201a), +}, { USB_DEVICE_VENDOR_SPEC(0x0763, 0x2030), .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { -- 2.35.3