From: Zidan Wang Date: Fri, 25 Sep 2015 06:27:00 +0000 (+0800) Subject: MLK-11628 ASoC: fsl_sai: add initial value for is_slave_mode X-Git-Tag: C0P2-H0.0--20200415~4232 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=e2efad17a31828a3ea669753c7012b2fd2849b4b;p=linux.git MLK-11628 ASoC: fsl_sai: add initial value for is_slave_mode 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 --- diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index b84502881faa..96ca6f74c50e 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -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: