Message ID | 1615341642-3797-1-git-send-email-shengjiu.wang@nxp.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 99067c07e8d877035f6249d194a317c78b7d052d |
Headers | show |
Series | [RESEND,v2] ASoC: wm8960: Remove bitclk relax condition in wm8960_configure_sysclk | expand |
On Wed, Mar 10, 2021 at 10:00:42AM +0800, Shengjiu Wang wrote: > changes in resend v2 > - Add acked-by Charles Please don't resend for acks, it just makes for more noise.
Hi Mark On Wed, Mar 10, 2021 at 9:26 PM Mark Brown <broonie@kernel.org> wrote: > > On Wed, Mar 10, 2021 at 10:00:42AM +0800, Shengjiu Wang wrote: > > > changes in resend v2 > > - Add acked-by Charles > > Please don't resend for acks, it just makes for more noise. ok, but could you please review this patch? Best regards wang shengjiu
On Wed, Mar 24, 2021 at 09:44:26AM +0800, Shengjiu Wang wrote: > On Wed, Mar 10, 2021 at 9:26 PM Mark Brown <broonie@kernel.org> wrote: > > Please don't resend for acks, it just makes for more noise. > ok, but could you please review this patch? I already had it queued when you resent your patch, that's part of why I was complaining about the resend. It's in git now.
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c index df351519a3a6..847ca16b9841 100644 --- a/sound/soc/codecs/wm8960.c +++ b/sound/soc/codecs/wm8960.c @@ -608,10 +608,6 @@ static const int bclk_divs[] = { * - lrclk = sysclk / dac_divs * - 10 * bclk = sysclk / bclk_divs * - * If we cannot find an exact match for (sysclk, lrclk, bclk) - * triplet, we relax the bclk such that bclk is chosen as the - * closest available frequency greater than expected bclk. - * * @wm8960: codec private data * @mclk: MCLK used to derive sysclk * @sysclk_idx: sysclk_divs index for found sysclk @@ -629,7 +625,7 @@ int wm8960_configure_sysclk(struct wm8960_priv *wm8960, int mclk, { int sysclk, bclk, lrclk; int i, j, k; - int diff, closest = mclk; + int diff; /* marker for no match */ *bclk_idx = -1; @@ -653,12 +649,6 @@ int wm8960_configure_sysclk(struct wm8960_priv *wm8960, int mclk, *bclk_idx = k; break; } - if (diff > 0 && closest > diff) { - *sysclk_idx = i; - *dac_idx = j; - *bclk_idx = k; - closest = diff; - } } if (k != ARRAY_SIZE(bclk_divs)) break;