Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2645757pxv; Sun, 25 Jul 2021 00:49:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7lYfECRPALcvd+QbJBYumj4OhgnHQAeD+zzdbf0ZyuyuKouS4bGGU0tsvOAC8N2J0uNBL X-Received: by 2002:a02:4b04:: with SMTP id q4mr11389505jaa.89.1627199350544; Sun, 25 Jul 2021 00:49:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627199350; cv=none; d=google.com; s=arc-20160816; b=C240WOWLpbrfnhwlB6KdpSBB0+w2ebcFQ/UlMRejfGonGxBV6e/vVS4kBIXyE/uovb kJFngmvxnhmCUrsBalx93NVFDmxuC+MY7BqjMBC7tmz4ykdD9tvLF+6TlaxWwMprwmKQ HxZVCPhJSxWp8bgrGWCdWgDhuTYvQRjTqocs24XzRYZGP1eFqIMaC+kYhvD6/q3mhPog w+w8UA5MvIT6TE/lY0b5aKGGVhorTYzyYHF5+0tdMQjjOgJS8YM7V8sxN7OBgxcnhKaM 554O0akoW7bJTrrFXkVIrMuS+b73NSuIbTywLkHVszICJMHTy/BuUAVKZLys3XR/dDBz Ovtg== 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=uTdCr90EhfYnVuvMUH866bNjY+DJx+dcPV6cBpY0faA=; b=iZ/7xhkqWY2DrgsIxOaUYl8aknNfimCjT3KL6yDzuywWXUH5uIYleUEYCSHxooRvJc MPgLHdboRJwaunOzTC0YRNmNzObfXAXhQ90JbgCS9Xw/uho3ifsRiLFTab3RahuBYRo0 4VWPMbULoab8JewHlGWMjQKHbYijMm1soD+vUR3m4claFpCciAQ2F/z7K5jVyH5Kq4Qf ilHalizg/n56WMoLY6+T98aJtQdey+juaByAFAvHSeMfrMd+4oejdmGOLgDCpsIkpeNn rE2dhIgdvAqnogmINKg0b54T3Xq+lf185GFg2MmVjb/0v6Zbk5j+aPjbuq3dG8lbcxvd EYGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=JR7YVXuM; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=bqh8bugg; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p29si40327614jal.22.2021.07.25.00.48.32; Sun, 25 Jul 2021 00:49:10 -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=@suse.de header.s=susede2_rsa header.b=JR7YVXuM; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=bqh8bugg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230210AbhGYHDi (ORCPT + 99 others); Sun, 25 Jul 2021 03:03:38 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:35704 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229883AbhGYHDc (ORCPT ); Sun, 25 Jul 2021 03:03:32 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 688B321FE7; Sun, 25 Jul 2021 07:44:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1627199041; 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=uTdCr90EhfYnVuvMUH866bNjY+DJx+dcPV6cBpY0faA=; b=JR7YVXuM1KyXY9KsF7olywfQ42lvfjVIQ3rHJlj6rnRT1X8Cp6FkRYAKPKzipr2026307J UchhKdD28lxNGgMvm75l0ckPIGmxcyJfAwyHnG5NFIw3BnE3IvsqmKYLmYcMuDT64gNPE0 UPzrvOmTeZy/gTY9Sm7sxbwjIYKzJKQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1627199041; 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=uTdCr90EhfYnVuvMUH866bNjY+DJx+dcPV6cBpY0faA=; b=bqh8bugg/inwtUvpftZtGto0o7dU9nbda8gUGpA4YRgoQSDW0Px0JTiFPUDZpT/+FoCTYs v4i0H0vzna/4f1Dg== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 3B937A3B83; Sun, 25 Jul 2021 07:44:01 +0000 (UTC) Date: Sun, 25 Jul 2021 09:44:01 +0200 Message-ID: From: Takashi Iwai To: Geraldo Nascimento Cc: chihhao.chen@mediatek.com, alsa-devel@alsa-project.org, wsd_upstream@mediatek.com, damien@zamaudio.com, tiwai@suse.com, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ALSA: usb-audio: fix incorrect clock source setting In-Reply-To: References: <1627100621-19225-1-git-send-email-chihhao.chen@mediatek.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 24 Jul 2021 17:04:13 +0200, Geraldo Nascimento wrote: > > On Sat, Jul 24, 2021 at 8:05 AM Takashi Iwai wrote: > > > > This looks like a regression introduced by the recent commit > > d2e8f641257d ("ALSA: usb-audio: Explicitly set up the clock > > selector"), which is a fix for certain devices. Too bad that the > > behavior really depends on the device... > > Dr. Iwai, perhaps we could restrict the generalized fix for the > Behringer UFX1604 / UFX1204 with some simple logic to devices that > only have *one* clock source. > > In that case the clock selector must be set to the only clock source. > > This way we keep the generalization without breaking devices with more > than one clock source. > > Just an idea. I don't think it's easy to generalize. All those bugs are more or less BIOS bugs, and a logic doesn't apply always, just because it's a bug :) For example, setting the clock selector itself should be a valid operation from the specification POV, while this leads to breakage on some devices. So, even if we add a more generic workaround, we need to see which side effect is more commonly seen at first. Takashi