[alsa-devel] [PATCH 1/2] ASoC: Fix WM8580 CLKSEL mask selection
Liam Girdwood
lrg at slimlogic.co.uk
Mon Aug 16 20:37:27 CEST 2010
On Mon, 2010-08-16 at 19:28 +0100, Mark Brown wrote:
> The RX and TX directions were inverted.
>
> Reported-by: Seungwhan Youn <claude.youn at gmail.com>
> Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
> ---
> 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;
Both
Acked-by: Liam Girdwood <lrg at slimlogic.co.uk>
--
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
More information about the Alsa-devel
mailing list