diff options
author | Ranjani Sridharan <ranjani.sridharan@linux.intel.com> | 2019-01-25 21:06:46 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-01-29 19:03:44 +0100 |
commit | 5c30f43f0625a792c30e465f21dbeb1bb4dfc40b (patch) | |
tree | 4738b64c7527b8317a77a836830cef1c4dbc4642 /include/sound/soc-topology.h | |
parent | ASoC: topology: fix memory leak in soc_tplg_dapm_widget_create (diff) | |
download | linux-5c30f43f0625a792c30e465f21dbeb1bb4dfc40b.tar.xz linux-5c30f43f0625a792c30e465f21dbeb1bb4dfc40b.zip |
ASoC: topology: add SND_SOC_DOBJ_GRAPH type for dapm routes
Add a new dobj type SND_SOC_DOBJ_GRAPH for dapm routes
and add snd_soc_dobj member to struct snd_soc_dapm_route.
This enables device drivers to save driver specific
data pertaining to dapm routes and also be able
to clean up the data when the driver module is unloaded.
Also, reorder the snd_soc_dobj_type types to align with
matching topology header types.
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>
Diffstat (limited to 'include/sound/soc-topology.h')
-rw-r--r-- | include/sound/soc-topology.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/sound/soc-topology.h b/include/sound/soc-topology.h index fa4b8413d2e2..8c43cfc240fa 100644 --- a/include/sound/soc-topology.h +++ b/include/sound/soc-topology.h @@ -38,12 +38,13 @@ struct snd_soc_dapm_route; enum snd_soc_dobj_type { SND_SOC_DOBJ_NONE = 0, /* object is not dynamic */ SND_SOC_DOBJ_MIXER, - SND_SOC_DOBJ_ENUM, SND_SOC_DOBJ_BYTES, - SND_SOC_DOBJ_PCM, + SND_SOC_DOBJ_ENUM, + SND_SOC_DOBJ_GRAPH, + SND_SOC_DOBJ_WIDGET, SND_SOC_DOBJ_DAI_LINK, + SND_SOC_DOBJ_PCM, SND_SOC_DOBJ_CODEC_LINK, - SND_SOC_DOBJ_WIDGET, }; /* dynamic control object */ |