asoc: use BIAS_LEVEL_OFF for LPM trigger

Use BIAS_LEVEL_OFF trigger from ASoC to mark the wcd/wsa power
supplies to LPM (if supported).

Change-Id: I9afdd255ecb385176de82813ed9a638adfdf0292
Signed-off-by: Uppalapati, Phani Kumar <quic_phaniu@quicinc.com>
This commit is contained in:
Phani Kumar Uppalapati
2022-07-15 15:45:04 -07:00
förälder 49b2306433
incheckning 52ca984e68
2 ändrade filer med 6 tillägg och 2 borttagningar

Visa fil

@@ -2396,7 +2396,9 @@ static int wsa884x_swr_suspend(struct device *dev)
return -EINVAL;
}
dev_dbg(dev, "%s: system suspend\n", __func__);
if (wsa884x->dapm_bias_off) {
if (wsa884x->dapm_bias_off ||
(snd_soc_component_get_bias_level(wsa884x->component) ==
SND_SOC_BIAS_OFF)) {
msm_cdc_set_supplies_lpm_mode(dev, wsa884x->supplies,
wsa884x->regulator,
wsa884x->num_supplies,