diff options
author | Misael Lopez Cruz <misael.lopez@ti.com> | 2011-12-02 09:58:40 +0800 |
---|---|---|
committer | Sebastien Jan <s-jan@ti.com> | 2011-12-05 11:20:25 +0100 |
commit | 0b46763b5c2455e711252047f31465e80ca30803 (patch) | |
tree | 328e31a25cb78e99c6da3571114f0cbb1770a9d5 /sound | |
parent | 92fd4e585899e9daa811a745a3ef7e5d2bdbf7f2 (diff) |
ASoC: sdp4430 - Reduce McPDM shutdown delay
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/omap/sdp4430.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/soc/omap/sdp4430.c b/sound/soc/omap/sdp4430.c index db72ff6cdc9b..12485f8cd2bf 100644 --- a/sound/soc/omap/sdp4430.c +++ b/sound/soc/omap/sdp4430.c @@ -333,9 +333,20 @@ static int sdp4430_twl6040_init(struct snd_soc_pcm_runtime *rtd) snd_soc_dapm_ignore_suspend(dapm, "Digital Mic 1"); snd_soc_dapm_ignore_suspend(dapm, "Digital Mic 2"); + /* wait 500 ms before switching of HS power */ + rtd->pmdown_time = 500; + return ret; } +static int sdp4430_twl6040_dl2_init(struct snd_soc_pcm_runtime *rtd) +{ + /* wait 500 ms before switching of HF power */ + rtd->pmdown_time = 500; + + return 0; +} + /* SDP4430 digital microphones DAPM */ static const struct snd_soc_dapm_widget sdp4430_dmic_dapm_widgets[] = { SND_SOC_DAPM_MIC("Digital Mic Legacy", NULL), @@ -640,6 +651,7 @@ static struct snd_soc_dai_link sdp4430_dai[] = { .codec_name = "twl6040-codec", .no_pcm = 1, /* don't create ALSA pcm for this */ + .init = sdp4430_twl6040_dl2_init, .ops = &sdp4430_mcpdm_ops, .be_id = OMAP_ABE_DAI_PDM_DL2, }, |