ASoC: tegra-alt: adsp: ignore pmdown time
Viraj Karandikar [Thu, 4 Sep 2014 21:45:06 +0000 (14:45 -0700)]
If stream is re-opened within pmdown time, hw_params for dai link
doesn't get called because the widget isn't marked dirty. This leaves
ADSP ADMA in unintialized state and playback fails.
Setting ingnore_pmdown_time to 1 to forces power down on stream close.

Change-Id: Ib3715fa54c4b00ab7e3aeccce617920de8eab347
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/495798
(cherry picked from commit 95a61f976edb5048af5428b6a9823adcc8832beb)
Reviewed-on: http://git-master/r/496293
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>

sound/soc/tegra-alt/tegra_asoc_machine_alt.c

index 49798e7..975b48d 100644 (file)
@@ -1494,6 +1494,7 @@ static struct snd_soc_dai_link
                .cpu_name = "adsp_audio.3",
                .codec_name = "adsp_audio.3",
                .platform_name = "adsp_audio.3",
+               .ignore_pmdown_time = 1,
        },
        [TEGRA210_DAI_LINK_ADSP_COMPR1] = {
                .name = "ADSP COMPR1",
@@ -1503,6 +1504,7 @@ static struct snd_soc_dai_link
                .cpu_name = "adsp_audio.3",
                .codec_name = "adsp_audio.3",
                .platform_name = "adsp_audio.3",
+               .ignore_pmdown_time = 1,
        },
        [TEGRA210_DAI_LINK_ADSP_COMPR2] = {
                .name = "ADSP COMPR2",
@@ -1512,6 +1514,7 @@ static struct snd_soc_dai_link
                .cpu_name = "adsp_audio.3",
                .codec_name = "adsp_audio.3",
                .platform_name = "adsp_audio.3",
+               .ignore_pmdown_time = 1,
        },
 };