Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp22377rwe; Thu, 25 Aug 2022 23:07:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR4afVi7QvPMpE4tnJenWXF8dxRNkPrnoKQPBsywwzuN2reAospHn3yuJhV7dysaF/xL7CJ5 X-Received: by 2002:a17:903:31cc:b0:172:cad5:6b4 with SMTP id v12-20020a17090331cc00b00172cad506b4mr2406193ple.115.1661494066171; Thu, 25 Aug 2022 23:07:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661494066; cv=none; d=google.com; s=arc-20160816; b=AZKQS1Mq9fjjGX+wzJwMVJNdFbk7dd6A0ijOG7U+9fQUdbOZuvGZYd4KfkDyCmZ4Kj EatrOrRJMUegBHMbWbIvQkpeB4dRy+/SAokiwG+mJrEzXek/eQuyFfk1mCSHenTpSnbp xiqJSHY5FtZ2yHDa1rlJB1OPjlZxRYX+RWaUPnekfpVXyGQXy8H49OA63tyy44criXi8 l8F/nPC5nbnfdw3LE/9p7DhKNSuYE2K8xhBdJDHUa04Ive2cpet4VX6MAN+pwaEaW8tL Nbet5qgzAViZaqub6wj3hZxu9o0F9BEjMINZu3FWhJME7/WSIp2HACznjkdFBnos4nGu CW5Q== 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=DN02I7kEFmfTtDYmYudlOvukbJZ+sbDOXc3tG40EQgc=; b=lcTVDr51F7jGLfdwohxoxAoMmRMo8oNTpqxhd2M4L+6b9KIASV3GGwRqi21qClAA6X c53oWvmf41Q9pUQl1wTX42QXP04agPDCMZBINw4FfiBQDyUZZp+pldebExK16dnd5iOv ktEIFXeFNPDs9uUDUYZjEVvQKywSgyTn0XMxml34UQeQr3a7Rice2WPoJlbCD/PqxJng uZuCUyf15EIDprfSz5SYh4Aa/NWyfgpQEUXXLvJxDW4724Ki4jiD3R7bqqh6MyU2D0X/ frQHzxYbK70FjvNtrBlL15hTld0JrdLsM2S6qAH2yCl4RIB8MMzBhfQWs/osOGtlgDV8 /Ckg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=t+pDgLpj; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=a1nwsbCo; 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 v20-20020a63f854000000b00429f03c0ed5si1032043pgj.592.2022.08.25.23.07.34; Thu, 25 Aug 2022 23:07:46 -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=t+pDgLpj; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=a1nwsbCo; 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 S236072AbiHZGFL (ORCPT + 99 others); Fri, 26 Aug 2022 02:05:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbiHZGFJ (ORCPT ); Fri, 26 Aug 2022 02:05:09 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F24C13E3E for ; Thu, 25 Aug 2022 23:05:06 -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 1414A1FA84; Fri, 26 Aug 2022 06:05:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1661493905; 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=DN02I7kEFmfTtDYmYudlOvukbJZ+sbDOXc3tG40EQgc=; b=t+pDgLpjMQP5N01ZSCo3Ks9m2jFxcfJMLe3qXB2u6kZ3VAePU8cQcV9b4f/nNZZWgqh0xj 37XX4Ely87hPVAua8g3g5C3JAPb/kwe841HDmD1VPFhxp9qIckCX/TEXWRCw+pAO/S5pWE Ch6YrO0jApvYTgleTPQJt2ytgYiPL98= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1661493905; 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=DN02I7kEFmfTtDYmYudlOvukbJZ+sbDOXc3tG40EQgc=; b=a1nwsbCoecvaYMu50APva9q7zZ6Y4XZCmO4t+TiKU7JzavWB4ZVO2l5gx8fGMP9SwbC/uE eG6CoJQeWemhd+Cw== 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 E257113A7E; Fri, 26 Aug 2022 06:05:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id ZdRlNpBiCGNYbQAAMHmgww (envelope-from ); Fri, 26 Aug 2022 06:05:04 +0000 Date: Fri, 26 Aug 2022 08:05:04 +0200 Message-ID: <87bks7leun.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" Subject: Re: USB DAC broken since commit bf6313a0ff766925462e97b4e733d5952de02367 (5.10.0-rc5) In-Reply-To: References: <874jy0mvwv.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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Thu, 25 Aug 2022 22:52:02 +0200, Lennert Van Alboom wrote: > > ------- Original Message ------- > On Thursday, August 25th, 2022 at 12:58, Takashi Iwai wrote: > > > > > There are lots of workarounds for the buggy USB audio firmware, and > > the latest kernel allows to enable the quirks via quirk_flags module > > option of snd-usb-audio driver. See > > Documentation/sound/alsa-configuration.rst. > > You can try the bit 16 at first, for example. > > > > > > > > Takashi > > > Thanks. I tried fiddling around with it for a bit but so far limited success. I wasn't sure about the arguments or counting order of quirk_flags (some tidbits show it as hex, others as an array of booleans (?)) so tried a few different things. I have no other USB audio devices so didn't see a need to specify vendor or product ID while testing. > > > # modprobe snd_usb_audio quirk_flags=0x10000 > # modprobe snd_usb_audio quirk_flags=0x1 > # modprobe snd_usb_audio quirk_flags=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 > > No success with any, so far. Is there a way to make the process more verbose? I can see from the lights on the DAC that the initialisation works differently if I mess with the different quirks but that's not visible in syslog or outcome. 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