mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
26 lines
816 B
Diff
26 lines
816 B
Diff
|
From b40561fa263f3f9b06be0dd9b9e1665478d1def6 Mon Sep 17 00:00:00 2001
|
||
|
From: Zidan Wang <zidan.wang@freescale.com>
|
||
|
Date: Fri, 25 Sep 2015 14:27:00 +0800
|
||
|
Subject: [PATCH] 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>
|
||
|
---
|
||
|
sound/soc/fsl/fsl_sai.c | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
--- a/sound/soc/fsl/fsl_sai.c
|
||
|
+++ b/sound/soc/fsl/fsl_sai.c
|
||
|
@@ -264,6 +264,8 @@ static int fsl_sai_set_dai_fmt_tr(struct
|
||
|
return -EINVAL;
|
||
|
}
|
||
|
|
||
|
+ sai->is_slave_mode = false;
|
||
|
+
|
||
|
/* DAI clock master masks */
|
||
|
switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
|
||
|
case SND_SOC_DAIFMT_CBS_CFS:
|