@@ -393,7 +393,7 @@ typedef void (*fxn_deh_notify) (struct deh_mgr *hdeh_mgr,
* -ENOMEM: Insufficient memory for requested resources.
* -EINVAL: Invalid number of IOReqs.
* CHNL_E_OUTOFSTREAMS: No free channels available.
- * CHNL_E_BADCHANID: Channel ID is out of range.
+ * -ECHRNG: Channel ID is out of range.
* -EALREADY: Channel is in use.
* -EIO: No free IO request packets available for
* queuing.
@@ -577,7 +577,7 @@ typedef dsp_status(*fxn_chnl_getinfo) (struct chnl_object *chnl_obj,
* 0: Success;
* -EFAULT: Invalid hchnl_mgr.
* -EFAULT: pMgrInfo == NULL.
- * CHNL_E_BADCHANID: Invalid channel ID.
+ * -ECHRNG: Invalid channel ID.
* Requires:
* Ensures:
* 0: pMgrInfo points to a filled in chnl_mgrinfo
@@ -736,7 +736,7 @@ dsp_status bridge_chnl_get_mgr_info(struct chnl_mgr *hchnl_mgr, u32 uChnlID,
status = -EFAULT;
}
} else {
- status = CHNL_E_BADCHANID;
+ status = -ECHRNG;
}
} else {
status = -EFAULT;
@@ -801,7 +801,7 @@ dsp_status bridge_chnl_open(OUT struct chnl_object **phChnl,
} else {
if (uChnlId != CHNL_PICKFREE) {
if (uChnlId >= chnl_mgr_obj->max_channels)
- status = CHNL_E_BADCHANID;
+ status = -ECHRNG;
else if (chnl_mgr_obj->ap_channel[uChnlId] !=
NULL)
status = -EALREADY;
@@ -585,7 +585,7 @@ func_cont:
* assert here), and then return -EPERM.
*/
DBC_ASSERT(status == CHNL_E_OUTOFSTREAMS ||
- status == CHNL_E_BADCHANID ||
+ status == -ECHRNG ||
status == -EALREADY ||
status == -EIO);
status = -EPERM;