diff options
author | Shengjiu Wang <shengjiu.wang@freescale.com> | 2015-04-15 12:33:06 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2015-05-08 17:24:43 +0800 |
commit | ad1e37cdeaf8729aff058d05be0e7a41d53a4387 (patch) | |
tree | f32205da578df6220dbe4aa2dc2b4d540c9f3977 | |
parent | 121954ac4e48cae5480510bd6cc131959b771cc1 (diff) |
MLK-10661: ASoC: imx_wm8960: HDMI has noise after playback with wm8960
The root cause is hardware issue. In imx7d-sdb hdmi, wm8960 use the
same SAI interface. After playback with wm8960, the Frame clock voltage
doesn't become 0v, wm8960 will introduce noise to frame clock.
This patch is a workaround to set wm8960 to slave mode, remove
interference to I2S signal.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
-rw-r--r-- | sound/soc/fsl/imx-wm8960.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-wm8960.c b/sound/soc/fsl/imx-wm8960.c index e77136ef7ee5..6184a276456f 100644 --- a/sound/soc/fsl/imx-wm8960.c +++ b/sound/soc/fsl/imx-wm8960.c @@ -195,8 +195,10 @@ static int imx_hifi_hw_free(struct snd_pcm_substream *substream) data->is_stream_in_use[tx] = false; /* Power down PLL to save power*/ - if (data->is_codec_master && !data->is_stream_in_use[!tx]) + if (data->is_codec_master && !data->is_stream_in_use[!tx]) { snd_soc_dai_set_pll(codec_dai, 0, 0, 0, 0); + snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_CBS_CFS | SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF); + } return 0; } |