0fe22451f106f1fe52ecda87c7ee557c7a242a69
[openwrt/staging/mkresin.git] /
1 From b40561fa263f3f9b06be0dd9b9e1665478d1def6 Mon Sep 17 00:00:00 2001
2 From: Zidan Wang <zidan.wang@freescale.com>
3 Date: Fri, 25 Sep 2015 14:27:00 +0800
4 Subject: [PATCH] MLK-11628 ASoC: fsl_sai: add initial value for is_slave_mode
5
6 After playback audio with sai<->wm8960 sound card, is_slave_mode
7 will be set, but it will not be cleared. So playback audio with
8 sai<->sii902x sound card will have no voice.
9
10 Signed-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 @@ -264,6 +264,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: