From: Mark Brown Date: Mon, 16 Aug 2010 18:26:41 +0000 (+0100) Subject: ASoC: Fix WM8580 CLKSEL mask selection X-Git-Tag: 2.1b_release~4275^2~32^2~606 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c25edef8dcdd9c193a8457e0cdf53197fd4523e8;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git ASoC: Fix WM8580 CLKSEL mask selection The RX and TX directions were inverted. Reported-by: Seungwhan Youn Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- diff --git a/sound/soc/codecs/wm8580.c b/sound/soc/codecs/wm8580.c index af4517e..42a6699 100644 --- a/sound/soc/codecs/wm8580.c +++ b/sound/soc/codecs/wm8580.c @@ -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;