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>
This commit is contained in:
Vignesh Kulothungan
2020-05-20 15:50:14 -07:00
کامیت شده توسط Gerrit - the friendly Code Review server
والد 06ed8063cd
کامیت 75f229237a
3فایلهای تغییر یافته به همراه22 افزوده شده و 0 حذف شده

مشاهده پرونده

@@ -551,6 +551,7 @@ struct wcd_mbhc {
wait_queue_head_t wait_btn_press;
bool is_btn_press;
u8 current_plug;
u8 plug_before_ssr;
bool in_swch_irq_handler;
bool hphl_swh; /*track HPHL switch NC / NO */
bool gnd_swh; /*track GND switch NC / NO */