ASoC: codecs: Deinitialize mbhc on codec remove

Invoke mbhc de-init on codec remove to free
the requested mbhc irqs.

Change-Id: Id87bb38a9cde6223224d76cbda325e3334037e52
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
This commit is contained in:
Soumya Managoli 2022-09-01 16:20:27 +05:30
commit a596b7cd0a
2 changed files with 3 additions and 0 deletions

View file

@ -2961,6 +2961,8 @@ static void wcd937x_soc_codec_remove(struct snd_soc_component *component)
wcd937x->register_notifier(wcd937x->handle,
&wcd937x->nblock,
false);
wcd937x_mbhc_deinit(component);
return;
}

View file

@ -3961,6 +3961,7 @@ static void wcd938x_soc_codec_remove(struct snd_soc_component *component)
wcd938x->register_notifier(wcd938x->handle,
&wcd938x->nblock,
false);
wcd938x_mbhc_deinit(component);
}
static int wcd938x_soc_codec_suspend(struct snd_soc_component *component)