All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: codecs/wm8978: pll incorrectly configured when codec is master
@ 2012-11-02 21:05 Eric Millbrandt
  2012-11-06  8:38 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Millbrandt @ 2012-11-02 21:05 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood; +Cc: alsa-devel, Eric Millbrandt

When MCLK is supplied externally and BCLK and LRC are configured as outputs
(codec is master), the PLL values are only calculated correctly on the first
transmission.  On subsequent transmissions, at differenct sample rates, the
wrong PLL values are used.  Test for f_opclk instead of f_pllout to determine
if the PLL values are needed.

Signed-off-by: Eric Millbrandt <emillbrandt@dekaresearch.com>
---
 sound/soc/codecs/wm8978.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/codecs/wm8978.c b/sound/soc/codecs/wm8978.c
index a706262..e329187 100644
--- a/sound/soc/codecs/wm8978.c
+++ b/sound/soc/codecs/wm8978.c
@@ -784,7 +784,7 @@ static int wm8978_hw_params(struct snd_pcm_substream *substream,
 		wm8978->mclk_idx = -1;
 		f_sel = wm8978->f_mclk;
 	} else {
-		if (!wm8978->f_pllout) {
+		if (!wm8978->f_opclk) {
 			/* We only enter here, if OPCLK is not used */
 			int ret = wm8978_configure_pll(codec);
 			if (ret < 0)
-- 
1.7.2.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: codecs/wm8978: pll incorrectly configured when codec is master
  2012-11-02 21:05 [PATCH] ASoC: codecs/wm8978: pll incorrectly configured when codec is master Eric Millbrandt
@ 2012-11-06  8:38 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-11-06  8:38 UTC (permalink / raw)
  To: Eric Millbrandt; +Cc: alsa-devel, Liam Girdwood


[-- Attachment #1.1: Type: text/plain, Size: 430 bytes --]

On Fri, Nov 02, 2012 at 05:05:44PM -0400, Eric Millbrandt wrote:
> When MCLK is supplied externally and BCLK and LRC are configured as outputs
> (codec is master), the PLL values are only calculated correctly on the first
> transmission.  On subsequent transmissions, at differenct sample rates, the
> wrong PLL values are used.  Test for f_opclk instead of f_pllout to determine
> if the PLL values are needed.

Applied, thanks.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-06  8:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-02 21:05 [PATCH] ASoC: codecs/wm8978: pll incorrectly configured when codec is master Eric Millbrandt
2012-11-06  8:38 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.