[tip:core/locking] ASoC: Fix WM8580 CLKSEL mask selection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit-ID:  c25edef8dcdd9c193a8457e0cdf53197fd4523e8
Gitweb:     http://git.kernel.org/tip/c25edef8dcdd9c193a8457e0cdf53197fd4523e8
Author:     Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
AuthorDate: Mon, 16 Aug 2010 19:26:41 +0100
Committer:  Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
CommitDate: Mon, 16 Aug 2010 20:21:34 +0100

ASoC: Fix WM8580 CLKSEL mask selection

The RX and TX directions were inverted.

Reported-by: Seungwhan Youn <claude.youn@xxxxxxxxx>
Signed-off-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Acked-by: Liam Girdwood <lrg@xxxxxxxxxxxxxxx>
---
 sound/soc/codecs/wm8580.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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;
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux