Ver Fonte

dsp: increase maximum active streams count

DSP supports maximum fifteen active streams.
Increase active stream count to fifteen.

Change-Id: I1312ece8cc8bf8040b728718edfb9b5c7ad48b33
Surendar Karka há 5 anos atrás
pai
commit
b06682d3e5
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      dsp/q6asm.c
  2. 1 1
      include/dsp/q6asm-v2.h

+ 1 - 1
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;

+ 1 - 1
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)