Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3364627pxf; Sun, 28 Mar 2021 23:26:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlJ6mZ72rRGraqWf1BgXhhm5jA6Y04wGJ9BOvy63apaW0DTbwu9YpBG7P2O0q71cZvaxQo X-Received: by 2002:aa7:c150:: with SMTP id r16mr26586257edp.96.1616999166041; Sun, 28 Mar 2021 23:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616999166; cv=none; d=google.com; s=arc-20160816; b=WbeovxQSidNpMvtjssyTCggYyzjBuXxMhx+j8XsdLbuqYTgH8fL/WEXgB7jJlkhOsW UNX5ry0/o9cvNXXryIaop4cyOQ6x+SRPlC/UPPUNebZXkH/mjPSSEqur62FuN38yZVNM 9wXf0uQhpMlqDg5EpAPDKTfvP5w9aRm71wWDJLO5Vb+tUn2VmMjCKQRy57X1tveOkKaS g/r+13FS+LJVqpYMSpeFIRi/0Dscc4aEq8MSciIbTTwOTeIc2hlJ8lXvTe2XomrtDd6G yz/QkkBvlH/schio8yGMZHr2JIOve+zneDk+nJ2vIzpYa4c8iHYUnBRF7twWYF5pwmMq Su/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tc2Kknjut/IrmaznDTOGIf9yHSgf/06kpGrK3dp0fQI=; b=RRNJxuaDawFU7WGZ3SbW7rP+y2QviEDLRDgdk2P08AnAYkO0wYX1Q6QjW/DAO4SvTy SfY9NlR6mWg8mzJHzqY0GH6t+k3axVAmpUqbiVPgHsEsaeYW7T4C8teQSLoJ7ad3V/9e UBqFNkhNvjJoRt3Lvfq6EJZdO5G3jG3mxjubJt/C7ZqiK2u49FjvDau60gailhu5/kOd s85Veh6gdEM1+r23+FQk3uOzlpMdwGvp2TDI48OBKm5g7xHaCfLf/YRyrEQcP61qpv97 Hb4ah51NTrojD7C9sOrGph7TIRBqcGwi0EWQ8MlHS15GoHXx8hzAgrRhdnXATUoJ5kdW B7iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=B4tS7pmj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si7411796edf.408.2021.03.28.23.25.43; Sun, 28 Mar 2021 23:26:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=B4tS7pmj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229706AbhC2GYr (ORCPT + 99 others); Mon, 29 Mar 2021 02:24:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbhC2GYE (ORCPT ); Mon, 29 Mar 2021 02:24:04 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE035C061574 for ; Sun, 28 Mar 2021 23:24:03 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id s21so5517603pjq.1 for ; Sun, 28 Mar 2021 23:24:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tc2Kknjut/IrmaznDTOGIf9yHSgf/06kpGrK3dp0fQI=; b=B4tS7pmj/YlxOPQ7QsMTNS1YBIShzXiBS5QgIvnrsTRLYj5lv9mTMnWc1jEklHP4wP 0Ch2/9Asptf4VFDwbDLrlbq1tMOnxWFvfwNUnMCTSKGneR//RhL3efFEGKQ9D7DkD5mD KnBBsRxfbITYoYfHVnHHP6txI0dVix3KYD0cg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tc2Kknjut/IrmaznDTOGIf9yHSgf/06kpGrK3dp0fQI=; b=ugPaXU2OgepUTxEdzM4Tz2uIS/IkHPfWxuHUNZyiniIalND86JIuQROYKf90qKpxLr k0br4XpKiQd9xTXy+rQrbZl/ZMSS+ycgYgFzzcmMoWFvAVSmmX9eTLKp9ZJ4O2sWzdBl 8JPgFejllpHwOeHx8xfnw6EFob328x0msZ1xQ2dGw4tEa0npD5nn3v96AFOEJz3uQw9K uFLyrf+82LfhmwnbWXzceLgHvKNl8ZH/UM95fqWxL90VmbVt2Wvi9xg4ZbfAp09b0CIC iydsKUlE4q1z7qdRemRBWK2xZiM6p+oNKrVlwV+zw7LVh8sQpJFvFX7dRfy70QsdIb4h ilBg== X-Gm-Message-State: AOAM532a8sORF014FaPianB4vlmRuCK5hJSK2bspfSEnoF7xwo5dUOJi OKgPcRWK65mHnay6WAH3LEf2t8fOoKA+4c+N5aYt+w== X-Received: by 2002:a17:902:ea0d:b029:e6:f01d:9db5 with SMTP id s13-20020a170902ea0db02900e6f01d9db5mr26881495plg.60.1616999043358; Sun, 28 Mar 2021 23:24:03 -0700 (PDT) MIME-Version: 1.0 References: <20210324105153.2322881-1-ikjn@chromium.org> In-Reply-To: From: Ikjoon Jang Date: Mon, 29 Mar 2021 14:23:52 +0800 Message-ID: Subject: Re: [PATCH] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect To: Takashi Iwai Cc: Joakim Tjernlund , Jaroslav Kysela , alsa-devel@alsa-project.org, Takashi Iwai , Gregor Pintar , linux-usb@vger.kernel.org, Greg Kroah-Hartman , Dylan Robinson , Kai-Heng Feng , Olivia Mackintosh , Alexander Tsoy , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 24, 2021 at 8:49 PM Takashi Iwai wrote: > > On Wed, 24 Mar 2021 13:03:14 +0100, > Ikjoon Jang wrote: > > > > On Wed, Mar 24, 2021, 7:16 PM Joakim Tjernlund > > wrote: > > > > On Wed, 2021-03-24 at 18:51 +0800, Ikjoon Jang wrote: > > > Logitech ConferenceCam Connect is a compound USB device with UVC and > > > UAC. Not 100% reproducible but sometimes it keeps responding STALL to > > > every control transfer once it receives get_freq request. > > > > > > This patch adds 046d:0x084c to a snd_usb_get_sample_rate_quirk list. > > > > > > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203419 > > > Signed-off-by: Ikjoon Jang > > > > Most Logitech USB headset I got needs a delay in snd_usb_ctl_msg_quirk() > > Have you tried to add say 20 ms delay in there? > > > > I didn't try that. But it sounds reasonable to me. > > > > let me try that quirk here. If that is the case, HID might need that delay > > also. Logitech Group webcam had a similar problem on control xfer of > > get_report from an another interface for HID. > > The Logitech devices with 046d:* should be covered generally in > snd_usb_ctl_msg_quirk(), so I guess it's a different problem. > But please check it first. > > > And 20ms can be too long if it's applied to every control transfer. I will > > test the device with shorter delay if you didn't try it before. > > Actually the delay applied to Logitech devices is from 1 to 2ms, not > 20ms. The 20ms delay is applied for some other devices. But if > extending the delay fixes the problem, we need to reconsider the delay > length. I tested this Logitech device with various delays 2..20ms in snd_usb_ctl_msg_quirk() but it didn't help. Disregarding the delay between control transfers, This device is always stuck at get_cur, responding STALL to all control transfers. [ 24.045618] usb 1-1.2.1.1: 1:1: cannot get freq at ep 0x82 [ 24.167475] usb 1-1.2.1.1: 2:0: cannot get min/max values for control 2 (id 2) [ 24.287393] usb 1-1.2.1.1: 6:0: cannot get min/max values for control 2 (id 6) [ 24.289854] usbcore: registered new interface driver snd-usb-audio [ 24.877073] usb 1-1.2.1.1: 2:1: usb_set_interface failed (-32) And I've also found that in some other platforms (with the same kernel), this device fails at get_freq - timeout with NYETs or NAKs (instead of STALL), and succeeded in following set_interface even without any delays I've tried but couldn't find any differences between the two. ;-( So until now, I think this approach of skipping get_rate is the only one possible workaround for Logitech Connect. > > > Takashi