diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-04-20 12:56:13 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-04-20 13:09:48 -0400 |
commit | b75576d76d4be50196773f36709cb7a4f5ac2ab7 (patch) | |
tree | 10c8c2cafda5bde450a073f8c6bc84a5e798ea80 /include/sound/soc-dapm.h | |
parent | 6ea31b9f0a0307e16656af27fcda3160e2a64a1b (diff) |
ASoC: Make the DAPM power check an operation on the widget
Rather than having switch statements at point of use make the DAPM
power check a member of the widget structure and set it when we
instantiate the widget.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/soc-dapm.h')
-rw-r--r-- | include/sound/soc-dapm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index fcc929da0339..839a97b63269 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -367,6 +367,8 @@ struct snd_soc_dapm_widget { | |||
367 | unsigned char suspend:1; /* was active before suspend */ | 367 | unsigned char suspend:1; /* was active before suspend */ |
368 | unsigned char pmdown:1; /* waiting for timeout */ | 368 | unsigned char pmdown:1; /* waiting for timeout */ |
369 | 369 | ||
370 | int (*power_check)(struct snd_soc_dapm_widget *w); | ||
371 | |||
370 | /* external events */ | 372 | /* external events */ |
371 | unsigned short event_flags; /* flags to specify event types */ | 373 | unsigned short event_flags; /* flags to specify event types */ |
372 | int (*event)(struct snd_soc_dapm_widget*, struct snd_kcontrol *, int); | 374 | int (*event)(struct snd_soc_dapm_widget*, struct snd_kcontrol *, int); |