From b06682d3e5ebefa13011fb620f919431f980bc5f Mon Sep 17 00:00:00 2001 From: Surendar Karka Date: Mon, 5 Aug 2019 16:08:41 +0530 Subject: [PATCH] dsp: increase maximum active streams count DSP supports maximum fifteen active streams. Increase active stream count to fifteen. Change-Id: I1312ece8cc8bf8040b728718edfb9b5c7ad48b33 --- dsp/q6asm.c | 2 +- include/dsp/q6asm-v2.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dsp/q6asm.c b/dsp/q6asm.c index 475e04577b28..37ea0d07cdcb 100644 --- a/dsp/q6asm.c +++ b/dsp/q6asm.c @@ -1581,7 +1581,7 @@ int q6asm_audio_client_buf_alloc_contiguous(unsigned int dir, __func__, ac->session, bufsz, bufcnt); - if (ac->session <= 0 || ac->session > 8) { + if (ac->session <= 0 || ac->session > ASM_ACTIVE_STREAMS_ALLOWED) { pr_err("%s: Session ID is invalid, session = %d\n", __func__, ac->session); goto fail; diff --git a/include/dsp/q6asm-v2.h b/include/dsp/q6asm-v2.h index 5db8fde22ad9..5ad8fb0f6abe 100644 --- a/include/dsp/q6asm-v2.h +++ b/include/dsp/q6asm-v2.h @@ -95,7 +95,7 @@ #define SOFT_PAUSE_ENABLE 1 #define SOFT_PAUSE_DISABLE 0 -#define ASM_ACTIVE_STREAMS_ALLOWED 0x8 +#define ASM_ACTIVE_STREAMS_ALLOWED 0xF /* Control session is used for mapping calibration memory */ #define ASM_CONTROL_SESSION (ASM_ACTIVE_STREAMS_ALLOWED + 1)