diff --git a/sound/soc/msm/qdsp6v2/q6asm.c b/sound/soc/msm/qdsp6v2/q6asm.c index fc08c1f9f87d..95b769d2f358 100644 --- a/sound/soc/msm/qdsp6v2/q6asm.c +++ b/sound/soc/msm/qdsp6v2/q6asm.c @@ -1076,6 +1076,7 @@ struct audio_client *q6asm_audio_client_alloc(app_cb cb, void *priv) ac->fptr_cache_ops = NULL; /* DSP expects stream id from 1 */ ac->stream_id = 1; + INIT_LIST_HEAD(&ac->no_wait_que); ac->apr = apr_register("ADSP", "ASM", \ (apr_fn)q6asm_callback,\ ((ac->session) << 8 | 0x0001),\ @@ -1122,7 +1123,6 @@ struct audio_client *q6asm_audio_client_alloc(app_cb cb, void *priv) atomic_set(&ac->cmd_state, 0); atomic_set(&ac->nowait_cmd_cnt, 0); spin_lock_init(&ac->no_wait_que_spinlock); - INIT_LIST_HEAD(&ac->no_wait_que); atomic_set(&ac->mem_state, 0); rc = send_asm_custom_topology(ac);