mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
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>
This commit is contained in:
parent
619c15f7fa
commit
3bb936f5b9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user