audio: disable tl1 acodec dac dapm to depop [1/1]

PD#TV-3933

Problem:
Tl1 acodec has pop sound when first sound appear.

Solution:
Disable the DAPM which disable/enable every time
start/stop the audio stream.

Verify:
Tl1 X301.

Change-Id: Iaaf7da125de513bd8297f6c6e41af0a42c9d25bd
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
This commit is contained in:
Shuai Li
2019-04-22 15:03:46 +08:00
committed by Tao Zeng
parent 93af83e922
commit 998f60b240

View File

@@ -355,10 +355,10 @@ static const struct snd_soc_dapm_widget tl1_acodec_dapm_widgets[] = {
0, 0, &lir_mux), 0, 0, &lir_mux),
/*ADC capture stream */ /*ADC capture stream */
SND_SOC_DAPM_ADC("Left ADC", "Capture", ACODEC_0, SND_SOC_DAPM_ADC("Left ADC", "Capture", SND_SOC_NOPM,
ADCL_EN, 0), 0, 0),
SND_SOC_DAPM_ADC("Right ADC", "Capture", ACODEC_0, SND_SOC_DAPM_ADC("Right ADC", "Capture", SND_SOC_NOPM,
ADCR_EN, 0), 0, 0),
/*Output */ /*Output */
SND_SOC_DAPM_OUTPUT("Lineout 1 left"), SND_SOC_DAPM_OUTPUT("Lineout 1 left"),
@@ -368,19 +368,19 @@ static const struct snd_soc_dapm_widget tl1_acodec_dapm_widgets[] = {
/*DAC playback stream */ /*DAC playback stream */
SND_SOC_DAPM_DAC("Left DAC", "Playback", SND_SOC_DAPM_DAC("Left DAC", "Playback",
ACODEC_0, SND_SOC_NOPM,
DACL_EN, 0), 0, 0),
SND_SOC_DAPM_DAC("Right DAC", "Playback", SND_SOC_DAPM_DAC("Right DAC", "Playback",
ACODEC_0, SND_SOC_NOPM,
DACR_EN, 0), 0, 0),
/*DAC 2 playback stream */ /*DAC 2 playback stream */
SND_SOC_DAPM_DAC("Left DAC2", "Playback", SND_SOC_DAPM_DAC("Left DAC2", "Playback",
ACODEC_5, SND_SOC_NOPM,
DAC2L_EN, 0), 0, 0),
SND_SOC_DAPM_DAC("Right DAC2", "Playback", SND_SOC_DAPM_DAC("Right DAC2", "Playback",
ACODEC_5, SND_SOC_NOPM,
DAC2R_EN, 0), 0, 0),
/*DRV output */ /*DRV output */
SND_SOC_DAPM_OUT_DRV("LO1L_OUT_EN", ACODEC_0, SND_SOC_DAPM_OUT_DRV("LO1L_OUT_EN", ACODEC_0,