@@ -85,9 +85,6 @@
/* No error text was found for the specified error code. */
#define DSP_ENOERRTEXT (DSP_EBASE + 0xe)
-/* No more connections can be made for this node. */
-#define DSP_ENOMORECONNECTIONS (DSP_EBASE + 0xf)
-
/* I/O is currently pending. */
#define DSP_EPENDING (DSP_EBASE + 0x11)
@@ -172,7 +172,7 @@ extern dsp_status node_close_orphans(struct node_mgr *hnode_mgr,
* indices uStream1 or uStream2.
* DSP_EWRONGSTATE: Either hNode1 or hNode2 is not in the
* NODE_ALLOCATED state.
- * DSP_ENOMORECONNECTIONS: No more connections available.
+ * -ECONNREFUSED: No more connections available.
* DSP_EFAIL: Attempt to make an illegal connection (eg,
* Device node to device node, or device node to
* GPP), the two nodes are on different DSPs.
@@ -953,7 +953,7 @@ dsp_status node_connect(struct node_object *hNode1, u32 uStream1,
/* Find available pipe */
pipe_id = gb_findandset(hnode_mgr->pipe_map);
if (pipe_id == GB_NOBITS) {
- status = DSP_ENOMORECONNECTIONS;
+ status = -ECONNREFUSED;
} else {
hNode1->outputs[uStream1].type = NODECONNECT;
hNode2->inputs[uStream2].type = NODECONNECT;
@@ -1025,7 +1025,7 @@ dsp_status node_connect(struct node_object *hNode1, u32 uStream1,
chnl_id = gb_findandset(hnode_mgr->chnl_map);
}
if (chnl_id == GB_NOBITS) {
- status = DSP_ENOMORECONNECTIONS;
+ status = -ECONNREFUSED;
goto func_cont2;
}
pstr_dev_name = mem_calloc(HOSTNAMELEN + 1, MEM_PAGED);