Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3202966pxb; Mon, 9 Nov 2020 05:30:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbc+72TNLHBLhUUh5gBmmwd6BdOW5hKJ63+4ubTlTjbdUviZdxvOaVaDB0h7HJkLLYLL8/ X-Received: by 2002:a17:906:6c93:: with SMTP id s19mr15582100ejr.544.1604928652765; Mon, 09 Nov 2020 05:30:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604928652; cv=none; d=google.com; s=arc-20160816; b=nOq8GoEWDY9l4zoiLQdQiAKZIiUmaCWWd1CY7ZGIaYBi1mC6z/CduivwgjrwOtzQKx trKNFCY6JkUyajBp1/ek2PEuRd9gk92+5l/6OIGOEV89+pe9Y0lDYd1NzdQ3OdDRwSnU FSCgDq5tYTfIH0YoXfFGLdutGgrdo3OF3EVh3PiB62dcBHSwQwTBOBPCF8p9909NQZU9 rFLeW0VDlJkUY506DbRu6E11TobB0kvm+zZgECSQTaDjzE5l58g2gKvM4nYV5U3bXzqS Xmma6+j/MRutHTHgp8WZMfg17+GX5mmIYtLEJChKJJBOlDWh9rkqs0kZmG/g+jJyEdI/ fYfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TlmJoenepGVZM7zamZyVhB4znTzHs68IC1SnU5HYmsk=; b=DXK0HhRiGnGM5Tyyo0R9+ELTwB06s0kEDU0ATV5uNCWuL53Dp7g2w6Q2npVXeW0gXX W5J/MGkQveW9z2Cs0Sbtm/44McwNSiQVnMePHgGWg2HyM0CnTTjP34hx2flr/3hhKku0 Su0tyIFEpmsruFDvoCn3WqlFWD+KL43mSD+8HWlB8QLpUpvNDDk/KF4tI/9ZUeyRb04A NpN1yhf8YBzqQ5MNyDHaPojt+CoTjMyKPSg23x9XRJwy7y9dZzQhKjr85w5qmHnk3pMy S9OVwHJ82POn/pK0cylKB6o03C7Qt3rzq3aQl3SV83QrONkcTdyKd1q8ZZYQAoJ4mvcd a3kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VRjt6jnl; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k26si6558309ejz.41.2020.11.09.05.30.29; Mon, 09 Nov 2020 05:30:52 -0800 (PST) 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=@kernel.org header.s=default header.b=VRjt6jnl; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732656AbgKINMd (ORCPT + 99 others); Mon, 9 Nov 2020 08:12:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:38106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731726AbgKINM2 (ORCPT ); Mon, 9 Nov 2020 08:12:28 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 700A6208FE; Mon, 9 Nov 2020 13:12:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604927548; bh=pqN5mLApKE2LD0TZgtTFudaN295BDvqaXfWFCG1oJzo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VRjt6jnlfKIwtGUywcAMptzpslW2heVtXM5chuRJ9MEwPzzCCCmFF8ya0ORyjEfPp jdX3CPkKqY6kSSPcdKikWpokxOIXlfKDlgViRiPTrkLZ2LtTJRXeG5vt6p3ElSsJ2E B1X9wjb107w2llBsJuiSaX8SYayeMhDaTv9o6YLc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Keith Winstein , Takashi Iwai Subject: [PATCH 5.4 25/85] ALSA: usb-audio: Add implicit feedback quirk for Zoom UAC-2 Date: Mon, 9 Nov 2020 13:55:22 +0100 Message-Id: <20201109125023.790289878@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201109125022.614792961@linuxfoundation.org> References: <20201109125022.614792961@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Keith Winstein commit f15cfca818d756dd1c9492530091dfd583359db3 upstream. The Zoom UAC-2 USB audio interface provides an async playback endpoint ("1 OUT (ASYNC)") and capture endpoint ("2 IN (ASYNC)"), both with 2-channel S32_LE in 44.1, 48, 88.2, 96, 176.4, or 192 kilosamples/s. The device provides explicit feedback to adjust the host's playback rate, but the feedback appears unstable and biased relative to the device's capture rate. "alsaloop -t 1000" experiences playback underruns and tries to resample the captured audio to match the varying playback rate. Forcing the kernel to use implicit feedback appears to produce more stable results. This causes the host to transmit one playback sample for each capture sample received. (Zoom North America has been notified of this change.) Signed-off-by: Keith Winstein Tested-by: Keith Winstein Cc: BugLink: https://lore.kernel.org/r/20201027071841.GA164525@trolley.csail.mit.edu Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/usb/pcm.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -339,6 +339,10 @@ static int set_sync_ep_implicit_fb_quirk ep = 0x81; ifnum = 2; goto add_sync_ep_from_ifnum; + case USB_ID(0x1686, 0xf029): /* Zoom UAC-2 */ + ep = 0x82; + ifnum = 2; + goto add_sync_ep_from_ifnum; case USB_ID(0x1397, 0x0001): /* Behringer UFX1604 */ case USB_ID(0x1397, 0x0002): /* Behringer UFX1204 */ ep = 0x81;