ASoC: Fix WM8580 CLKSEL mask selection
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 16 Aug 2010 18:26:41 +0000 (19:26 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 16 Aug 2010 19:21:34 +0000 (20:21 +0100)
The RX and TX directions were inverted.

Reported-by: Seungwhan Youn <claude.youn@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/wm8580.c

index af4517ed2964286f9235f4704fd085929888898c..42a6699662ee3052ccfe33b7c0de3b105fedf152 100644 (file)
@@ -703,12 +703,12 @@ static int wm8580_set_sysclk(struct snd_soc_dai *dai, int clk_id,
        int sel, sel_mask, sel_shift;
 
        switch (dai->driver->id) {
-       case WM8580_DAI_PAIFTX:
+       case WM8580_DAI_PAIFRX:
                sel_mask = 0x3;
                sel_shift = 0;
                break;
 
-       case WM8580_DAI_PAIFRX:
+       case WM8580_DAI_PAIFTX:
                sel_mask = 0xc;
                sel_shift = 2;
                break;