summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaxminath Kasam <lkasam@codeaurora.org>2016-10-24 16:38:56 +0530
committerLaxminath Kasam <lkasam@codeaurora.org>2017-01-04 12:17:16 +0530
commit671fae0fce200de35fd70290d080cb0cdf1533ec (patch)
tree7e386ed9946d315881713b74585b3f669cba19a6 /include
parent613765204325713b6419765d5d27e7b8f633ef59 (diff)
ASoC: msm: qdsp6v2: Fix gapless session open fail
During gapless playback, next track open write command is triggered to DSP. At the same time, for current track, volume change or some PP command is triggered to DSP. Due to race condition, the track open write fails since the second command is triggered asynchronously. Use separate cmd state for PP command to handle this. CRs-Fixed: 1080766 Change-Id: Ia80766394e4933800b72be2bf3296cd5de4e3159 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/sound/q6asm-v2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/q6asm-v2.h b/include/sound/q6asm-v2.h
index efa5af8e661c..f4af670c5acf 100644
--- a/include/sound/q6asm-v2.h
+++ b/include/sound/q6asm-v2.h
@@ -209,6 +209,7 @@ struct audio_client {
int session;
app_cb cb;
atomic_t cmd_state;
+ atomic_t cmd_state_pp;
/* Relative or absolute TS */
atomic_t time_flag;
atomic_t nowait_cmd_cnt;