Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6775282ybc; Thu, 28 Nov 2019 05:19:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzXSk5O4zWh6eDwEDyBUm0x4kPQyY0xKOq1eCkigzFdk546nRNbs+kVhLHcBW5ERa+9qkM2 X-Received: by 2002:aa7:d391:: with SMTP id x17mr37779988edq.43.1574947192896; Thu, 28 Nov 2019 05:19:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574947192; cv=none; d=google.com; s=arc-20160816; b=Q5vjkanjKK9yZ7k8BzCvRjHndKgXntRkhErtSNEP5b1ob9/q1Rzng74Ycs+gEdqRqs EIpxE36/l9tS9aOgLWTEnb34aOyUJyphtZCpLcbY+NHCaT4H+Ad0bgs2a4KZOjrp12pq 8UKM/HynmM17DZKksAUaheVZXV0JWWW0m/FqNqUo6tTDEgTRNcKqU39XHDByPDka6mSW ulXFVGF9xsghxazua4FQhb6tMkfXLkbVw6aVC0gv1zkxoYvYydae1wmcDRmnnwPBrFnA VLgJqkc7ZblYML3glTSJfE2CCaCt182jcwPaKFUN+dJw9oU+sl4lj7Jo0STHzHSsdB9s xnHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to:subject:cc:to:from :date; bh=MI1bTd3qctDgIYiqysn1+vTk/+HIk8UPlTkF8tYPGck=; b=xq08/90jyZfJz0vw4lm46CPcV2XsHHNzj1Y/k5WW+S7PZtQpTj8ti4HuQ3FqlVLFLU WCVewLnMSrtuU5ji8nsoMaEDZe537cMkBlkJIqO+bXN3sjIyHbV5EdVQ8tN415vwMOVF GsHYPdZFOD3R9OlrPVhMyKbkZlRlaMtG4r4MI8kE0ti192tq4buztzUyPFeKjYymtsZ7 TBfiSKeTgV1GHcMXUixTZPNklIHmM+Rgukp6MxdUwipwIJN5Gc789zjPHYLddw2OgwNX jLOgey7jAt94PXpRHFHXR1o4fjzqi2ngww2Kh1eDSKhNGsQh8wQ39bQ3PUVtU6CSub8O 7fKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i19si2538730ejh.258.2019.11.28.05.19.28; Thu, 28 Nov 2019 05:19:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726510AbfK1NSb (ORCPT + 99 others); Thu, 28 Nov 2019 08:18:31 -0500 Received: from foss.arm.com ([217.140.110.172]:35188 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbfK1NSb (ORCPT ); Thu, 28 Nov 2019 08:18:31 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7FCD131B; Thu, 28 Nov 2019 05:18:30 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F38E63F52E; Thu, 28 Nov 2019 05:18:29 -0800 (PST) Date: Thu, 28 Nov 2019 13:18:28 +0000 From: Mark Brown To: Michael Walle Cc: alsa-devel@alsa-project.org, Charles Keepax , Jaroslav Kysela , Liam Girdwood , linux-kernel@vger.kernel.org, Mark Brown , patches@opensource.cirrus.com, Takashi Iwai Subject: Applied "ASoC: wm8904: fix automatic sysclk configuration" to the asoc tree In-Reply-To: <20191122232532.22258-1-michael@walle.cc> Message-Id: X-Patchwork-Hint: ignore Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: wm8904: fix automatic sysclk configuration has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 2a0bda276c64212e517cc1d65cf65719a9ab1ef6 Mon Sep 17 00:00:00 2001 From: Michael Walle Date: Sat, 23 Nov 2019 00:25:32 +0100 Subject: [PATCH] ASoC: wm8904: fix automatic sysclk configuration The simple-card tries to signal the codec to disable rate constraints, see commit 2458adb8f92a ("SoC: simple-card-utils: set 0Hz to sysclk when shutdown"). This wasn't handled by the codec, instead it would set the FLL frequency to 0Hz which isn't working. Since we don't have any rate constraints just ignore this request. Fixes: 13409d27cb39 ("ASoC: wm8904: configure sysclk/FLL automatically") Signed-off-by: Michael Walle Acked-by: Charles Keepax Link: https://lore.kernel.org/r/20191122232532.22258-1-michael@walle.cc Signed-off-by: Mark Brown --- sound/soc/codecs/wm8904.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index 2a7d23a5daa8..d191d81850ee 100644 --- a/sound/soc/codecs/wm8904.c +++ b/sound/soc/codecs/wm8904.c @@ -1806,6 +1806,12 @@ static int wm8904_set_sysclk(struct snd_soc_dai *dai, int clk_id, switch (clk_id) { case WM8904_CLK_AUTO: + /* We don't have any rate constraints, so just ignore the + * request to disable constraining. + */ + if (!freq) + return 0; + mclk_freq = clk_get_rate(priv->mclk); /* enable FLL if a different sysclk is desired */ if (mclk_freq != freq) { -- 2.20.1