ASoC: core: Allow CODECs to set ignore_pmdown_time in the driver struct
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 8 Feb 2012 13:20:50 +0000 (13:20 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 9 Feb 2012 10:42:56 +0000 (10:42 +0000)
This is usually not a use case dependant flag anyway.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
include/sound/soc.h
sound/soc/soc-core.c

index 9348bed86b1e5cbe58ecbb89475fed7b90ed6c68..4f67e01f0e2c8acd975754fc22c2699805e88a49 100644 (file)
@@ -643,6 +643,8 @@ struct snd_soc_codec_driver {
        /* codec stream completion event */
        int (*stream_event)(struct snd_soc_dapm_context *dapm, int event);
 
+       bool ignore_pmdown_time;  /* Doesn't benefit from pmdown delay */
+
        /* probe ordering - for components with runtime dependencies */
        int probe_order;
        int remove_order;
index a3a47cdaac8fa22c28a3371e579d1560b6bcf128..32dbcda5cb22f8ffcd6064b141d3f2245b036dc5 100644 (file)
@@ -3312,6 +3312,7 @@ int snd_soc_register_codec(struct device *dev,
        codec->volatile_register = codec_drv->volatile_register;
        codec->readable_register = codec_drv->readable_register;
        codec->writable_register = codec_drv->writable_register;
+       codec->ignore_pmdown_time = codec_drv->ignore_pmdown_time;
        codec->dapm.bias_level = SND_SOC_BIAS_OFF;
        codec->dapm.dev = dev;
        codec->dapm.codec = codec;