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),
/*ADC capture stream */
SND_SOC_DAPM_ADC("Left ADC", "Capture", ACODEC_0,
ADCL_EN, 0),
SND_SOC_DAPM_ADC("Right ADC", "Capture", ACODEC_0,
ADCR_EN, 0),
SND_SOC_DAPM_ADC("Left ADC", "Capture", SND_SOC_NOPM,
0, 0),
SND_SOC_DAPM_ADC("Right ADC", "Capture", SND_SOC_NOPM,
0, 0),
/*Output */
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 */
SND_SOC_DAPM_DAC("Left DAC", "Playback",
ACODEC_0,
DACL_EN, 0),
SND_SOC_NOPM,
0, 0),
SND_SOC_DAPM_DAC("Right DAC", "Playback",
ACODEC_0,
DACR_EN, 0),
SND_SOC_NOPM,
0, 0),
/*DAC 2 playback stream */
SND_SOC_DAPM_DAC("Left DAC2", "Playback",
ACODEC_5,
DAC2L_EN, 0),
SND_SOC_NOPM,
0, 0),
SND_SOC_DAPM_DAC("Right DAC2", "Playback",
ACODEC_5,
DAC2R_EN, 0),
SND_SOC_NOPM,
0, 0),
/*DRV output */
SND_SOC_DAPM_OUT_DRV("LO1L_OUT_EN", ACODEC_0,