Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1984562pxb; Fri, 5 Mar 2021 04:47:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAV8MP2jW083woGEPA5hHFNTEbDhLXUy38+ZK5Y3gSads9SCPncbtj/r+X6do7uScb+boJ X-Received: by 2002:a17:906:b747:: with SMTP id fx7mr2153327ejb.474.1614948452198; Fri, 05 Mar 2021 04:47:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614948452; cv=none; d=google.com; s=arc-20160816; b=yC2WhIkJFVzZb4t+oE1ZWMAcfMi+Fwrb999E5Mx1nd+4VhSCojuzbA09Ki4vRLwgIO 3Hsg+jLAR3n6tL8ROpUz/jNlC495e+jqCJX0qoycha6GLDUwKjKpMkfD5jtSoJfUzTIf cSiNJQsqQAxFT/oJAl+p2MeCDGMHfHJ7xHHdYEGScCdD6iC5gwPQzSRlNMc8LrNxR24w SRPsIkueAkN3G36cgeRYOV/KBR8g3OqyodP59kA896dfq4I8zXmfqAeRdMSCL1O+BZYd 1o0tABAlhS9ibDZlhPF8HqITounp0NNccF0D+1X4wk9wJ9iJReK2IXLYtJu2nmi2AhvG HTqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QmF+mvS+MLxLt6q3dQkoY40EhjIBy/NHIII8iIh6APQ=; b=H0OCPUhY41vnhwLeSHGgsroHOOaNkuUiPBH6jEYWnI6iNqC6ctr3/Acb9/sFErfOoQ fTgDg6B/1S/ICZsEKnkA5klAYlyzvNZjBFtzPrRUsGgbDRFH0fDmDCDrykiJoVvwvt4p 5b8rHkHRiWjJBVn+WhDnk9wR4alpBI7GUVVmYNd9Vg2W1EPq70St5Z5eYGCgIS1M7Fjn fPbRoHVEEYhdRT6uY+NTfJnNXt1WbURasfiLy/RXyjWF0AwNgH21Fp3WPOgOf1WG0MHD kqEEnltceVyggs3FRz94Wx/KjZqZJpo/M98kVwPe4QNlhf1ptOJeuZZXNq7Hxxb876dG Fnrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bHjAZhuf; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o2si775838ejx.336.2021.03.05.04.47.07; Fri, 05 Mar 2021 04:47:32 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=bHjAZhuf; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233752AbhCEMoQ (ORCPT + 99 others); Fri, 5 Mar 2021 07:44:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233535AbhCEMnX (ORCPT ); Fri, 5 Mar 2021 07:43:23 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7FFAC061574 for ; Fri, 5 Mar 2021 04:43:21 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id f12so1920053wrx.8 for ; Fri, 05 Mar 2021 04:43:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QmF+mvS+MLxLt6q3dQkoY40EhjIBy/NHIII8iIh6APQ=; b=bHjAZhufUbVM2E/Px0qJ/imHzNvX1/O2wSS2s49c1PdMwr1NmNHqMaRuXPcczu75l9 cW/D3D1RXj7tRr/0BCgFgr3wTTOPAG+xNNlvxNQrqXzIGNK+SZWuaXTSoSUiBIWa+S75 yb22bkzeZebfMKeo2Qggt9fImoNaTxorpFA2uz/VeoQ+vIUp3UtPiz6rUM3A1LkqT9k1 AWe2V923LfTkrqUKrKNUr7LGNGhG3MbtYhwzxDLBGyXliY7mzZj2xN9grbtA4+WIAhcn 5hAAqGcR5kAZbirU0GnDm82xIOnBXGY4GcPxKby2cJu2M601j3KI8S9FT+DOdPbMr0Ep S5Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QmF+mvS+MLxLt6q3dQkoY40EhjIBy/NHIII8iIh6APQ=; b=pZY8I8Di1jqtZJy7qGd911ISxMHiblakW1HR4e5iuGo/hJySHAffzOc7aScYYkDgjG nRv4NVyejl1urAyZ9S4AUVKQLBwLN4AArwg4DodiK5w7mHSc3ZhhT9nL/W9lm0lz0TCx zuNyupp1ADEHn1bkFvgCvinjqgpGLvR+vv54u1lTzeXJAXam8Qk8Bt1pLKyZPRgVt4My 0Ajvzo2aRT6yHPRFSJvF4HI/r3WIToAuDsEopWs6PV+4lhMkFhd7nOaOg1CXdMhqx9PZ xiXjTXiajLIijD5PawsLSskA23jTqbvXY47pUBRjMbCT5wdNxp7eQE/0ZMT6Y4IiLzjK lXaA== X-Gm-Message-State: AOAM531JMpUB0ZQyPfKfGWuANMVAnZNr+ZoWRwD1B4t4pruIpLlg8N6F dIGuFMOMQcWKOggg5DG8eoCHDG+GPIdD634UqS0= X-Received: by 2002:adf:d84d:: with SMTP id k13mr9527969wrl.164.1614948200745; Fri, 05 Mar 2021 04:43:20 -0800 (PST) MIME-Version: 1.0 References: <1614770488-12861-1-git-send-email-shengjiu.wang@nxp.com> In-Reply-To: <1614770488-12861-1-git-send-email-shengjiu.wang@nxp.com> From: Daniel Baluta Date: Fri, 5 Mar 2021 14:43:08 +0200 Message-ID: Subject: Re: [PATCH] ASoC: wm8962: Relax bit clock divider searching To: Shengjiu Wang Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , ckeepax@opensource.cirrus.com, Kuninori Morimoto , Peter Ujfalusi , gustavoars@kernel.org, Pierre-Louis Bossart , patches@opensource.cirrus.com, Linux-ALSA , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 5, 2021 at 1:15 AM Shengjiu Wang wrote: > > With S20_3LE format case, the sysclk = rate * 384, > the bclk = rate * 20 * 2, there is no proper bclk divider > for 384 / 40, because current condition needs exact match. > So driver fails to configure the clocking: > > wm8962 3-001a: Unsupported BCLK ratio 9 > > Fix this by relaxing bitclk divider searching, so that when > no exact value can be derived from sysclk pick the closest > value greater than expected bitclk. > > Signed-off-by: Shengjiu Wang Reviewed-by: Daniel Baluta