forked from Minki/linux
ASoC: Use DAPM context rather than CODEC when constructing sequences
DAPM widgets may be associated with non-CODEC devices so compare based on the DAPM context rather than the CODEC pointer. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Jarkko Nikula <jhnikula@gmail.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
ce0df3d79a
commit
84dab5671b
@ -710,8 +710,8 @@ static int dapm_seq_compare(struct snd_soc_dapm_widget *a,
|
||||
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;
|
||||
if (a->dapm != b->dapm)
|
||||
return (unsigned long)a->dapm - (unsigned long)b->dapm;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user