History

ASoC: topology: Add subsequence in topology

Some widgets may need sorting within, So add this support in topology.

Subhransu S. Prusty committed 11 years ago

Commit 6dc6db71 parent 54068982 files · +2 −0Browse files

Unified · Split

2 files
  1. include/uapi/sound/asoc.h +1 −0
  2. sound/soc/soc-topology.c +1 −0
include/uapi/sound/asoc.h+1−0
@@ -347,6 +347,7 @@ struct snd_soc_tplg_dapm_widget { · 346 unmodified lines
347347 __le32 reg; /* negative reg = no direct dapm */
348348 __le32 shift; /* bits to shift */
349349 __le32 mask; /* non-shifted mask */
350+ __le32 subseq; /* sort within widget type */
350351 __u32 invert; /* invert the power bit */
351352 __u32 ignore_suspend; /* kept enabled over suspend */
352353 __u16 event_flags;
sound/soc/soc-topology.c+1−0
@@ -1351,6 +1351,7 @@ static int soc_tplg_dapm_widget_create(struct soc_tplg *tplg, · 1350 unmodified lines
13511351 template.reg = w->reg;
13521352 template.shift = w->shift;
13531353 template.mask = w->mask;
1354+ template.subseq = w->subseq;
13541355 template.on_val = w->invert ? 0 : 1;
13551356 template.off_val = w->invert ? 1 : 0;
13561357 template.ignore_suspend = w->ignore_suspend;