ASOC: topology: Add PCM DAIs dynamically when loading them
RFC PATCH 10/10 ASOC: topology: Add PCM DAIs dynamically when loading them
From: Mengdong Lin <[email protected]>
Add PCM DAIs to ASoC core when loading them from topology. Embed dobj in the DAI to free it when unloading.
Signed-off-by Mengdong Lin <[email protected]>
include/sound/soc-dai.h +1 -0
@@ -207,6 +207,7 @@ struct snd_soc_dai_driver {const char *name;unsigned int id;unsigned int base; +struct snd_soc_dobj dobj;/* DAI driver callbacks */ int (*probe)(struct snd_soc_dai *dai);
include/sound/soc-topology.h +0 -1
@@ -71,7 +71,6 @@ struct snd_soc_dobj {union {struct snd_soc_dobj_control control;struct snd_soc_dobj_widget widget; -struct snd_soc_dobj_pcm_dai pcm_dai; };void *private;/* core does not touch this */ };
sound/soc/soc-topology.c +76 -15
127 lines not on this page · raw message
Signature · 1 line
1.9.1