Unverified Commit e3146775 authored by Cezary Rojewski's avatar Cezary Rojewski Committed by Mark Brown
Browse files

ASoC: Intel: avs: Update hda component teardown sequences



If case of failure cleanup recently created DAI and while at it, adjust
the remove() operation to match operation order of the probe() function.

Signed-off-by: default avatarCezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20250109122216.3667847-6-cezary.rojewski@intel.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e9ca3db9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1564,6 +1564,7 @@ static int avs_component_hda_probe(struct snd_soc_component *component)
		if (ret < 0) {
			dev_err(component->dev, "create widgets failed: %d\n",
				ret);
			snd_soc_unregister_dai(dai);
			goto exit;
		}
	}
@@ -1578,8 +1579,8 @@ static int avs_component_hda_probe(struct snd_soc_component *component)

static void avs_component_hda_remove(struct snd_soc_component *component)
{
	avs_component_hda_unregister_dais(component);
	avs_component_remove(component);
	avs_component_hda_unregister_dais(component);
}

static int avs_component_hda_open(struct snd_soc_component *component,