summaryrefslogtreecommitdiff
path: root/drivers/misc/qcom
diff options
context:
space:
mode:
authorShiv Maliyappanahalli <smaliyap@codeaurora.org>2016-03-04 16:15:34 -0800
committerBryan Huntsman <bryanh@codeaurora.org>2016-04-12 15:49:48 -0700
commit6a9927bfd7c61a55c742b2190d10b7254e90806d (patch)
treeef2429e77d7efc2c18f339522802ba9eb0602fc4 /drivers/misc/qcom
parent64d192c0e22cf8b990406cdde5cfaf221e7b2fe1 (diff)
ASoC: msm: qdsp6v2: use token for tracking no wait cmd
Use tokens to track all active no wait commands. In ASM driver, certain commands are waited on to get response from ADSP. There is a possibility that certain no-wait commands can be improperly recognized and woken up leading to time outs. Change-Id: I2030a354493845b63cf92d35ca4eaadef38cfb79 Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
Diffstat (limited to 'drivers/misc/qcom')
-rw-r--r--drivers/misc/qcom/qdsp6v2/q6audio_v2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/qcom/qdsp6v2/q6audio_v2.c b/drivers/misc/qcom/qdsp6v2/q6audio_v2.c
index df0065c3f77e..7eb6629b1e57 100644
--- a/drivers/misc/qcom/qdsp6v2/q6audio_v2.c
+++ b/drivers/misc/qcom/qdsp6v2/q6audio_v2.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2013, 2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2013, 2015-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -74,7 +74,7 @@ void audio_in_get_dsp_frames(void *priv,
struct q6audio_in *audio = (struct q6audio_in *)priv;
uint32_t index;
- index = token;
+ index = q6asm_get_buf_index_from_token(token);
pr_debug("%s:session id %d: index=%d nr frames=%d offset[%d]\n",
__func__, audio->ac->session, token, payload[9],
payload[5]);