From patchwork Fri Jul 21 16:29:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 9857275 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7682060388 for ; Fri, 21 Jul 2017 16:29:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62A6C2872B for ; Fri, 21 Jul 2017 16:29:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 578FC28769; Fri, 21 Jul 2017 16:29:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55CDC2872B for ; Fri, 21 Jul 2017 16:29:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750849AbdGUQ3f (ORCPT ); Fri, 21 Jul 2017 12:29:35 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:11577 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751504AbdGUQ3e (ORCPT ); Fri, 21 Jul 2017 12:29:34 -0400 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20170721162932epoutp04f5e8102d617c8b0a33810cc3994e8cf0~TZWIP2slF0053500535epoutp04H; Fri, 21 Jul 2017 16:29:32 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.42.55]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20170721162932epcas1p17d4995cdef9e4eb76b00a14e09e2fdcc~TZWH6Vu7h1259212592epcas1p1A; Fri, 21 Jul 2017 16:29:32 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id C5.18.06724.CEB22795; Sat, 22 Jul 2017 01:29:32 +0900 (KST) Received: from epsmgms2p1.samsung.com (unknown [182.195.42.79]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20170721162931epcas1p3e72f1448e81b4f282f5495c9c6ae0d53~TZWHHEqgx0414104141epcas1p3f; Fri, 21 Jul 2017 16:29:31 +0000 (GMT) X-AuditID: b6c32a37-f79c96d000001a44-e8-59722bec56ef Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 62.9E.05076.BEB22795; Sat, 22 Jul 2017 01:29:31 +0900 (KST) Received: from AMDC3061.digital.local ([106.116.147.40]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OTG007Q58GZDW30@mmp1.samsung.com>; Sat, 22 Jul 2017 01:29:31 +0900 (KST) From: Sylwester Nawrocki To: broonie@kernel.org, lgirdwood@gmail.com Cc: krzk@kernel.org, linux-samsung-soc@vger.kernel.org, b.zolnierkie@samsung.com, alsa-devel@alsa-project.org, Sylwester Nawrocki Subject: [PATCH] ASoC: samsung: odroid: Fix EPLL frequency values Date: Fri, 21 Jul 2017 18:29:20 +0200 Message-id: <1500654560-29516-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsWy7bCmnu4b7aJIg0M3BC2uXDzEZLFxxnpW i6kPn7BZnD+/gd3i25UOJosZ5/cxWRx+087qwO6x4XMTm8f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POlJ8wgCTYBQ4neo31gDSIC2hJzbnawgRQxC8xjlGhqfQzWLSzgKDF16nYW EJtFQFXi2p4NrCA2r4CbxM+NB5kgtslJnDw2mXUCI/cCRoZVjFypBcW56bnFRgWGmxiBgbjt sJb/DsYfZ6MPMQpwMCrx8BqwFEUKsSaWFVfmHmKU4GBWEuH9pw4U4k1JrKxKLcqPLyrNSS0+ xGgKtHIis5Rocj4wSvJK4g1NLI1MDMzMDI0MjM2UxHknBH6JEBJITyxJzU5NLUgtgulj4uCU amDUPJlb27F7ndn+qc/+qRv/4NkWI2nxU+kNx+Kiyv4471cMWZfinJbUHhPc673Tmlf1R9q7 2329MwW8aq4rfnn3Y9HPBUbv+pvz/SqNVauC+A98UOvdx+B5fmv3o9d9NUzGTavfhbmk1jYo n+Ccf27WCStx9xuvE1IeajvL/IjLmGj5M3rJ2jNKLMUZiYZazEXFiQCdNp3jWgIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170721162931epcas1p3e72f1448e81b4f282f5495c9c6ae0d53 X-Msg-Generator: CA X-Sender-IP: 182.195.42.79 X-Local-Sender: =?UTF-8?B?U3lsd2VzdGVyIE5hd3JvY2tpG1NSUE9MLUtlcm5lbCAoVFAp?= =?UTF-8?B?G+yCvOyEseyghOyekBtTZW5pb3IgU29mdHdhcmUgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?U3lsd2VzdGVyIE5hd3JvY2tpG1NSUE9MLUtlcm5lbCAoVFAp?= =?UTF-8?B?G1NhbXN1bmcgRWxlY3Ryb25pY3MbU2VuaW9yIFNvZnR3YXJlIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 101P X-CMS-RootMailID: 20170721162931epcas1p3e72f1448e81b4f282f5495c9c6ae0d53 X-RootMTR: 20170721162931epcas1p3e72f1448e81b4f282f5495c9c6ae0d53 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP To prevent incorrect setting of the EPLL the clock frequency values are changed to exact values as possible to obtain on the EPLL output with given PLL coefficients. This patch is required after recent change of the EPLL rate table by patch "clk: samsung: exynos5420: The EPLL rate table corrections". Signed-off-by: Sylwester Nawrocki --- It would be good to apply this patch for 4.13-rc, I plan to get applied corresponding clk patch also to v4.13-rc. --- sound/soc/samsung/odroid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/samsung/odroid.c b/sound/soc/samsung/odroid.c index 0c0b00e..0834319 100644 --- a/sound/soc/samsung/odroid.c +++ b/sound/soc/samsung/odroid.c @@ -42,17 +42,17 @@ static int odroid_card_hw_params(struct snd_pcm_substream *substream, switch (params_rate(params)) { case 32000: case 64000: - pll_freq = 131072000U; + pll_freq = 131072006U; break; case 44100: case 88200: case 176400: - pll_freq = 180633600U; + pll_freq = 180633609U; break; case 48000: case 96000: case 192000: - pll_freq = 196608000U; + pll_freq = 196608001U; break; default: return -EINVAL;