]> 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)
commit3991d4f2a4965b406d5b1c554af3d4c47bb217aa
tree93ccff695c1c31a1d5a60437a2b88c7bed9cc464
parentc13a03ccdb0394675d610070aed52a1f6fc5e7ff
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