summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorMark Brown2009-12-07 18:13:55 +0100
committerMark Brown2009-12-16 18:30:37 +0100
commitd207c68dd92455a3d618c37b5a9f0dc598723fd6 (patch)
tree738e10cbfc149ec01d9c1e0c2d82a129d99ef1f7 /sound/soc/soc-dapm.c
parentASoC: Push registers out of mixer power decision (diff)
downloadkernel-qcow2-linux-d207c68dd92455a3d618c37b5a9f0dc598723fd6.tar.gz
kernel-qcow2-linux-d207c68dd92455a3d618c37b5a9f0dc598723fd6.tar.xz
kernel-qcow2-linux-d207c68dd92455a3d618c37b5a9f0dc598723fd6.zip
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>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 4cf58911f3b3..de22c2f1842e 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)