From: "Tewani, Pradeep D" pradeep.d.tewani@intel.com
Signed-off-by: Mengdong Lin mengdong.lin@linux.intel.com Signed-off-by: Fuwei Tang fuweix.tang@intel.com --- include/sound/asoc.h | 3 ++- src/topology/dapm.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/sound/asoc.h b/include/sound/asoc.h index 082c542..9bef6eb 100644 --- a/include/sound/asoc.h +++ b/include/sound/asoc.h @@ -70,7 +70,8 @@ #define SND_SOC_TPLG_DAPM_DAI_IN 13 #define SND_SOC_TPLG_DAPM_DAI_OUT 14 #define SND_SOC_TPLG_DAPM_DAI_LINK 15 -#define SND_SOC_TPLG_DAPM_LAST SND_SOC_TPLG_DAPM_DAI_LINK +#define SND_SOC_TPLG_DAPM_SUPPLY 16 +#define SND_SOC_TPLG_DAPM_LAST SND_SOC_TPLG_DAPM_SUPPLY
/* Header magic number and string sizes */ #define SND_SOC_TPLG_MAGIC 0x41536F43 /* ASoC */ diff --git a/src/topology/dapm.c b/src/topology/dapm.c index 13aa1c4..b7e244e 100644 --- a/src/topology/dapm.c +++ b/src/topology/dapm.c @@ -38,6 +38,7 @@ static const struct map_elem widget_map[] = { {"dai_in", SND_SOC_TPLG_DAPM_DAI_IN}, {"dai_out", SND_SOC_TPLG_DAPM_DAI_OUT}, {"dai_link", SND_SOC_TPLG_DAPM_DAI_LINK}, + {"supply", SND_SOC_TPLG_DAPM_SUPPLY}, };
static int lookup_widget(const char *w)