@@ -79,9 +79,6 @@
/* A failure occurred during a delete operation */
#define DSP_EDELETE (DSP_EBASE + 5)
-/* The specified direction is invalid */
-#define DSP_EDIRECTION (DSP_EBASE + 6)
-
/* A stream has been issued the maximum number of buffers allowed in the
* stream at once ; buffers must be reclaimed from the stream before any
* more can be issued. */
@@ -259,7 +259,7 @@ extern dsp_status strm_issue(struct strm_object *hStrm, IN u8 * pbuf,
* Returns:
* DSP_SOK: Success.
* -EFAULT: Invalid hnode.
- * DSP_EDIRECTION: Invalid dir.
+ * -EPERM: Invalid dir.
* -EINVAL: Invalid index.
* -EPERM: hnode is not a task or DAIS socket node.
* DSP_EFAIL: Unable to open stream.
@@ -495,7 +495,7 @@ dsp_status strm_open(struct node_object *hnode, u32 dir, u32 index,
DBC_REQUIRE(pattr != NULL);
*phStrm = NULL;
if (dir != DSP_TONODE && dir != DSP_FROMNODE) {
- status = DSP_EDIRECTION;
+ status = -EPERM;
} else {
/* Get the channel id from the node (set in node_connect()) */
status = node_get_channel_id(hnode, dir, index, &ul_chnl_id);
@@ -613,7 +613,7 @@ func_cont:
DBC_ENSURE((DSP_SUCCEEDED(status) &&
MEM_IS_VALID_HANDLE((*phStrm), STRM_SIGNATURE)) ||
(*phStrm == NULL && (status == -EFAULT ||
- status == DSP_EDIRECTION
+ status == -EPERM
|| status == -EINVAL
|| status == DSP_EFAIL)));