summaryrefslogtreecommitdiff
path: root/sound/soc/imx/imx-3stack-wm8580.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/imx/imx-3stack-wm8580.c')
-rw-r--r--sound/soc/imx/imx-3stack-wm8580.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/soc/imx/imx-3stack-wm8580.c b/sound/soc/imx/imx-3stack-wm8580.c
index 0dc7b88d1441..4e468132f406 100644
--- a/sound/soc/imx/imx-3stack-wm8580.c
+++ b/sound/soc/imx/imx-3stack-wm8580.c
@@ -127,6 +127,7 @@ static int imx_3stack_surround_hw_params(struct snd_pcm_substream *substream,
u32 dai_format;
unsigned int pll_out = 0, lrclk_ratio = 0;
unsigned int channel = params_channels(params);
+ struct imx_esai *esai_mode = (struct imx_esai *)cpu_dai->private_data;
if (clk_state.lr_clk_active > 1)
return 0;
@@ -225,6 +226,9 @@ static int imx_3stack_surround_hw_params(struct snd_pcm_substream *substream,
dai_format = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
SND_SOC_DAIFMT_CBM_CFM;
+ esai_mode->sync_mode = 0;
+ esai_mode->network_mode = 1;
+
/* set codec DAI configuration */
snd_soc_dai_set_fmt(codec_dai, dai_format);
@@ -337,7 +341,6 @@ static int imx_3stack_wm8580_init(struct snd_soc_codec *codec)
static struct snd_soc_dai_link imx_3stack_dai = {
.name = "wm8580",
.stream_name = "wm8580",
- .cpu_dai = &imx_esai_dai,
.codec_dai = wm8580_dai,
.init = imx_3stack_wm8580_init,
.ops = &imx_3stack_surround_ops,
@@ -370,7 +373,7 @@ static int __devinit imx_3stack_wm8580_probe(struct platform_device *pdev)
{
struct wm8580_setup_data *setup;
- imx_esai_dai.name = "imx-esai-txrx";
+ imx_3stack_dai.cpu_dai = &imx_esai_dai[2];
setup = kzalloc(sizeof(struct wm8580_setup_data), GFP_KERNEL);
setup->spi = 1;