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)
commit7df04ea7a31eaa75bdad2905f07cc097b15558ee
tree93ccff695c1c31a1d5a60437a2b88c7bed9cc464
parent5c30f43f0625a792c30e465f21dbeb1bb4dfc40b
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