summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 36f1d13)
raw | patch | inline | side by side (parent: 36f1d13)
author | Sunita Nadampalli <sunitan@ti.com> | |
Tue, 7 Feb 2017 20:19:55 +0000 (14:19 -0600) | ||
committer | Sunita Nadampalli <sunitan@ti.com> | |
Tue, 7 Feb 2017 20:21:29 +0000 (15:21 -0500) |
Increase the MAX_INSTANCES count for the concurrent engine handles
to match the DCE server definitions.
Change-Id: If29de276b9a173e114ad6df9b1358b4842e86b49
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
to match the DCE server definitions.
Change-Id: If29de276b9a173e114ad6df9b1358b4842e86b49
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
dce_rpc.h | patch | blob | history | |
libdce.c | patch | blob | history |
diff --git a/dce_rpc.h b/dce_rpc.h
index cba0d3f02a4d906de67dc993aaca0ca091bdccc0..4bd45e6d4ff4e6b9643453a88cdb38eb90c048a6 100644 (file)
--- a/dce_rpc.h
+++ b/dce_rpc.h
#define MAX_OUTPUT_BUFPTRS 2//To take care bufs and bufSizes in viddec2 case
#define MAX_TOTAL_BUF (MAX_INPUT_BUF + MAX_OUTPUT_BUF + MAX_OUTPUT_BUFPTRS)
-#define MAX_INSTANCES 4
+#define MAX_INSTANCES 6 // aligned with IPUMM definitions for MAX instances i.e.,5, + 1 for persistent system
/* Message-Ids:
*/
//#define DCE_RPC_CONNECT (0x80000000 | 00) Connect not needed anymore.
diff --git a/libdce.c b/libdce.c
index 583b4d7f0afd413bc0d0c8967f5648f6b25b429e..bd7fb1797ebc6bbe11c74771803ee27c5ad3ed63 100644 (file)
--- a/libdce.c
+++ b/libdce.c
id = get_callback(0);
if (id < 0) {
- /* This is depended on the MAX_INSTANCE, by default it handles only 4 instances of codec instance (full frame or low latency) */
+ /* This is depended on the MAX_INSTANCE, by default it handles only 5 instances of codec instance (full frame or low latency) */
ERROR("Failed because too many codec clients, Max is %d. MAX_INSTANCES default needs to be changed if required.", MAX_INSTANCES);
goto EXIT;
} else { /* Found empty array to be populated */
id = get_callback(0);
if( id < 0 ) {
- /* This is depended on the MAX_INSTANCE, by default it handles only 4 instances of codec instance (full frame or low latency) */
+ /* This is depended on the MAX_INSTANCE, by default it handles only 5 instances of codec instance (full frame or low latency) */
ERROR("Failed because too many codec clients, Max is %d. MAX_INSTANCES default needs to be changed if required.", MAX_INSTANCES);
goto EXIT;
} else { /* Found empty array to be populated */