summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorGary Zhang <b13634@freescale.com>2012-09-12 20:29:01 +0800
committerGary Zhang <b13634@freescale.com>2012-09-13 09:36:08 +0800
commit0916af964b9deb5f7a17612772d0319bfcaa2a11 (patch)
tree59ccebc489921330d7a1a9e7be4d08d23457f2f3 /sound
parentc672fadbfe66e900048fcc04d6252fb842414433 (diff)
ENGR00224112 wm8962: correct lrclk mismatch
lrclk trigger settings between ssi and wm8962 are different, which causes L/R channel swap. Signed-off-by: Gary Zhang <b13634@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/imx/imx-wm8962.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/imx/imx-wm8962.c b/sound/soc/imx/imx-wm8962.c
index 8da589f2fa69..b13f68f2647b 100644
--- a/sound/soc/imx/imx-wm8962.c
+++ b/sound/soc/imx/imx-wm8962.c
@@ -111,6 +111,9 @@ static int imx_hifi_hw_params(struct snd_pcm_substream *substream,
channels == 1 ? 0xfffffffe : 0xfffffffc,
2, 32);
+ dai_format = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_IF |
+ SND_SOC_DAIFMT_CBM_CFM;
+
/* set cpu DAI configuration */
ret = snd_soc_dai_set_fmt(cpu_dai, dai_format);
if (ret < 0)