diff options
| author | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-05-31 09:23:03 +0100 |
|---|---|---|
| committer | Andy Green <andy.green@linaro.org> | 2011-05-31 11:04:33 +0100 |
| commit | 6f12c3a1ce5d42fdda355e488c3fee58ff960a73 (patch) | |
| tree | b3c592c5aac63ebf03c74f5ceb7f0dea83de27b2 /sound | |
| parent | 62a8c6676e31937c0017c5857986fcc7ef0f6afa (diff) | |
ASoC: sdp4430: Add shutdown delay for HS power off
Add a 500ms delay to shutdown headset components in order
to reduce pop noise. In order to minimize pop noise, McPDM
interface needs to shutdown after analog paths have been
disabled, hence McPDM shutdown delay is longer.
Change-Id: Ida3f61b2f219799d6a291c98a4be45ba39e340d3
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Margarita Olaya Cabrera <magi.olaya@ti.com>
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Diffstat (limited to 'sound')
| -rw-r--r-- | sound/soc/omap/sdp4430.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/omap/sdp4430.c b/sound/soc/omap/sdp4430.c index b250f4e6fc6..68041d2b3e7 100644 --- a/sound/soc/omap/sdp4430.c +++ b/sound/soc/omap/sdp4430.c @@ -299,6 +299,9 @@ static int sdp4430_twl6040_init(struct snd_soc_pcm_runtime *rtd) else snd_soc_jack_report(&hs_jack, SND_JACK_HEADSET, SND_JACK_HEADSET); + /* wait 500 ms before switching of HS power */ + rtd->pmdown_time = 500; + return ret; } |
