ASoC: Fix WM8350 DSP mode B configuration
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 7 Jan 2010 16:29:20 +0000 (16:29 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 8 Jan 2010 16:21:56 +0000 (16:21 +0000)
We need to set the LRCLK inversion bit to select DSP mode.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Cc: stable@kernel.org
sound/soc/codecs/wm8350.c

index ebbf11b653a4f3042708ae966c952e6ca46545da..718ef912e758463f7a8761fde11f9b68ca76a743 100644 (file)
@@ -925,7 +925,7 @@ static int wm8350_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)
                iface |= 0x3 << 8;
                break;
        case SND_SOC_DAIFMT_DSP_B:
-               iface |= 0x3 << 8;      /* lg not sure which mode */
+               iface |= 0x3 << 8 | WM8350_AIF_LRCLK_INV;
                break;
        default:
                return -EINVAL;