diff options
author | Zidan Wang <zidan.wang@freescale.com> | 2015-09-25 14:27:00 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@nxp.com> | 2016-01-14 11:01:41 -0600 |
commit | 1c4543002375ef90f15532f79e7716575edf5eed (patch) | |
tree | b3f616b495939f665117a6c956fc6a5cf7861a31 | |
parent | fb1c469fa5f63da3c846b9b1dcc911378eec2496 (diff) |
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 <zidan.wang@freescale.com>
-rw-r--r-- | sound/soc/fsl/fsl_sai.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index bc575ece8ccf..bad81ca56037 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -269,6 +269,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: |