ASoC: Don't use -1 to boostrap subseq so it can be used by drivers
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 16 Jul 2011 01:55:08 +0000 (10:55 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 17 Jul 2011 09:23:31 +0000 (18:23 +0900)
Makes life a little easier if you want to add subsequences to an existing
driver as you can use -1 to put things at the start of sequences.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-dapm.c

index 54fa2e5e307877528113bf4da2e3b4e60365a606..fbfcda06283976355a7258b93574fa2ff02033e0 100644 (file)
@@ -989,7 +989,7 @@ static void dapm_seq_run(struct snd_soc_dapm_context *dapm,
 
                        INIT_LIST_HEAD(&pending);
                        cur_sort = -1;
-                       cur_subseq = -1;
+                       cur_subseq = INT_MIN;
                        cur_reg = SND_SOC_NOPM;
                        cur_dapm = NULL;
                }