@@ -110,9 +110,6 @@
#define DSP_ETRUNCATED (DSP_EBASE + 0x18)
-/* A parameter is invalid. */
-#define DSP_EVALUE (DSP_EBASE + 0x1a)
-
/* The state of the specified object is incorrect for the requested
* operation. */
#define DSP_EWRONGSTATE (DSP_EBASE + 0x1b)
@@ -167,7 +167,7 @@ extern dsp_status node_close_orphans(struct node_mgr *hnode_mgr,
* DSP_SOK: Success.
* EFAULT: Invalid hNode1 or hNode2.
* ENOMEM: Insufficient host memory.
- * DSP_EVALUE: A stream index parameter is invalid.
+ * EINVAL: A stream index parameter is invalid.
* DSP_EALREADYCONNECTED: A connection already exists for one of the
* indices uStream1 or uStream2.
* DSP_EWRONGSTATE: Either hNode1 or hNode2 is not in the
@@ -492,7 +492,7 @@ extern dsp_status node_put_message(struct node_object *hnode,
* DSP_SOK: Success.
* EFAULT: Invalid hnode.
* ENOMEM: Insufficient memory on GPP.
- * DSP_EVALUE: event_mask is invalid.
+ * EINVAL: event_mask is invalid.
* ENOSYS: Notification type specified by notify_type is not
* supported.
* Requires:
@@ -93,7 +93,7 @@ struct node_createargs {
* DSP_SOK: Success.
* EFAULT: Invalid hnode.
* EPERM: Not a task or DAIS socket node.
- * DSP_EVALUE: The node's stream corresponding to index and dir
+ * EINVAL: The node's stream corresponding to index and dir
* is not a stream to or from the host.
* Requires:
* node_init(void) called.
@@ -107,7 +107,7 @@ extern void ntfy_notify(IN struct ntfy_object *ntfy_obj, IN u32 event_mask);
* Returns:
* DSP_SOK: Success.
* ENOMEM: Insufficient memory.
- * DSP_EVALUE: event_mask is 0 and hnotification was not
+ * EINVAL: event_mask is 0 and hnotification was not
* previously registered.
* EFAULT: NULL hnotification, hnotification event name
* too long, or hnotification event name NULL.
@@ -353,7 +353,7 @@ extern dsp_status proc_load(void *hprocessor,
* Returns:
* DSP_SOK : Success.
* EFAULT : Invalid processor handle or hnotification.
- * DSP_EVALUE : Parameter event_mask is Invalid
+ * EINVAL : Parameter event_mask is Invalid
* DSP_ENOTIMP : The notification type specified in uNotifyMask
* is not supported.
* DSP_EFAIL : Unable to register for notification.
@@ -260,7 +260,7 @@ extern dsp_status strm_issue(struct strm_object *hStrm, IN u8 * pbuf,
* DSP_SOK: Success.
* EFAULT: Invalid hnode.
* DSP_EDIRECTION: Invalid dir.
- * DSP_EVALUE: Invalid index.
+ * EINVAL: Invalid index.
* EPERM: hnode is not a task or DAIS socket node.
* DSP_EFAIL: Unable to open stream.
* Requires:
@@ -339,7 +339,7 @@ extern dsp_status strm_reclaim(struct strm_object *hStrm,
* DSP_SOK: Success.
* EFAULT: Invalid hStrm.
* ENOMEM: Insufficient memory on GPP.
- * DSP_EVALUE: event_mask is invalid.
+ * EINVAL: event_mask is invalid.
* ENOSYS: Notification type specified by notify_type is not
* supported.
* Requires:
@@ -631,7 +631,7 @@ typedef dsp_status(*fxn_chnl_idle) (struct chnl_object *chnl_obj,
* Returns:
* DSP_SOK: Success.
* ENOMEM: Insufficient memory.
- * DSP_EVALUE: event_mask is 0 and hnotification was not
+ * EINVAL: event_mask is 0 and hnotification was not
* previously registered.
* EFAULT: NULL hnotification, hnotification event name
* too long, or hnotification event name NULL.
@@ -879,7 +879,7 @@ dsp_status node_connect(struct node_object *hNode1, u32 uStream1,
NODE_DEVICE
&& uStream2 >=
MAX_INPUTS(hNode2)))
- status = DSP_EVALUE;
+ status = EINVAL;
}
if (DSP_SUCCEEDED(status)) {
/*
@@ -1772,7 +1772,7 @@ dsp_status node_get_channel_id(struct node_object *hnode, u32 dir, u32 index,
OUT u32 *pulId)
{
enum node_type node_type;
- dsp_status status = DSP_EVALUE;
+ dsp_status status = EINVAL;
DBC_REQUIRE(refs > 0);
DBC_REQUIRE(dir == DSP_TONODE || dir == DSP_FROMNODE);
DBC_REQUIRE(pulId != NULL);
@@ -2224,16 +2224,16 @@ dsp_status node_register_notify(struct node_object *hnode, u32 event_mask,
} else {
/* Check if event mask is a valid node related event */
if (event_mask & ~(DSP_NODESTATECHANGE | DSP_NODEMESSAGEREADY))
- status = DSP_EVALUE;
+ status = EINVAL;
/* Check if notify type is valid */
if (notify_type != DSP_SIGNALEVENT)
- status = DSP_EVALUE;
+ status = EINVAL;
/* Only one Notification can be registered at a
* time - Limitation */
if (event_mask == (DSP_NODESTATECHANGE | DSP_NODEMESSAGEREADY))
- status = DSP_EVALUE;
+ status = EINVAL;
}
if (DSP_SUCCEEDED(status)) {
if (event_mask == DSP_NODESTATECHANGE) {
@@ -623,7 +623,7 @@ dsp_status proc_get_resource_info(void *hprocessor, u32 resource_type,
(struct dsp_memstat *)
&(resource_info->result.
mem_stat)))
- status = DSP_EVALUE;
+ status = EINVAL;
}
}
break;
@@ -1150,11 +1150,11 @@ dsp_status proc_register_notify(void *hprocessor, u32 event_mask,
if (event_mask & ~(DSP_PROCESSORSTATECHANGE | DSP_PROCESSORATTACH |
DSP_PROCESSORDETACH | DSP_PROCESSORRESTART |
DSP_MMUFAULT | DSP_SYSERROR | DSP_PWRERROR))
- status = DSP_EVALUE;
+ status = EINVAL;
/* Check if notify type is valid */
if (notify_type != DSP_SIGNALEVENT)
- status = DSP_EVALUE;
+ status = EINVAL;
if (DSP_SUCCEEDED(status)) {
/* If event mask is not DSP_SYSERROR, DSP_MMUFAULT,
@@ -614,7 +614,7 @@ func_cont:
MEM_IS_VALID_HANDLE((*phStrm), STRM_SIGNATURE)) ||
(*phStrm == NULL && (status == EFAULT ||
status == DSP_EDIRECTION
- || status == DSP_EVALUE
+ || status == EINVAL
|| status == DSP_EFAIL)));
dev_dbg(bridge, "%s: hnode: %p dir: 0x%x index: 0x%x pattr: %p "
@@ -724,7 +724,7 @@ dsp_status strm_register_notify(struct strm_object *hStrm, u32 event_mask,
status = EFAULT;
} else if ((event_mask & ~((DSP_STREAMIOCOMPLETION) |
DSP_STREAMDONE)) != 0) {
- status = DSP_EVALUE;
+ status = EINVAL;
} else {
if (notify_type != DSP_SIGNALEVENT)
status = ENOSYS;
@@ -242,7 +242,7 @@ dsp_status ntfy_register(struct ntfy_object *ntfy_obj,
if (notifier_obj == NULL) {
/* Not registered */
if (event_mask == 0) {
- status = DSP_EVALUE;
+ status = EINVAL;
} else {
/* Allocate notifier object, add to list */
notifier_obj = mem_calloc(sizeof(struct notifier),
@@ -503,7 +503,7 @@ dsp_status bridge_msg_register_notify(struct msg_queue *msg_queue_obj,
ntfy_register(msg_queue_obj->ntfy_obj, hnotification, event_mask,
notify_type);
- if (status == DSP_EVALUE) {
+ if (status == EINVAL) {
/* Not registered. Ok, since we couldn't have known. Node
* notifications are split between node state change handled
* by NODE, and message ready handled by msg_ctrl. */