Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3215603pxb; Wed, 13 Oct 2021 01:09:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZuCJLqnkY0ZHV/aXduYfmUaoBh7AtOLChHBnDilKSrbdyEA1nDjDFiLATMkwz90A+rHT2 X-Received: by 2002:a17:906:35cc:: with SMTP id p12mr38786714ejb.351.1634112569842; Wed, 13 Oct 2021 01:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634112569; cv=none; d=google.com; s=arc-20160816; b=umk05zPdHc6COzO0XW1I64zVw60/GPHXPbb/x91znx7pbp9t257TFZNf/1V0FbAwB+ Vlf0TuEUZWmTB3Nni5clL1KsMWKA4PqEg6hNV9joPUWU9ztvFqeSQgZeU/1pT9VBNSWD hp0/mlSY+VACQs/89mHOS2bCTit+9ZRt8Ze2aMg/Ry1moMHpt02w0GI03+yxV47toRli yM/vmpakhC+MzRNHV+IfkkbIlrkomSUseKNZjbhv4Q7d5xgoWVBY1lvlJZSO/ibcfE3d Y00e4alh2g5+FoufruJNxHkNICJNgB3+Y9oZzZzaDY8QxTyRvlWHTGkCk06G1FiWnzmd GLVA== 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=xN3HwVR8Olq4c8b80ksL+6F0RWwTIzqvH/ci+40/9ys=; b=hb3v7UFKg9vGcgZazvptAS3nyzSViCyPIN/YmtK9+fhMfxUFlI4RjNa+1dWLfrEBvf OUvvs7Qpl5gI207QIVzbpGwsc7YF3m+zH6UDGM2efrn4yilW4/j3VRwnt1HKVOPQ6OPY cHv6+idSBy1f0is/NBe1wJTtu5tcdo2Eg3yZ6mi74dM3dOV2C2H+qx8CrMZT/OXVKfl8 2WG21XtVBYe5Qq5mJtLP9ieKYA4deTB6dp22k1tRiI3kudgklCdJ1DszHCNZ+EM3WsnR SzIKGfGIDhaH6t1K/EOkfZ/jJmwGZ21xwalMzCbuiS3ItNWTDPDzbNjNp93ZdAk7pN4/ xS7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=qVlRbrN4; 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 dt11si33037922ejc.41.2021.10.13.01.09.04; Wed, 13 Oct 2021 01:09:29 -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=qVlRbrN4; 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 S238778AbhJMIJA (ORCPT + 99 others); Wed, 13 Oct 2021 04:09:00 -0400 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:24802 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238743AbhJMIIJ (ORCPT ); Wed, 13 Oct 2021 04:08:09 -0400 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19D5M4xr003946; Wed, 13 Oct 2021 03:05:46 -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=xN3HwVR8Olq4c8b80ksL+6F0RWwTIzqvH/ci+40/9ys=; b=qVlRbrN4ezddF/g1zdnAe2813XEyb02o8yc47aiOwvXm9fuSFUpldFxOrgnIRvho7mmX AsXyMzlcCBdK/2MQJNT+7QUeigFXV+Y8XIv8v8NfHJi5PhUNYhcwsJOh88jDF1CP4bDV OWzTtal8VNJfIumLEFXQ9+KPQpF/fuYtm5WUnqLYtj4rGo2CckH3VP1r4jsxVORqHXYQ bY1cGQRCVpZFV7RfbUSB6AwOKBoYANX58WK7fUt2oBjjVjHRYEXvfDgUay46Lm0tvtaD LquR9/UunkXphtLHJglDF2f8Z53b9PtXweXJXETrVU3HVSMDrfPPYwhyz++qxyY5B1vh EQ== Received: from ediex01.ad.cirrus.com ([87.246.76.36]) by mx0b-001ae601.pphosted.com with ESMTP id 3bnkc08hm7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 13 Oct 2021 03:05:46 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Wed, 13 Oct 2021 09:05:45 +0100 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.2375.7 via Frontend Transport; Wed, 13 Oct 2021 09:05:45 +0100 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id E483EB15; Wed, 13 Oct 2021 08:05:44 +0000 (UTC) Date: Wed, 13 Oct 2021 08:05:44 +0000 From: Charles Keepax To: Shengjiu Wang CC: , , , , , , , Subject: Re: [PATCH v2] ASoC: wm8960: Fix clock configuration on slave mode Message-ID: <20211013080544.GB28292@ediswmail.ad.cirrus.com> References: <1634102224-3922-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: <1634102224-3922-1-git-send-email-shengjiu.wang@nxp.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-GUID: NbTush4FL2ZubP2MgG4FZxPUgVnVB4Bx X-Proofpoint-ORIG-GUID: NbTush4FL2ZubP2MgG4FZxPUgVnVB4Bx X-Proofpoint-Spam-Reason: safe Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 13, 2021 at 01:17:04PM +0800, Shengjiu Wang wrote: > There is a noise issue for 8kHz sample rate on slave mode. > Compared with master mode, the difference is the DACDIV > setting, after correcting the DACDIV, the noise is gone. > > There is no noise issue for 48kHz sample rate, because > the default value of DACDIV is correct for 48kHz. > > So wm8960_configure_clocking() should be functional for > ADC and DAC function even if it is slave mode. > > In order to be compatible for old use case, just add > condition for checking that sysclk is zero with > slave mode. > > Fixes: 0e50b51aa22f ("ASoC: wm8960: Let wm8960 driver configure its bit clock and frame clock") > Signed-off-by: Shengjiu Wang > --- Acked-by: Charles Keepax Thanks, Charles