Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c08aac98 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: msm: qdsp6v2: Move asm list init before apr registration"

parents 716c8926 de6e1ccd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);