Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ACB38C433DF for ; Tue, 7 Jul 2020 10:35:01 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 397C72065F for ; Tue, 7 Jul 2020 10:35:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="cjG2LiZ8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 397C72065F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org 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 C936A168E; Tue, 7 Jul 2020 12:34:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C936A168E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1594118099; bh=Qwli0bFzzcJpkp+HXOO3DbbQzvrwr/SUmEuVWBpuM5M=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=cjG2LiZ88XUM8xLizcDfDLXIqMF8DobC4AHVqaX8OhxQKtkaJQ8aqYI9F4kVvPDNj 06E88h3Hr16ldgxJr58DM0+Iysz031apQBafycJIspFr9Yo8x7WBlNZOJnSbMnUVlx 2OGXfhWgpgVIrKabpuqKB0u2F+Zz3dEQ8PX31+kw= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 2EC63F802BC; Tue, 7 Jul 2020 12:18:50 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8961AF802D2; Tue, 7 Jul 2020 12:18:48 +0200 (CEST) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id A6C58F80257 for ; Tue, 7 Jul 2020 12:18:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A6C58F80257 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 50508B036; Tue, 7 Jul 2020 10:18:38 +0000 (UTC) Date: Tue, 07 Jul 2020 12:18:37 +0200 Message-ID: From: Takashi Iwai To: Pavel Hofman Subject: Re: Ignored USB-audio implicit feedback in kernel 5.8rc3 In-Reply-To: References: <5be78c36-bca0-da9c-43ec-2e2a538948a8@ivitera.com> <51a129ba-d74f-bfe3-933c-4805bc87804a@ivitera.com> <5bd5efb4-66f0-955c-783e-57aff997028a@ivitera.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: alsa-devel@alsa-project.org 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 Tue, 07 Jul 2020 12:03:25 +0200, Pavel Hofman wrote: > > Hi Takashi, > > Dne 07. 07. 20 v 11:40 Takashi Iwai napsal(a): > > On Fri, 03 Jul 2020 12:17:14 +0200, > > Pavel Hofman wrote: > >> > >> > >> Dne 02. 07. 20 v 13:28 Pavel Hofman napsal(a): > >>> > >>> > >>> Please is the requirement that EP OUT + EP IN implicit feedback data > >>> must be in the same interface really necessary? If such a requirement > >>> was dropped, IMO many devices could be removed from the existing > >>> set_sync_ep_implicit_fb_quirk and many devices would work out of the > >>> box, > >> > >> I am still thinking about the single-interface requirement. If both > >> endpoints were to be part of a single interface, could they use > >> different altsettings for different sample lengths for capture and > >> playback? E.g. to save USB bandwidth when the capture is used only for > >> implicit feedback - capturing at 16bits, playback at 32bits. > >> > >> In the quirked XMOS devices the common clock for both directions is > >> defined by the clock feature, the altsettings for each direction (in > >> separate interfaces) are used for setting sample length. > > > > Could you check for-linus branch of my sound git tree? > > Just to be sure whether you're hitting the issue that has been already > > addressed. > > > > I developed the RTX6001 patch on 5.8-rc3 kernel, and commits since > that tag in > https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/log/?h=for-linus > do not seem to address the issue. > > I think the generic code searching for the implicit-feedback endpoint > works only on the current interface (alts) > https://github.com/tiwai/sound/blob/master/sound/usb/pcm.c#L491 > > I do not know if searching for IN endpoints with the same number and > USB_ENDPOINT_USAGE_IMPLICIT_FB mask in other interfaces is > correct. But it seems to me it would yield correct results for a > number of existing quirks in set_sync_ep_implicit_fb_quirk (typically > those setting ep=0x81). Yeah I found your patch later. Now it's in for-linus branch, too. Takashi