ASoC: codecs: handle device disconnect during SSR

During SSR, when usbc analog device is disconnected, the
respective disconnect interrupt is not handled and hence userspace
is not notified. When ADSP recovers, fsa driver sends a disconnect
notification. So handle device disconnect and notify jack/userspace
through this notification.

Change-Id: Ic695c2267c9289f9528d50202938ec09f634de8a
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
此提交包含在:
Vignesh Kulothungan
2020-05-20 15:50:14 -07:00
提交者 Gerrit - the friendly Code Review server
父節點 06ed8063cd
當前提交 75f229237a
共有 3 個檔案被更改,包括 22 行新增0 行删除

查看文件

@@ -2061,6 +2061,8 @@ static int wcd938x_event_notify(struct notifier_block *block,
case BOLERO_WCD_EVT_SSR_DOWN:
wcd938x->dev_up = false;
wcd938x->mbhc->wcd_mbhc.deinit_in_progress = true;
wcd938x->mbhc->wcd_mbhc.plug_before_ssr =
wcd938x->mbhc->wcd_mbhc.current_plug;
mbhc = &wcd938x->mbhc->wcd_mbhc;
wcd938x->usbc_hs_status = get_usbc_hs_status(component,
mbhc->mbhc_cfg);