Commit f85a9e0d authored by Mark Brown's avatar Mark Brown

ASoC: Add subsequence information to seq_notify callbacks

Allows drivers to distinguish which subsequence is being notified when
they get called back.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent aaee8ef1
...@@ -501,7 +501,7 @@ struct snd_soc_dapm_context { ...@@ -501,7 +501,7 @@ struct snd_soc_dapm_context {
struct snd_soc_dapm_update *update; struct snd_soc_dapm_update *update;
void (*seq_notifier)(struct snd_soc_dapm_context *, void (*seq_notifier)(struct snd_soc_dapm_context *,
enum snd_soc_dapm_type); enum snd_soc_dapm_type, int);
struct device *dev; /* from parent - for debug */ struct device *dev; /* from parent - for debug */
struct snd_soc_codec *codec; /* parent codec */ struct snd_soc_codec *codec; /* parent codec */
......
...@@ -553,7 +553,7 @@ struct snd_soc_codec_driver { ...@@ -553,7 +553,7 @@ struct snd_soc_codec_driver {
enum snd_soc_bias_level level); enum snd_soc_bias_level level);
void (*seq_notifier)(struct snd_soc_dapm_context *, void (*seq_notifier)(struct snd_soc_dapm_context *,
enum snd_soc_dapm_type); enum snd_soc_dapm_type, int);
}; };
/* SoC platform interface */ /* SoC platform interface */
......
...@@ -899,7 +899,8 @@ static void dapm_seq_run(struct snd_soc_dapm_context *dapm, ...@@ -899,7 +899,8 @@ static void dapm_seq_run(struct snd_soc_dapm_context *dapm,
for (i = 0; i < ARRAY_SIZE(dapm_up_seq); i++) for (i = 0; i < ARRAY_SIZE(dapm_up_seq); i++)
if (sort[i] == cur_sort) if (sort[i] == cur_sort)
cur_dapm->seq_notifier(cur_dapm, cur_dapm->seq_notifier(cur_dapm,
i); i,
cur_subseq);
} }
INIT_LIST_HEAD(&pending); INIT_LIST_HEAD(&pending);
...@@ -968,7 +969,7 @@ static void dapm_seq_run(struct snd_soc_dapm_context *dapm, ...@@ -968,7 +969,7 @@ static void dapm_seq_run(struct snd_soc_dapm_context *dapm,
for (i = 0; i < ARRAY_SIZE(dapm_up_seq); i++) for (i = 0; i < ARRAY_SIZE(dapm_up_seq); i++)
if (sort[i] == cur_sort) if (sort[i] == cur_sort)
cur_dapm->seq_notifier(cur_dapm, cur_dapm->seq_notifier(cur_dapm,
i); i, cur_subseq);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment