From 92d1ab20d3a230028f8291aeeff3e6982b96d97a Mon Sep 17 00:00:00 2001 From: dipeshg Date: Tue, 4 Sep 2018 14:21:49 +0530 Subject: [PATCH] tegra-alt: adsp: ignore drain msg to audioserver On drain trigger no special handling is required on audioserver side. Change adds case to ignore drain message to audioserver. Bug 2117496 Change-Id: I575b895651ed21179c743a0aa0e5f63eea354a5a Signed-off-by: dipeshg Reviewed-on: https://git-master.nvidia.com/r/1812302 Reviewed-by: Uday Gupta Reviewed-by: Hariharan Sivaraman GVS: Gerrit_Virtual_Submit Reviewed-by: Nitin Pai Reviewed-by: mobile promotions Tested-by: mobile promotions --- sound/soc/tegra-alt/tegra210_adsp_alt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/tegra-alt/tegra210_adsp_alt.c b/sound/soc/tegra-alt/tegra210_adsp_alt.c index c248c2b1..bf6d8a38 100644 --- a/sound/soc/tegra-alt/tegra210_adsp_alt.c +++ b/sound/soc/tegra-alt/tegra210_adsp_alt.c @@ -2090,6 +2090,9 @@ static uint32_t tegra210_adsp_hv_pcm_trigger( return ret; } break; + case SNDRV_PCM_TRIGGER_DRAIN: + /* do nothing */ + break; default: pr_err("Unsupported state."); return -EINVAL;