]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: topology: Do not call snd_soc_remove_pcm_runtime() for ignored links
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 19 Jun 2025 08:42:19 +0000 (11:42 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 19 Jun 2025 12:19:13 +0000 (13:19 +0100)
commitcbf4e0fac347b78f1bcd29350b78184665ad487d
treed3ac3130751943e908ec033baebb11e4f3de0f62
parentd9f38d9824bfb1b046d2e720349d2f45959ab184
ASoC: topology: Do not call snd_soc_remove_pcm_runtime() for ignored links

If a link has been ignored then it is not even added.
The snd_soc_get_pcm_runtime() will return NULL as the runtime will does
not exist.
We can just skip this step to avoid performing a lookup to do nothing.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://patch.msgid.link/20250619084222.559-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c