Merge "asoc: codecs: check the spkr status before access the wsa registers"

このコミットが含まれているのは:
qctecmdr
2020-05-14 22:04:36 -07:00
committed by Gerrit - the friendly Code Review server
コミット 763894acd7

ファイルの表示

@@ -1300,9 +1300,10 @@ static int wsa883x_event_notify(struct notifier_block *nb,
switch (event) {
case BOLERO_WSA_EVT_PA_OFF_PRE_SSR:
snd_soc_component_update_bits(wsa883x->component,
WSA883X_PA_FSM_CTL,
0x01, 0x00);
if (test_bit(SPKR_STATUS, &wsa883x->status_mask))
snd_soc_component_update_bits(wsa883x->component,
WSA883X_PA_FSM_CTL,
0x01, 0x00);
wsa883x_swr_down(wsa883x);
break;