ASoC: Don't unconditionally use the PLL in UDA1380

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>
This commit is contained in:
Vasily Khoruzhick 2009-02-03 15:52:56 +02:00 committed by Mark Brown
parent 395707212a
commit 111f6fbeb7

View 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;
}