@@ -66,7 +66,7 @@ extern dsp_status chnl_close(struct chnl_object *chnl_obj);
* -EIO: Unable to plug channel ISR for configured IRQ.
* 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.
+ * -EINVAL: Invalid DSP word size. Must be > 0.
* -EINVAL: Invalid base address for DSP communications.
* -EEXIST: Channel manager already exists for this device.
* Requires:
@@ -42,7 +42,7 @@
* -ENOMEM: Insufficient memory for requested resources.
* -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.
+ * -EINVAL: Invalid DSP word size. Must be > 0.
* -EINVAL: Invalid base address for DSP communications.
* Requires:
* io_init(void) called.
@@ -76,7 +76,7 @@ dsp_status chnl_create(OUT struct chnl_mgr **phChnlMgr,
status = CHNL_E_MAXCHANNELS;
if (pMgrAttrs->word_size == 0)
- status = CHNL_E_INVALIDWORDSIZE;
+ status = -EINVAL;
if (DSP_SUCCEEDED(status)) {
status = dev_get_chnl_mgr(hdev_obj, &hchnl_mgr);
@@ -66,7 +66,7 @@ dsp_status io_create(OUT struct io_mgr **phIOMgr, struct dev_object *hdev_obj,
status = -EINVAL;
if (pMgrAttrs->word_size == 0)
- status = CHNL_E_INVALIDWORDSIZE;
+ status = -EINVAL;
if (DSP_SUCCEEDED(status)) {
dev_get_intf_fxns(hdev_obj, &intf_fxns);