From 9050c3e45574ae017cd37a5daa078c406fe4d1f2 Mon Sep 17 00:00:00 2001 From: Niranjan Dighe Date: Tue, 18 Dec 2018 10:39:17 +0530 Subject: [PATCH] adsp: Make set_eos method generic - Create generic nvfx_method_set_eos - Required for plugin specific EOS handling Bug 2402965 Change-Id: I4e52eca46769862e13ca947a27fcabccc3a1d70d Signed-off-by: Niranjan Dighe Reviewed-on: https://git-master.nvidia.com/r/1974986 (cherry picked from commit 9b48f057c2629bc000b745409551a80597aa4aab) Reviewed-on: https://git-master.nvidia.com/r/2027461 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/tegra-alt/tegra210_adsp_alt.c b/sound/soc/tegra-alt/tegra210_adsp_alt.c index c523d3b1..555abac9 100644 --- a/sound/soc/tegra-alt/tegra210_adsp_alt.c +++ b/sound/soc/tegra-alt/tegra210_adsp_alt.c @@ -759,7 +759,7 @@ static int tegra210_adsp_send_eos_msg(struct tegra210_adsp_app *app, apm_msg.msgq_msg.size = MSGQ_MSG_WSIZE(apm_eos_params_t); apm_msg.msg.call_params.size = sizeof(apm_eos_params_t); - apm_msg.msg.call_params.method = nvfx_apm_method_set_eos; + apm_msg.msg.call_params.method = nvfx_method_set_eos; return tegra210_adsp_send_msg(app, &apm_msg, flags); } @@ -1301,7 +1301,7 @@ static int tegra210_adsp_pcm_msg_handler(struct tegra210_adsp_app *app, } } break; - case nvfx_apm_method_set_eos: + case nvfx_method_set_eos: /* Nothing specific to be done here as DRAIN */ /* is implemented in native PCM driver */ break; @@ -1332,7 +1332,7 @@ static int tegra210_adsp_compr_msg_handler(struct tegra210_adsp_app *app, case nvfx_apm_method_set_position: snd_compr_fragment_elapsed(prtd->cstream); break; - case nvfx_apm_method_set_eos: + case nvfx_method_set_eos: if (!prtd->is_draining) { dev_warn(prtd->dev, "EOS reached before drain"); break;