Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4111472pxf; Tue, 23 Mar 2021 03:02:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLyW8iQOUL0giD6bGX6C/kC4+3TRac4uQ8Mpr5FOZWOFVhORe1R1RnPph5aY4AtR4idxsK X-Received: by 2002:a17:906:1b54:: with SMTP id p20mr4028546ejg.307.1616493769478; Tue, 23 Mar 2021 03:02:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616493769; cv=none; d=google.com; s=arc-20160816; b=e7tMzhzsJChHc/ds4VJtAH/YONVYlS6RRAhGHmqQnhwYAVtBCfovtmBN/D8cNEYivP jouXaTwlJyXL3aMYW0w9HfWrXrRxupnM4VlsT+lsHzXQhJKF/Nbwu0czaUM7FcW8N/Q+ W3u9bdrzHdZM8WZbYxpcs9K9r7Y0/p3aO6bI768OSRGACD9lJUrFZ/xIB6B0MKhSNOc4 2Yl1WaCeSffNAsyTFsEWTTTkYGax21mBtqApIwuGzt1QkW5pKJbgJHs3ccKF1K7NPMNu VEua19v2HdUgjiSqYiNIuPXerm9fGJ/DdNyah9+GR7w1VLmldwK4AGXyHgslklN43D0m jxjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=b6qErrcCVJKETaqJbCUYndAXMiSTFSJSDc+Bcs5NrEs=; b=ID/0favio0Hw7TlcYfKcQEv2KLVk30UD712dg12hgB6ocM0yq/1nJBjzA8TPQPKhCa EktKL0nfX4/8sZQFFGDr2/C1337t8FamHmskTZF8aV5vHDKThqk/Brij3x63E2UlChz+ 9JKqqIVD80S+Zi62AH47zpcHUwbXh+PQbOZyVuHgsw79IghkFfKK8lyKu3V5gmDYUQ3T sdE70H7AP/3Y9hz1+LQSf7VF7cuS+xyGclIxAs/9XcmSYOH+0+lVaxxFHoolaoZEtnw3 LNtrque7pablgmwk3f1WcEFPyMFxl2ahKIUlmv0aJQPNrGfsS05izb+G/G7j1mMY0iBh GVqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b="QPV/0s5b"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si13826740edv.29.2021.03.23.03.02.25; Tue, 23 Mar 2021 03:02:49 -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=@cirrus.com header.s=PODMain02222019 header.b="QPV/0s5b"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbhCWKBB (ORCPT + 99 others); Tue, 23 Mar 2021 06:01:01 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:48876 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229728AbhCWKAl (ORCPT ); Tue, 23 Mar 2021 06:00:41 -0400 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 12N9u49j032622; Tue, 23 Mar 2021 04:59:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=b6qErrcCVJKETaqJbCUYndAXMiSTFSJSDc+Bcs5NrEs=; b=QPV/0s5bNtqQBnZzoOzh6EffApUw7mrEzZgc1XOouRyHLwJOxxSs+odJ5gu+iCV0Si60 O2hyrCkpv5ocH3nTijbP4c1GRktNWIQN98Zb0Qgr2KkYIXLII1Ibwy8eXymoYED6BWyt pRznAmc1DJQlKGKga5kQpX5HO3iSPMoz/S34iYktEQOdiwyKzDp8c92KzYKk3hrYzHLY xLI9yux3cA4cPE6oJW3g97890AbjC3MTrdOC5Rv0Vn6DYhKBugsYCH+7EpfT0u1uVVug AYdG8WvTqJ8aZFSaZa2k2v04yHNjmUoL0IzR4mJL+D360hwp/KiZa1/BB99RUkLdqr+a CQ== Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0a-001ae601.pphosted.com with ESMTP id 37def3bcqs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 23 Mar 2021 04:59:31 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 23 Mar 2021 09:59:29 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 23 Mar 2021 09:59:29 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id C634711CB; Tue, 23 Mar 2021 09:59:29 +0000 (UTC) Date: Tue, 23 Mar 2021 09:59:29 +0000 From: Charles Keepax To: Shengjiu Wang CC: , , , , , , , , , , , Subject: Re: [PATCH] ASoC: wm8960: Fix wrong bclk and lrclk with pll enabled for some chips Message-ID: <20210323095929.GS106851@ediswmail.ad.cirrus.com> References: <1616150926-22892-1-git-send-email-shengjiu.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1616150926-22892-1-git-send-email-shengjiu.wang@nxp.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 impostorscore=0 suspectscore=0 mlxscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 mlxlogscore=952 bulkscore=0 phishscore=0 malwarescore=0 priorityscore=1501 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103230072 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 19, 2021 at 06:48:46PM +0800, Shengjiu Wang wrote: > The input MCLK is 12.288MHz, the desired output sysclk is 11.2896MHz > and sample rate is 44100Hz, with the configuration pllprescale=2, > postscale=sysclkdiv=1, some chip may have wrong bclk > and lrclk output with pll enabled in master mode, but with the > configuration pllprescale=1, postscale=2, the output clock is correct. > > >From Datasheet, the PLL performs best when f2 is between > 90MHz and 100MHz when the desired sysclk output is 11.2896MHz > or 12.288MHz, so sysclkdiv = 2 (f2/8) is the best choice. > > So search available sysclk_divs from 2 to 1 other than from 1 to 2. > > Fixes: 84fdc00d519f ("ASoC: codec: wm9860: Refactor PLL out freq search") > Signed-off-by: Shengjiu Wang > --- Acked-by: Charles Keepax Thanks, Charles