asoc: lpass-cdc: reset RX_TX_CORE_CLK and WSA_TX_CORE_CLK during SSR/PDR

Sometimes after SSR/DPR is triggered, RX_TX_CORE_CLK, WSA_TX_CORE_CLK
and WSA2_TX_CORE_CLK are not reset which causes WSA or WCD not
detected. Make this change to add reset during SSR.

Change-Id: I343f2f92244de3eee844e220a6201b389dc647b4
Signed-off-by: Meng Wang <mengw@codeaurora.org>
This commit is contained in:
Meng Wang
2021-09-28 14:23:52 +08:00
parent 316b9557b3
commit 322f08f457
3 changed files with 4 additions and 1 deletions

View File

@@ -997,7 +997,8 @@ static int lpass_cdc_wsa2_macro_event_handler(struct snd_soc_component *componen
SWR_DEVICE_SSR_UP, NULL);
break;
case LPASS_CDC_MACRO_EVT_CLK_RESET:
lpass_cdc_rsc_clk_reset(wsa2_dev, WSA_CORE_CLK);
lpass_cdc_rsc_clk_reset(wsa2_dev, WSA2_CORE_CLK);
lpass_cdc_rsc_clk_reset(wsa2_dev, WSA2_TX_CORE_CLK);
break;
}
return 0;