Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5551091rwb; Tue, 22 Nov 2022 01:21:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf5A/45MYOOStD6sD5R75e7uROvSteKOQAhErnklNFAo9yJ2fKlS4v6ThDmmnixmHib3AiX4 X-Received: by 2002:a17:902:b94b:b0:189:20bc:5999 with SMTP id h11-20020a170902b94b00b0018920bc5999mr6102661pls.48.1669108915268; Tue, 22 Nov 2022 01:21:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669108915; cv=none; d=google.com; s=arc-20160816; b=E0T41WpBYebkzn7lphgqGrCIBGYvpolLUMLKTTaaxr8xkXuqkmQLR4ksg57JRwd+k6 bPE9fVbjrP8fApLP6eM5qbuSr8fjNL/j2gh3BGO1s8b5BBj5ntT+kHCYVNcVKaCP9SSp PA8jU5wpumo9SH05K4lLq1BrCgs4XIwLaLXyjKcROTka6ouvRg9ik/oSChGSfwDB8Bww Ndafb2/gACo3SyTERIX66MWx0nzaLAu0nB/2G0W1/+cmW3jS1X2G5oEPo31TJ2HzCbv0 itVKa74MocQSqti8PVJZn18m/jBM8yiQONErsON3bo0TW/20Itm+L8fDkKLLPwh0RHLN 5ciw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=8pLcusETFzI0hVg+oaVwHwzkq4nKfy8q4h60mmwN3ow=; b=CYEI8YoP+joEaiVg4s0F8AtdeOSCk0jAnkE/Z0K6thZeAVbI/g/7cm25Zbghvw0+QI DNWf9XhsY2zKi/VOVJKktKuTXtu+mY/ubhs7fcxRKLrCjg7pe0bip21xiKNIrAP6+7VV NEqYn9Toe+f5EY1zOM3dEWqDRuxk3+ZYZV2m0gSruBVr6mcVT6a/iI9lWuXR0jgyXJUW 2r5ccjUFTXdxPXZRKdXBdnGnuYAbZ8HgHMA9LSJ5Ca8UHHx8kP8/saG8RJ+SDfrg5fpd hwVTks8g+NiTCDsUWk1gy2xmkSReUpN4EqVKwm4rRlpr6Qij/Qd96gjkaPK1NxkWcdx/ TnhQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a056a00084f00b005614fb190e4si14950182pfk.193.2022.11.22.01.21.43; Tue, 22 Nov 2022 01:21:55 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232475AbiKVIyl (ORCPT + 92 others); Tue, 22 Nov 2022 03:54:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbiKVIyi (ORCPT ); Tue, 22 Nov 2022 03:54:38 -0500 Received: from out28-169.mail.aliyun.com (out28-169.mail.aliyun.com [115.124.28.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21B1D24947 for ; Tue, 22 Nov 2022 00:54:36 -0800 (PST) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07855445|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.19499-0.000630966-0.804379;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047204;MF=michael@allwinnertech.com;NM=1;PH=DS;RN=8;RT=8;SR=0;TI=SMTPD_---.QE5zelE_1669107271; Received: from 192.168.220.136(mailfrom:michael@allwinnertech.com fp:SMTPD_---.QE5zelE_1669107271) by smtp.aliyun-inc.com; Tue, 22 Nov 2022 16:54:34 +0800 Message-ID: <80d747aa-df0e-88e1-7b62-c119bd469153@allwinnertech.com> Date: Tue, 22 Nov 2022 16:54:31 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] ALSA: usb-audio: fix urb timeout with URB_ISO_ASAP flag Content-Language: en-US To: Takashi Iwai Cc: perex@perex.cz, tiwai@suse.com, aichao@kylinos.cn, wanjiabing@vivo.com, ubizjak@gmail.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <20221122082040.48591-1-michael@allwinnertech.com> <87tu2rv0kj.wl-tiwai@suse.de> From: Michael Wu In-Reply-To: <87tu2rv0kj.wl-tiwai@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY 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 11/22/2022 4:46 PM, Takashi Iwai wrote: > On Tue, 22 Nov 2022 09:20:40 +0100, > Michael Wu wrote: >> >> When the loglevel is greater than 4, with a long messages printed on the >> console while playing or recording audios, the usb controller may become >> abnormal. >> `usb 1-2: timeout: still 1 active urbs on EP #1` >> >> Fix it by configuring the transfer_flags URB_ISO_ASAP flag. >> >> Signed-off-by: Michael Wu > > Hrm, that's somewhat backward action to the change we've done years > ago, commit c75c5ab575af7db707689cdbb5a5c458e9a034bb: > > ALSA: USB: adjust for changed 3.8 USB API > > The recent changes in the USB API ("implement new semantics for > URB_ISO_ASAP") made the former meaning of the URB_ISO_ASAP flag the > default, and changed this flag to mean that URBs can be delayed. > This is not the behaviour wanted by any of the audio drivers because > it leads to discontinuous playback with very small period sizes. > Therefore, our URBs need to be submitted without this flag. > > I rather suspect that your problem is in the USB controller side. > > > thanks, > > Takashi > Dear Takashi, thanks for the reminding. Let me check... -- Regards, Michael Wu