Loading sound/soc/codecs/wcd-mbhc-v2.c +4 −1 Original line number Diff line number Diff line Loading @@ -2058,9 +2058,12 @@ void wcd_mbhc_deinit(struct wcd_mbhc *mbhc) mbhc->mbhc_cb->free_irq(codec, mbhc->intr_ids->hph_right_ocp, mbhc); if (mbhc->mbhc_cb && mbhc->mbhc_cb->register_notifier) mbhc->mbhc_cb->register_notifier(mbhc, &mbhc->nblock, false); if (mbhc->mbhc_fn->wcd_cancel_hs_detect_plug) if (mbhc->mbhc_fn->wcd_cancel_hs_detect_plug) { WCD_MBHC_RSC_LOCK(mbhc); mbhc->mbhc_fn->wcd_cancel_hs_detect_plug(mbhc, &mbhc->correct_plug_swch); WCD_MBHC_RSC_UNLOCK(mbhc); } mutex_destroy(&mbhc->codec_resource_lock); mutex_destroy(&mbhc->hphl_pa_lock); mutex_destroy(&mbhc->hphr_pa_lock); Loading Loading
sound/soc/codecs/wcd-mbhc-v2.c +4 −1 Original line number Diff line number Diff line Loading @@ -2058,9 +2058,12 @@ void wcd_mbhc_deinit(struct wcd_mbhc *mbhc) mbhc->mbhc_cb->free_irq(codec, mbhc->intr_ids->hph_right_ocp, mbhc); if (mbhc->mbhc_cb && mbhc->mbhc_cb->register_notifier) mbhc->mbhc_cb->register_notifier(mbhc, &mbhc->nblock, false); if (mbhc->mbhc_fn->wcd_cancel_hs_detect_plug) if (mbhc->mbhc_fn->wcd_cancel_hs_detect_plug) { WCD_MBHC_RSC_LOCK(mbhc); mbhc->mbhc_fn->wcd_cancel_hs_detect_plug(mbhc, &mbhc->correct_plug_swch); WCD_MBHC_RSC_UNLOCK(mbhc); } mutex_destroy(&mbhc->codec_resource_lock); mutex_destroy(&mbhc->hphl_pa_lock); mutex_destroy(&mbhc->hphr_pa_lock); Loading