mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
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:
parent
dc1728e345
commit
a596b7cd0a
2 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue