Commit 6dc6db79 authored by Subhransu S. Prusty's avatar Subhransu S. Prusty Committed by Mark Brown

ASoC: topology: Add subsequence in topology

Some widgets may need sorting within, So add this support in topology.
Signed-off-by: default avatarSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 54068983
...@@ -347,6 +347,7 @@ struct snd_soc_tplg_dapm_widget { ...@@ -347,6 +347,7 @@ struct snd_soc_tplg_dapm_widget {
__le32 reg; /* negative reg = no direct dapm */ __le32 reg; /* negative reg = no direct dapm */
__le32 shift; /* bits to shift */ __le32 shift; /* bits to shift */
__le32 mask; /* non-shifted mask */ __le32 mask; /* non-shifted mask */
__le32 subseq; /* sort within widget type */
__u32 invert; /* invert the power bit */ __u32 invert; /* invert the power bit */
__u32 ignore_suspend; /* kept enabled over suspend */ __u32 ignore_suspend; /* kept enabled over suspend */
__u16 event_flags; __u16 event_flags;
......
...@@ -1351,6 +1351,7 @@ static int soc_tplg_dapm_widget_create(struct soc_tplg *tplg, ...@@ -1351,6 +1351,7 @@ static int soc_tplg_dapm_widget_create(struct soc_tplg *tplg,
template.reg = w->reg; template.reg = w->reg;
template.shift = w->shift; template.shift = w->shift;
template.mask = w->mask; template.mask = w->mask;
template.subseq = w->subseq;
template.on_val = w->invert ? 0 : 1; template.on_val = w->invert ? 0 : 1;
template.off_val = w->invert ? 1 : 0; template.off_val = w->invert ? 1 : 0;
template.ignore_suspend = w->ignore_suspend; template.ignore_suspend = w->ignore_suspend;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment