diff options
author | Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> | 2019-06-05 15:45:53 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-06-06 17:39:56 +0100 |
commit | 3bb936f5b92a0a6b6f4d16d834243e2f62521349 (patch) | |
tree | 5fe45f3d83f510f135be359f77de3496cfaf3fc6 /sound/soc/soc-core.c | |
parent | 619c15f7fac98fbeaae02d76a5529f5026a2b6d7 (diff) | |
download | lwn-3bb936f5b92a0a6b6f4d16d834243e2f62521349.tar.gz lwn-3bb936f5b92a0a6b6f4d16d834243e2f62521349.zip |
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: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 7abb017a83f3..ace5fb01d9a0 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -951,6 +951,7 @@ _err_defer: 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); |