Skip to contentSkip to conversation

ASOC: topology: Add PCM DAIs dynamically when loading them

RFC PATCH Superseded [email protected] 1 participant 1 message Aug 10, 2015

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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.

include/sound/soc-dai.h +1 -0
index 2df96b1..e8f0404 100644
@@ -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
index 5405f64..a49c134 100644
@@ -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