@@ -99,9 +99,6 @@
/* I/O is currently pending. */
#define DSP_EPENDING (DSP_EBASE + 0x11)
-/* A parameter is specified outside its valid range. */
-#define DSP_ERANGE (DSP_EBASE + 0x13)
-
/* An invalid size parameter was specified. */
#define DSP_ESIZE (DSP_EBASE + 0x14)
@@ -42,7 +42,7 @@
* -ENOMEM: Insufficient memory on GPP.
* DSP_EUUID: Node UUID has not been registered.
* DSP_ESYMBOL: iAlg functions not found for a DAIS node.
- * DSP_ERANGE: attr_in != NULL and attr_in->prio out of
+ * -EDOM: attr_in != NULL and attr_in->prio out of
* range.
* DSP_EFAIL: A failure occured, unable to allocate node.
* DSP_EWRONGSTATE: Proccessor is not in the running state.
@@ -99,7 +99,7 @@ extern dsp_status node_alloc_msg_buf(struct node_object *hnode,
* Returns:
* DSP_SOK: Success.
* -EFAULT: Invalid hnode.
- * DSP_ERANGE: prio is out of range.
+ * -EDOM: prio is out of range.
* -EPERM: The specified node is not a task node.
* DSP_EWRONGSTATE: Node is not in the NODE_ALLOCATED, NODE_PAUSED,
* or NODE_RUNNING state.
@@ -363,7 +363,7 @@ extern dsp_status strm_register_notify(struct strm_object *hStrm,
* utimeout: Timeout value (milliseconds).
* Returns:
* DSP_SOK: Success.
- * DSP_ERANGE: nStrms out of range.
+ * -EDOM: nStrms out of range.
* -EFAULT: Invalid stream handle in array.
* DSP_ETIMEOUT: A timeout occurred before a stream became ready.
@@ -374,7 +374,7 @@ dsp_status node_allocate(struct proc_object *hprocessor,
/* Check if attr_in->prio is within range */
if (attr_in->prio < hnode_mgr->min_pri ||
attr_in->prio > hnode_mgr->max_pri)
- status = DSP_ERANGE;
+ status = -EDOM;
}
}
/* Allocate node object and fill in */
@@ -785,7 +785,7 @@ dsp_status node_change_priority(struct node_object *hnode, s32 prio)
if (node_type != NODE_TASK && node_type != NODE_DAISSOCKET)
status = -EPERM;
else if (prio < hnode_mgr->min_pri || prio > hnode_mgr->max_pri)
- status = DSP_ERANGE;
+ status = -EDOM;
}
if (DSP_FAILED(status))
goto func_end;