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:
@@ -4661,7 +4661,9 @@ static int wcd938x_suspend(struct device *dev)
|
||||
}
|
||||
clear_bit(ALLOW_BUCK_DISABLE, &wcd938x->status_mask);
|
||||
}
|
||||
if (wcd938x->dapm_bias_off) {
|
||||
if (wcd938x->dapm_bias_off ||
|
||||
(snd_soc_component_get_bias_level(wcd938x->component) ==
|
||||
SND_SOC_BIAS_OFF)) {
|
||||
msm_cdc_set_supplies_lpm_mode(wcd938x->dev,
|
||||
wcd938x->supplies,
|
||||
pdata->regulator,
|
||||
|
Reference in New Issue
Block a user