]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: topology: modify dapm route loading routine and add dapm route unloading
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Fri, 25 Jan 2019 20:06:47 +0000 (14:06 -0600)
committerMark Brown <broonie@kernel.org>
Tue, 29 Jan 2019 18:04:25 +0000 (18:04 +0000)
commitcea35a7b82b88f8875216ebb27f01c0aab168a1d
tree93ccff695c1c31a1d5a60437a2b88c7bed9cc464
parent5925da7dcc686c897f362db0e97fd1256cc2bb3f
ASoC: topology: modify dapm route loading routine and add dapm route unloading

struct snd_soc_dapm_route has been modified to be a dynamic
object so that it can be used to save driver specific
data while parsing topology and clean up
driver-specific data during driver unloading.

This patch makes the following changes to accomplish the above:
1. Set the dobj member of snd_soc_dapm_route during the
SOC_TPLG_PASS_GRAPH pass of topology parsing.
2. Add the remove_route() routine that will be called while
removing all dynamic objects from the component driver.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c