summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorGary Zhang <b13634@freescale.com>2012-09-12 20:29:01 +0800
committerJason Liu <r64343@freescale.com>2012-09-13 16:24:39 +0800
commit3dbe412085dee8e0c378af17fec523221392f565 (patch)
treebc5682f37e80d27781e82096a245a62b4e4de634 /sound
parent8b83c67be8c209c8a846981178fb24a03262dfb6 (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)