From efd1112f5c78793c1eaca3335269575a80ef3491 Mon Sep 17 00:00:00 2001 From: Viswanath L Date: Wed, 25 May 2016 13:36:24 +0530 Subject: [PATCH] tegra: adsp: Max ADSP clock at APM active Spike ADSP freq. to max when app transitions to active so that ADSP does not starve Bug 200196267 Change-Id: I11863b2449cfecc47aefd9bc41059b634b3b2acd Signed-off-by: Viswanath L Reviewed-on: http://git-master/r/1154410 (cherry picked from commit 9e6163d9c1f2f07c9b4510d609aa974a75da96c7) Reviewed-on: http://git-master/r/1236637 Reviewed-by: mobile promotions Tested-by: mobile promotions --- sound/soc/tegra-alt/tegra210_adsp_alt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/soc/tegra-alt/tegra210_adsp_alt.c b/sound/soc/tegra-alt/tegra210_adsp_alt.c index 4e02be5c..110c2f0a 100644 --- a/sound/soc/tegra-alt/tegra210_adsp_alt.c +++ b/sound/soc/tegra-alt/tegra210_adsp_alt.c @@ -647,6 +647,11 @@ static int tegra210_adsp_send_state_msg(struct tegra210_adsp_app *app, apm_msg.msg.call_params.method = nvfx_method_set_state; apm_msg.msg.state_params.state = state; + /* Spike ADSP freq to max when app transitions to active */ + /* state; DFS will thereafter find appropriate rate */ + if (state == nvfx_state_active) + adsp_override_freq(INT_MAX); + return tegra210_adsp_send_msg(app, &apm_msg, flags); }