blob: 0e282895cdd5a00a90d615b7ea19fc06accc5085 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From b40561fa263f3f9b06be0dd9b9e1665478d1def6 Mon Sep 17 00:00:00 2001
2From: Zidan Wang <zidan.wang@freescale.com>
3Date: Fri, 25 Sep 2015 14:27:00 +0800
4Subject: [PATCH] MLK-11628 ASoC: fsl_sai: add initial value for is_slave_mode
5
6After playback audio with sai<->wm8960 sound card, is_slave_mode
7will be set, but it will not be cleared. So playback audio with
8sai<->sii902x sound card will have no voice.
9
10Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
11---
12 sound/soc/fsl/fsl_sai.c | 2 ++
13 1 file changed, 2 insertions(+)
14
15--- a/sound/soc/fsl/fsl_sai.c
16+++ b/sound/soc/fsl/fsl_sai.c
17@@ -265,6 +265,8 @@ static int fsl_sai_set_dai_fmt_tr(struct
18 return -EINVAL;
19 }
20
21+ sai->is_slave_mode = false;
22+
23 /* DAI clock master masks */
24 switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
25 case SND_SOC_DAIFMT_CBS_CFS: