Unverified Commit 3bb936f5 authored by Amadeusz Sławiński's avatar Amadeusz Sławiński Committed by Mark Brown
Browse files

ASoC: core: Tell codec that jack is being removed



When component is being removed we should disable jack, otherwise some
codecs will try to trigger interrupt using freed structures.

Signed-off-by: default avatarAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 619c15f7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -951,6 +951,7 @@ static int soc_bind_dai_link(struct snd_soc_card *card,

static void soc_cleanup_component(struct snd_soc_component *component)
{
	snd_soc_component_set_jack(component, NULL, NULL);
	list_del(&component->card_list);
	snd_soc_dapm_free(snd_soc_component_get_dapm(component));
	soc_cleanup_component_debugfs(component);