Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1771909ybl; Sat, 11 Jan 2020 02:30:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzgamdxMHpzKTFUj39XHYSl3NHeLAuDfcbBdELZ9caGwjP6xpA5U24ISmGGQ7+PQKhB+8Ll X-Received: by 2002:a05:6808:1c6:: with SMTP id x6mr5915370oic.49.1578738627738; Sat, 11 Jan 2020 02:30:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578738627; cv=none; d=google.com; s=arc-20160816; b=pMZRkd0g6EJvWVqVwcSFwY7UcfuOTo+MLv25ZksJcUmCfqxmfoAsJ/+2z57ElhPzJB wykACLOGXsQy/sJ5Py4CL7Kb1YMh7a1XJfB36IqQSB8pFqmg02KhivVctE3t1w636sQK ymjfQpYhor3jChhWsdfqohakV+kFcazvLoz+gkHIX0yMN9kylVxuWsUAsh1HJ21I9v2k AS1aFQK0zhK/WVjglUF0hHNMyASYpQjod8F/4rG/Iy55JOEf6ypvC8YkDxyldfNpiUSJ L/WHFH9l9FChUISWrjF0pbztBsTZ/PItI+oe7474g7FdbNcYoV37IkAorlLgneEhXh9z 9Zag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yyhbh07vhjHF7x+HXSPIPG8oVDVg1zcHNhL5ub3Dn1A=; b=BGkN9Q4Uqd2S9LearhM8r9HlqRqjAt8uOTl6qERlXf1U1BWxF/asqz6ppYe4TqJx3u 9FApUsYDg7gbOGYM+BHqENxRoXKVVPMqbxHZ7RiyvPmlKI18+/ppvCyHC66fKwpxJiZr V8L7cIZhKI1IOr7VuY1Fjq2CfkpWIxOV+iwYM9sUtXu9+/IaXYE/FKdxg45K8yljWloh qs521LmpZjzgBmI+ts1dNIu/2vwJugwUC2dPlhcSVLyytPthOB2hEcCAWj89tisk6zN0 5AljcIJTYlwhk3Mhb/7Ne1ly/qb6DfGEAueYzxzNVnWOisqmJoQiAiGx6IPQCb5ttQ0W A5qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f+vbQ9pN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v202si2966051oie.79.2020.01.11.02.30.16; Sat, 11 Jan 2020 02:30:27 -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; dkim=pass header.i=@kernel.org header.s=default header.b=f+vbQ9pN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731057AbgAKK2b (ORCPT + 99 others); Sat, 11 Jan 2020 05:28:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:36106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730398AbgAKK23 (ORCPT ); Sat, 11 Jan 2020 05:28:29 -0500 Received: from localhost (unknown [62.119.166.9]) (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 5C80B2082E; Sat, 11 Jan 2020 10:28:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578738509; bh=GQiAvbWLjMvJk09cCba+syEJkkqYycnVG/FlajrljWk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f+vbQ9pNKNG86xsBq+8HI7jii921gfMZGRkoC06WgqdPAF1FH3YgMGkJ90nl/zpCq Q4JdpfhlOHmvXDlHW+IVyyFIpOodbeOn7W6GhHrMdMUi2dlfwRAbDcFBALKl08rncO JfNPidXzPMBhX7KZCKMcYjw8oUpwlkKQe5p+hL0Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shengjiu Wang , Charles Keepax , Mark Brown , Sasha Levin Subject: [PATCH 5.4 090/165] ASoC: wm8962: fix lambda value Date: Sat, 11 Jan 2020 10:50:09 +0100 Message-Id: <20200111094928.703357933@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200111094921.347491861@linuxfoundation.org> References: <20200111094921.347491861@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shengjiu Wang [ Upstream commit 556672d75ff486e0b6786056da624131679e0576 ] 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: Sasha Levin --- sound/soc/codecs/wm8962.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 3e5c69fbc33a..d9d59f45833f 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -2788,7 +2788,7 @@ static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, if (target % Fref == 0) { fll_div->theta = 0; - fll_div->lambda = 0; + fll_div->lambda = 1; } else { gcd_fll = gcd(target, fratio * Fref); @@ -2858,7 +2858,7 @@ static int wm8962_set_fll(struct snd_soc_component *component, int fll_id, int s return -EINVAL; } - if (fll_div.theta || fll_div.lambda) + if (fll_div.theta) fll1 |= WM8962_FLL_FRAC; /* Stop the FLL while we reconfigure */ -- 2.20.1