asoc: tegra: ignore delayed close of audio devices
Vijay Mali [Tue, 4 Mar 2014 10:59:50 +0000 (15:59 +0530)]
Ignore dapm delayed shutdown for music and
voice devices.This helps close voice and music
streams immediately after pcm-close. Delayed
shutdown causes disabling dapm paths that are
used by other devices.

Bug 1468201

Change-Id: I7c0fdf8eceb26839c0cc083d17b741b593aa9761
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/377143
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Lei Fan <leif@nvidia.com>
Reviewed-by: Martin Chi <mchi@nvidia.com>

sound/soc/tegra/tegra_rt5640.c

index 1dbe35b..18cb653 100644 (file)
@@ -1605,6 +1605,7 @@ static struct snd_soc_dai_link tegra_rt5640_dai[NUM_DAI_LINKS] = {
                .codec_dai_name = "rt5639-aif1",
                .init = tegra_rt5640_init,
                .ops = &tegra_rt5640_ops,
+               .ignore_pmdown_time = 1,
        },
        [DAI_LINK_SPDIF] = {
                .name = "SPDIF",
@@ -1633,6 +1634,7 @@ static struct snd_soc_dai_link tegra_rt5640_dai[NUM_DAI_LINKS] = {
                .cpu_dai_name = "dit-hifi",
                .codec_dai_name = "rt5639-aif1",
                .ops = &tegra_voice_call_ops,
+               .ignore_pmdown_time = 1,
        },
        [DAI_LINK_BT_VOICE_CALL] = {
                .name = "BT VOICE CALL",