ASoC: Fix offset of freqmode in WM8580 PLL configuration
[sfrench/cifs-2.6.git] / sound / soc / codecs / wm8580.c
index 442ea6f160fc0eaefcd1c55b247cd88acbe02d27..41aab4a7a2548e4bc064ed4efc5ea39f9f8374ac 100644 (file)
@@ -522,7 +522,7 @@ static int wm8580_set_dai_pll(struct snd_soc_dai *codec_dai,
        reg = wm8580_read(codec, WM8580_PLLA4 + offset);
        reg &= ~0x3f;
        reg |= pll_div.prescale | pll_div.postscale << 1 |
-               pll_div.freqmode << 4;
+               pll_div.freqmode << 3;
 
        wm8580_write(codec, WM8580_PLLA4 + offset, reg);