@@ -67,7 +67,7 @@ extern dsp_status chnl_close(struct chnl_object *chnl_obj);
* CHNL_E_MAXCHANNELS: This manager cannot handle this many channels.
* CHNL_E_INVALIDIRQ: Invalid IRQ number. Must be 0 <= birq <= 15.
* CHNL_E_INVALIDWORDSIZE: Invalid DSP word size. Must be > 0.
- * CHNL_E_INVALIDMEMBASE: Invalid base address for DSP communications.
+ * -EINVAL: Invalid base address for DSP communications.
* -EEXIST: Channel manager already exists for this device.
* Requires:
* chnl_init(void) called.
@@ -43,7 +43,7 @@
* -EIO: Unable to plug channel ISR for configured IRQ.
* CHNL_E_INVALIDIRQ: Invalid IRQ number. Must be 0 <= birq <= 15.
* CHNL_E_INVALIDWORDSIZE: Invalid DSP word size. Must be > 0.
- * CHNL_E_INVALIDMEMBASE: Invalid base address for DSP communications.
+ * -EINVAL: Invalid base address for DSP communications.
* Requires:
* io_init(void) called.
* phIOMgr != NULL.
@@ -363,7 +363,7 @@ dsp_status bridge_io_on_loaded(struct io_mgr *hio_mgr)
goto func_end;
}
if (ul_shm_limit <= ul_shm_base) {
- status = CHNL_E_INVALIDMEMBASE;
+ status = -EINVAL;
goto func_end;
}
/* Get total length in bytes */
@@ -382,7 +382,7 @@ dsp_status bridge_io_on_loaded(struct io_mgr *hio_mgr)
&ul_msg_limit);
if (DSP_SUCCEEDED(status)) {
if (ul_msg_limit <= ul_msg_base) {
- status = CHNL_E_INVALIDMEMBASE;
+ status = -EINVAL;
} else {
/*
* Length (bytes) of messaging part of shared
@@ -63,7 +63,7 @@ dsp_status io_create(OUT struct io_mgr **phIOMgr, struct dev_object *hdev_obj,
/* A memory base of 0 implies no memory base: */
if ((pMgrAttrs->shm_base != 0) && (pMgrAttrs->usm_length == 0))
- status = CHNL_E_INVALIDMEMBASE;
+ status = -EINVAL;
if (pMgrAttrs->word_size == 0)
status = CHNL_E_INVALIDWORDSIZE;