mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
ASoC: topology: Add callback for DAPM route load/unload
Add a callback fro clients for notification about DAPM route loading and unloading. Signed-off-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
81e9b0a078
commit
28aa6f7779
2 changed files with 20 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ struct snd_kcontrol_new;
|
|||
struct snd_soc_dai_link;
|
||||
struct snd_soc_dai_driver;
|
||||
struct snd_soc_dai;
|
||||
struct snd_soc_dapm_route;
|
||||
|
||||
/* object scan be loaded and unloaded in groups with identfying indexes */
|
||||
#define SND_SOC_TPLG_INDEX_ALL 0 /* ID that matches all FW objects */
|
||||
|
|
@ -116,6 +117,12 @@ struct snd_soc_tplg_ops {
|
|||
int (*control_unload)(struct snd_soc_component *,
|
||||
struct snd_soc_dobj *);
|
||||
|
||||
/* DAPM graph route element loading and unloading */
|
||||
int (*dapm_route_load)(struct snd_soc_component *, int index,
|
||||
struct snd_soc_dapm_route *route);
|
||||
int (*dapm_route_unload)(struct snd_soc_component *,
|
||||
struct snd_soc_dobj *);
|
||||
|
||||
/* external widget init - used for any driver specific init */
|
||||
int (*widget_load)(struct snd_soc_component *, int index,
|
||||
struct snd_soc_dapm_widget *,
|
||||
|
|
|
|||
Loading…
Reference in a new issue