Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2339819ybz; Thu, 23 Apr 2020 16:19:35 -0700 (PDT) X-Google-Smtp-Source: APiQypKLcORQvvyAr7oqFDkM7BKGxnmh6ER36XNI2zTO3Eo36WZNZ2s1hWlsyhgzkHSsNsASscOu X-Received: by 2002:a05:6402:22ea:: with SMTP id dn10mr4859179edb.70.1587683975623; Thu, 23 Apr 2020 16:19:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587683975; cv=none; d=google.com; s=arc-20160816; b=o3Bcq5YEAcisIotHvUTSKNJbvGfIItZvm1O7YaOQwm+bIyzbG91ZCUDbEWIQZvIOYO RAueNFiQIIZgnr2zLbBZSDx8UrEQ3eAdnHZd6a+YF2zManJK8JCMYM6m7ElPBPIAwJr2 /agp4i7yVjl1Y+MiEK2ojmA/Ndjy19ALeZR5z7iLtP+EpLnLFjLcAMKsbW16SXUC8BTr qgJfXWMzIhk2+0oCbW+OgJSNcVxn0FFUs7XY6QSMXfOQ1PcJtd1FMk4mzs9xipkl0dXC VMJo+3Yawu2wD3xj6n64efHBC+t2Z+hvKv6qxTtKCizjkHQe6H6DlzcoO/wi1UAaJ1Gk RIfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=RVxvbAvOOJ5l4FsORtkSp9CHszIRx0sF8/KtumH3Tek=; b=WlgAw3jTdAdDzlwdnLrkG/9tf+qataaXOJ1V5M79jgZXxsqotwSXdFygnlmePZkcJY u+6RaS0i9K98v090xqazTLPJNNJS4eUo9n9ZF8PniH5qJ3Nb0YJ0NWBJ1gT7qh5jw7AW I4otWHjtJc7rf7kP8LPHO66doEE5fnKjalb+cuYMdoop2BPyUgVsIrRWquiJWdXoQGcz JzrFYwRQlJz42tVoSd27mSaZkFx3gxHuNldgkkmt9RmjTFGnt7bWbQJ6g1ZWq22B1B7C QOQiEFiy8BcePslJzTgYtpfmkSlh2n7JhQd4xaQ2BOjxMBD3IKl6pQ1dDs6iOXe+tLTt Vr7Q== ARC-Authentication-Results: i=1; mx.google.com; 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 o5si2106163ejr.501.2020.04.23.16.19.12; Thu, 23 Apr 2020 16:19:35 -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; 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 S1729055AbgDWXPx (ORCPT + 99 others); Thu, 23 Apr 2020 19:15:53 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:49648 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728399AbgDWXGq (ORCPT ); Thu, 23 Apr 2020 19:06:46 -0400 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jRkvU-0004h9-Ei; Fri, 24 Apr 2020 00:06:36 +0100 Received: from ben by deadeye with local (Exim 4.93) (envelope-from ) id 1jRkvR-00E6pP-Eu; Fri, 24 Apr 2020 00:06:33 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, Denis Kirjanov , "Charles Keepax" , "Mark Brown" , "Shengjiu Wang" Date: Fri, 24 Apr 2020 00:05:56 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) X-Patchwork-Hint: ignore Subject: [PATCH 3.16 129/245] ASoC: wm8962: fix lambda value In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.83-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Shengjiu Wang commit 556672d75ff486e0b6786056da624131679e0576 upstream. According to user manual, it is required that FLL_LAMBDA > 0 in all cases (Integer and Franctional modes). Fixes: 9a76f1ff6e29 ("ASoC: Add initial WM8962 CODEC driver") Signed-off-by: Shengjiu Wang Acked-by: Charles Keepax Link: https://lore.kernel.org/r/1576065442-19763-1-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown Signed-off-by: Ben Hutchings --- sound/soc/codecs/wm8962.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -2795,7 +2795,7 @@ static int fll_factors(struct _fll_div * if (target % Fref == 0) { fll_div->theta = 0; - fll_div->lambda = 0; + fll_div->lambda = 1; } else { gcd_fll = gcd(target, fratio * Fref); @@ -2865,7 +2865,7 @@ static int wm8962_set_fll(struct snd_soc return -EINVAL; } - if (fll_div.theta || fll_div.lambda) + if (fll_div.theta) fll1 |= WM8962_FLL_FRAC; /* Stop the FLL while we reconfigure */