From: Mark Brown Date: Mon, 7 Dec 2009 17:13:55 +0000 (+0000) Subject: ASoC: Sort DAPM sequences by CODEC as well X-Git-Tag: v2.6.34-rc1~3^2~3^2~116 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=d207c68dd92455a3d618c37b5a9f0dc598723fd6;p=safe%2Fjmp%2Flinux-2.6 ASoC: Sort DAPM sequences by CODEC as well In preparation for multiple device support. Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 4cf5891..de22c2f 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -739,6 +739,8 @@ static int dapm_seq_compare(struct snd_soc_dapm_widget *a, struct snd_soc_dapm_widget *b, int sort[]) { + if (a->codec != b->codec) + return (unsigned long)a - (unsigned long)b; if (sort[a->id] != sort[b->id]) return sort[a->id] - sort[b->id]; if (a->reg != b->reg)