audio: earc tx timing control [1/1]

PD#SWPL-146291

Problem:
when pm suspend is done, the trigger stop need bypass

Solution:
1. bypass the earc control when suspend completed.

Verify:
verify by T5W

Change-Id: Ic89daac961e17679acd45943b3764389fdb3934c
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
This commit is contained in:
qing.zhang
2023-11-15 09:11:42 +08:00
committed by gerrit autosubmit
parent f267c87f59
commit 9edefb090a
+10 -7
View File
@@ -1310,13 +1310,16 @@ static int earc_dai_trigger(struct snd_pcm_substream *substream, int cmd,
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
dev_info(substream->pcm->card->dev, "eARC/ARC TX disable\n");
earctx_enable(p_earc->tx_top_map,
p_earc->tx_cmdc_map,
p_earc->tx_dmac_map,
p_earc->tx_audio_coding_type,
false,
p_earc->chipinfo->rterm_on);
if (!p_earc->tx_dmac_clk_on) {
dev_info(substream->pcm->card->dev, "clk is disable\n");
} else {
earctx_enable(p_earc->tx_top_map,
p_earc->tx_cmdc_map,
p_earc->tx_dmac_map,
p_earc->tx_audio_coding_type,
false,
p_earc->chipinfo->rterm_on);
}
aml_frddr_enable(p_earc->fddr, false);
p_earc->tx_stream_state = SNDRV_PCM_STATE_DISCONNECTED;
} else {