aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-08-16 14:26:41 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-08-16 15:21:34 -0400
commitc25edef8dcdd9c193a8457e0cdf53197fd4523e8 (patch)
tree106050451d1c22ab73ad2a9a963174deef1e6289 /sound/soc/codecs
parente4862f2f6f5653dfb67f3ba2b6f0bc74516ed51a (diff)
ASoC: Fix WM8580 CLKSEL mask selection
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>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/wm8580.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8580.c b/sound/soc/codecs/wm8580.c
index af4517ed2964..42a6699662ee 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,
703 int sel, sel_mask, sel_shift; 703 int sel, sel_mask, sel_shift;
704 704
705 switch (dai->driver->id) { 705 switch (dai->driver->id) {
706 case WM8580_DAI_PAIFTX: 706 case WM8580_DAI_PAIFRX:
707 sel_mask = 0x3; 707 sel_mask = 0x3;
708 sel_shift = 0; 708 sel_shift = 0;
709 break; 709 break;
710 710
711 case WM8580_DAI_PAIFRX: 711 case WM8580_DAI_PAIFTX:
712 sel_mask = 0xc; 712 sel_mask = 0xc;
713 sel_shift = 2; 713 sel_shift = 2;
714 break; 714 break;