Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp493924rwe; Fri, 26 Aug 2022 08:41:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR7bD65Y3YmGjH+smmg6qENTKLdtZzQ9ipJV+hN5yi7E2fVc4+zNP9EldiIWyTin5X/6TiWe X-Received: by 2002:a17:907:2c77:b0:73d:7af2:37f1 with SMTP id ib23-20020a1709072c7700b0073d7af237f1mr5583037ejc.684.1661528510989; Fri, 26 Aug 2022 08:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661528510; cv=none; d=google.com; s=arc-20160816; b=uuAxSzisJE27rr1QCcYgSRvnq4wfQUErCPk1XBkSBPg+BRBXr1eAgaUKRIcMuD2UNL fKTYmFFp/fGyrUYyjpHXsmox9RfStZd8ZEjCxOWPk/xyfCO4hXEu29QmmVi02cm1vtoz jAqHY/REZpYKmkbjckoreTQ4Z2SG0ujmE5tGZM/tJ399+IEJLLJj3ON+N4iQgv3Bh1g/ V+6yEK6ZjbsCb2hX43LPlHPQSg1X2cmA3NtEj1dHz9gSNHoQn7PKNrreEs1gbzAqSV6W l8gxMwOshH+hUAnnyK7dWSqCApZWCJt9PYR7ERLxnwNp2M7iicUbkar+GEO1h3r/msHl aEVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=97iE3p86LmL5nUt7jtSPzfO+8BqMwNIDg5V6WRooFvo=; b=TB6TiK7sOz3bG6BNqrQA1mBoxAbDAErvP/JCD6DlyKlZRcdKDRVTUUaWrTOpaGJ/Ok 9pkevsRoF0ONpb9TqYAn0E1tnsXP44nJmEF5QmHhRJeasGTNcHZ55Ecdi4uFmCImFWgi /ZOhEX5s5KBSe73jWwg06IPRPgo/a8gDxmeaqwXowgTLXpUUANYkCh/+eJArnmTZJnsk qou6Xy0eqeqIkF0McN4C9AIANpCX9jp0s+kmJoOCBEO8hZsY8jsOR1UWMo2dYBudq0FE BLAv7vgKZpfjtFVGqnOsPFn0XR77g+0YNc0gFVYcT4jhkHBqVlxSchjwGuFlXUgiyhso L8iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="Fvy/YmQ+"; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bq22-20020a056402215600b0043bbd1cac73si1369158edb.320.2022.08.26.08.41.25; Fri, 26 Aug 2022 08:41:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="Fvy/YmQ+"; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344655AbiHZPZb (ORCPT + 99 others); Fri, 26 Aug 2022 11:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344484AbiHZPY7 (ORCPT ); Fri, 26 Aug 2022 11:24:59 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CB49A18E for ; Fri, 26 Aug 2022 08:20:11 -0700 (PDT) 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 743CF1F949; Fri, 26 Aug 2022 15:20:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1661527209; 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=97iE3p86LmL5nUt7jtSPzfO+8BqMwNIDg5V6WRooFvo=; b=Fvy/YmQ++k2snw5ygCkZsCkSBP3pMOpZ0kHAWTnhKDLty7Vh6e3U848l3kumjv5agbeQl+ E+45C2hWkyRllWYaX1VdkHAc6+BmUaJ5gPg7ZoHi9eAL/LYNlk3EievHbV2sBiqgvAiozH O3flP2dcxE4IcHiJv2uOaVarlc62O5s= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1661527209; 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=97iE3p86LmL5nUt7jtSPzfO+8BqMwNIDg5V6WRooFvo=; b=E3klih5m/Ngy7425d9QqRZ7n3kql1r8/nYNwA7Dcn0lO8/mk/VYG2DhOczxseDad7BCr6o Yeu70xLSO75fR2Bw== 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 4789813A7E; Fri, 26 Aug 2022 15:20:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id NAODEKnkCGPMWQAAMHmgww (envelope-from ); Fri, 26 Aug 2022 15:20:09 +0000 Date: Fri, 26 Aug 2022 17:20:08 +0200 Message-ID: <87r113jal3.wl-tiwai@suse.de> From: Takashi Iwai To: Lennert Van Alboom Cc: Jaroslav Kysela , Takashi Iwai , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" , "ls.yoyo.m@gmail.com" Subject: Re: [PATCH] USB DAC broken since commit bf6313a0ff766925462e97b4e733d5952de02367 (5.10.0-rc5) In-Reply-To: References: <874jy0mvwv.wl-tiwai@suse.de> <87bks7leun.wl-tiwai@suse.de> 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Aug 2022 11:07:55 +0200, Lennert Van Alboom wrote: > > ------- Original Message ------- > On Friday, August 26th, 2022 at 08:05, Takashi Iwai wrote: > > > > > This option is passed per card instance, as the driver may hold > > multiple cards. Check your /proc/asound/cards. The first argument of > > quirk_flags is applied to the first USB-audio card, the second to the > > second USB audio device, and so on. > > > > > At best, give alsa-info.sh output before and after applying the > > quirk. Run the script with --no-upload option and attach the > > outputs. > > > > > And, as a reference, you can see the existing quirk tables in > > sound/usb/quirks.c. > > > > > > > > Takashi > > > Not sure why it failed before (didn't look further then, so possibly PEBKAC) but as you suggested, this works now (tested on debian's 5.19 kernel): > > # modprobe snd_usb_audio vid=0x2522 pid=0x0007 quirk_flags=0x10000 > > > Confirmed that setting a quirk_alias also works: > > > # grep -A 1 "0x054c, 0x0b8c" linux/sound/usb/quirks.c > > DEVICE_FLG(0x054c, 0x0b8c, /* Sony WALKMAN NW-A45 DAC */ > QUIRK_FLAG_SET_IFACE_FIRST), > # modprobe snd_usb_audio quirk_alias=25220007:054c0b8c > > > I've added a patch for quirks.c to make this default behaviour for > this device. Good to hear. Will you submit the fix patch for the merge, or shall I do it in my side? > Looking at the Arch bug report at https://bugs.archlinux.org/task/70636, it's likely similar behaviour may be needed for pid=0009 (LH Labs Geek Pulse X 1V5) but I have no way of testing this. Added the reporter in CC. It's likely OK to apply the same quirk, but it's certainly safer to hear the test result, of course. thanks, Takashi