asoc: codecs: Enable LPM for power supplies

Enable Low Power Mode for the power supplies while
going to suspend mode on wsa883x and wcd9378.

Change-Id: I133c1b791bcd8b53cf79650d7347d5889da29491
Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
This commit is contained in:
Sarath Varma Ganapathiraju
2024-05-16 15:40:59 +05:30
rodzic 0ef8277c0e
commit af4dffc575
2 zmienionych plików z 9 dodań i 3 usunięć

Wyświetl plik

@@ -4652,7 +4652,10 @@ static int wcd9378_suspend(struct device *dev)
}
clear_bit(ALLOW_BUCK_DISABLE, &wcd9378->status_mask);
}
if (wcd9378->dapm_bias_off) {
if (wcd9378->dapm_bias_off ||
(wcd9378->component &&
(snd_soc_component_get_bias_level(wcd9378->component) ==
SND_SOC_BIAS_OFF))) {
msm_cdc_set_supplies_lpm_mode(wcd9378->dev,
wcd9378->supplies,
pdata->regulator,