Some widgets may need sorting within, So add this support in topology.
Unified · Split
| @@ -347,6 +347,7 @@ struct snd_soc_tplg_dapm_widget { · 346 unmodified lines | ||
| 347 | 347 | __le32 reg; /* negative reg = no direct dapm */ |
| 348 | 348 | __le32 shift; /* bits to shift */ |
| 349 | 349 | __le32 mask; /* non-shifted mask */ |
| 350 | + __le32 subseq; /* sort within widget type */ | |
| 350 | 351 | __u32 invert; /* invert the power bit */ |
| 351 | 352 | __u32 ignore_suspend; /* kept enabled over suspend */ |
| 352 | 353 | __u16 event_flags; |
| @@ -1351,6 +1351,7 @@ static int soc_tplg_dapm_widget_create(struct soc_tplg *tplg, · 1350 unmodified lines | ||
| 1351 | 1351 | template.reg = w->reg; |
| 1352 | 1352 | template.shift = w->shift; |
| 1353 | 1353 | template.mask = w->mask; |
| 1354 | + template.subseq = w->subseq; | |
| 1354 | 1355 | template.on_val = w->invert ? 0 : 1; |
| 1355 | 1356 | template.off_val = w->invert ? 1 : 0; |
| 1356 | 1357 | template.ignore_suspend = w->ignore_suspend; |