ASoC: Sort DAPM sequences by CODEC as well
In preparation for multiple device support. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
283375cefb
commit
d207c68dd9
1 changed files with 2 additions and 0 deletions
|
@ -739,6 +739,8 @@ static int dapm_seq_compare(struct snd_soc_dapm_widget *a,
|
||||||
struct snd_soc_dapm_widget *b,
|
struct snd_soc_dapm_widget *b,
|
||||||
int sort[])
|
int sort[])
|
||||||
{
|
{
|
||||||
|
if (a->codec != b->codec)
|
||||||
|
return (unsigned long)a - (unsigned long)b;
|
||||||
if (sort[a->id] != sort[b->id])
|
if (sort[a->id] != sort[b->id])
|
||||||
return sort[a->id] - sort[b->id];
|
return sort[a->id] - sort[b->id];
|
||||||
if (a->reg != b->reg)
|
if (a->reg != b->reg)
|
||||||
|
|
Reference in a new issue