ASoC: topology: Add subsequence in topology
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Mon, 29 Jun 2015 16:36:44 +0000 (17:36 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 6 Aug 2015 11:33:53 +0000 (12:33 +0100)
Some widgets may need sorting within, So add this support in topology.

Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/uapi/sound/asoc.h
sound/soc/soc-topology.c

index 12215205ab8d0b11d854dcaa29f00bed48a980c7..7ae13fbc0a3e99be7127caa5f78bec68f5d8bf00 100644 (file)
@@ -347,6 +347,7 @@ struct snd_soc_tplg_dapm_widget {
        __le32 reg;             /* negative reg = no direct dapm */
        __le32 shift;           /* bits to shift */
        __le32 mask;            /* non-shifted mask */
+       __le32 subseq;          /* sort within widget type */
        __u32 invert;           /* invert the power bit */
        __u32 ignore_suspend;   /* kept enabled over suspend */
        __u16 event_flags;
index 6a547c6dd3a117a57a49f94697a01a9a90bd7e27..9f2b048f10714a0465ee481563cd96f919e14411 100644 (file)
@@ -1351,6 +1351,7 @@ static int soc_tplg_dapm_widget_create(struct soc_tplg *tplg,
        template.reg = w->reg;
        template.shift = w->shift;
        template.mask = w->mask;
+       template.subseq = w->subseq;
        template.on_val = w->invert ? 0 : 1;
        template.off_val = w->invert ? 1 : 0;
        template.ignore_suspend = w->ignore_suspend;