ASoC: Don't unconditionally use the PLL in UDA1380
authorVasily Khoruzhick <anarsoul@gmail.com>
Tue, 3 Feb 2009 13:52:56 +0000 (15:52 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 3 Feb 2009 17:12:16 +0000 (17:12 +0000)
Without this fix driver switches to WSPLL in uda1380_pcm_prepare
even if SYSCLK was chosen (uda1380_pcm_prepare modifies UDA1380_CLK
register to disable R00_DAC_CLK before flushing reg cache)

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/uda1380.c

index 98e4a6560f06c8769ceaadfad446f0f7920ed90d..6e4a1770ce8d14748a9b619932520a3c97940707 100644 (file)
@@ -418,8 +418,8 @@ static int uda1380_pcm_prepare(struct snd_pcm_substream *substream,
                uda1380_write(codec, reg, uda1380_read_reg_cache(codec, reg));
        }
 
-       /* FIXME enable DAC_CLK */
-       uda1380_write(codec, UDA1380_CLK, clk | R00_DAC_CLK);
+       /* FIXME restore DAC_CLK */
+       uda1380_write(codec, UDA1380_CLK, clk);
 
        return 0;
 }