MLK-11628 ASoC: fsl_sai: add initial value for is_slave_mode
authorZidan Wang <zidan.wang@freescale.com>
Fri, 25 Sep 2015 06:27:00 +0000 (14:27 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:44 +0000 (14:48 -0500)
After playback audio with sai<->wm8960 sound card, is_slave_mode
will be set, but it will not be cleared. So playback audio with
sai<->sii902x sound card will have no voice.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
sound/soc/fsl/fsl_sai.c

index b845028..96ca6f7 100644 (file)
@@ -271,6 +271,8 @@ static int fsl_sai_set_dai_fmt_tr(struct snd_soc_dai *cpu_dai,
                return -EINVAL;
        }
 
+       sai->is_slave_mode = false;
+
        /* DAI clock master masks */
        switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
        case SND_SOC_DAIFMT_CBS_CFS: