Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c25edef8 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Fix WM8580 CLKSEL mask selection



The RX and TX directions were inverted.

Reported-by: default avatarSeungwhan Youn <claude.youn@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent e4862f2f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;