diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-05-27 11:30:53 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-05-28 13:57:21 -0400 |
commit | 74ab24af4fe165de5af01d0507250dd099f096b0 (patch) | |
tree | d226912df3d2a532734396ed3ab169d25fbee922 /sound/soc/codecs/max98095.c | |
parent | a5fe6be42e5cadac4c2aef2b3714cfa8fadb6092 (diff) |
ASoC: Remove redundant freq assignment for max98095->sysclk/max98088->sysclk
Current implementation set max98095->sysclk/max98088->sysclk to freq twice.
Set it once is enough, this patch removes the first assignment in case
we may set invalid clock frequency to max98095->sysclk/max98088->sysclk.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Peter Hsiang <peter.hsiang@maxim-ic.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/max98095.c')
-rw-r--r-- | sound/soc/codecs/max98095.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/codecs/max98095.c b/sound/soc/codecs/max98095.c index a6cc94e1750b..fe19677bf4b5 100644 --- a/sound/soc/codecs/max98095.c +++ b/sound/soc/codecs/max98095.c | |||
@@ -1517,8 +1517,6 @@ static int max98095_dai_set_sysclk(struct snd_soc_dai *dai, | |||
1517 | if (freq == max98095->sysclk) | 1517 | if (freq == max98095->sysclk) |
1518 | return 0; | 1518 | return 0; |
1519 | 1519 | ||
1520 | max98095->sysclk = freq; /* remember current sysclk */ | ||
1521 | |||
1522 | /* Setup clocks for slave mode, and using the PLL | 1520 | /* Setup clocks for slave mode, and using the PLL |
1523 | * PSCLK = 0x01 (when master clk is 10MHz to 20MHz) | 1521 | * PSCLK = 0x01 (when master clk is 10MHz to 20MHz) |
1524 | * 0x02 (when master clk is 20MHz to 40MHz).. | 1522 | * 0x02 (when master clk is 20MHz to 40MHz).. |