@@ -300,9 +300,6 @@
* queued. */
#define CHNL_E_NOIOC (CHNL_EBASE + 0x06)
-/* I/O has been cancelled on this channel. */
-#define CHNL_E_CANCELLED (CHNL_EBASE + 0x07)
-
/* End of stream was already requested on this output channel. */
#define CHNL_E_EOS (CHNL_EBASE + 0x09)
@@ -453,7 +453,7 @@ typedef dsp_status(*fxn_chnl_close) (struct chnl_object *chnl_obj);
* EFAULT: Invalid chnl_obj.
* EFAULT: pHostBuf is invalid.
* CHNL_E_NOEOS: User cannot mark EOS on an input channel.
- * CHNL_E_CANCELLED: I/O has been cancelled on this channel. No further
+ * ECANCELED: I/O has been cancelled on this channel. No further
* I/O is allowed.
* CHNL_E_EOS: End of stream was already marked on a previous
* IORequest on this channel. No further I/O is expected.
@@ -123,7 +123,7 @@ dsp_status bridge_chnl_add_io_req(struct chnl_object *chnl_obj, void *pHostBuf,
dw_state = pchnl->dw_state;
if (dw_state != CHNL_STATEREADY) {
if (dw_state & CHNL_STATECANCEL)
- status = CHNL_E_CANCELLED;
+ status = ECANCELED;
else if ((dw_state & CHNL_STATEEOS) &&
CHNL_IS_OUTPUT(pchnl->chnl_mode))
status = CHNL_E_EOS;