summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2010-11-23 12:41:17 +0100
committerTakashi Iwai <tiwai@suse.de>2010-11-23 12:41:17 +0100
commit9e8c32cac9929858337e29dd4e28fd87bc073ef5 (patch)
tree81643da2131561b729a09adbbced293b008c6cbf /sound/soc/soc-dapm.c
parent48c88e820fb3e35c5925e4743fd13f200891b7b5 (diff)
parentbf86f07e8479f4de20d8b19748482eccda240664 (diff)
Merge branch 'fix/asoc' into for-linus
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 7d85c6496af..75ed6491222 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -683,12 +683,12 @@ 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)
return a->reg - b->reg;
+ if (a->codec != b->codec)
+ return (unsigned long)a->codec - (unsigned long)b->codec;
return 0;
}