Replace CHNL_E_NOIORPS with EIO Signed-off-by: Omar Ramirez Luna <omar.ramirez@xxxxxx> --- arch/arm/plat-omap/include/dspbridge/dspdefs.h | 2 +- drivers/dsp/bridge/core/chnl_sm.c | 2 +- drivers/dsp/bridge/rmgr/strm.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/plat-omap/include/dspbridge/dspdefs.h b/arch/arm/plat-omap/include/dspbridge/dspdefs.h index 3d53881..ff352ce 100644 --- a/arch/arm/plat-omap/include/dspbridge/dspdefs.h +++ b/arch/arm/plat-omap/include/dspbridge/dspdefs.h @@ -395,7 +395,7 @@ typedef void (*fxn_deh_notify) (struct deh_mgr *hdeh_mgr, * CHNL_E_OUTOFSTREAMS: No free channels available. * CHNL_E_BADCHANID: Channel ID is out of range. * -EALREADY: Channel is in use. - * CHNL_E_NOIORPS: No free IO request packets available for + * -EIO: No free IO request packets available for * queuing. * Requires: * phChnl != NULL. diff --git a/drivers/dsp/bridge/core/chnl_sm.c b/drivers/dsp/bridge/core/chnl_sm.c index 3cebf94..449b897 100644 --- a/drivers/dsp/bridge/core/chnl_sm.c +++ b/drivers/dsp/bridge/core/chnl_sm.c @@ -185,7 +185,7 @@ func_cont: chnl_packet_obj = (struct chnl_irp *)lst_get_head(pchnl->free_packets_list); if (chnl_packet_obj == NULL) - status = CHNL_E_NOIORPS; + status = -EIO; } if (DSP_SUCCEEDED(status)) { diff --git a/drivers/dsp/bridge/rmgr/strm.c b/drivers/dsp/bridge/rmgr/strm.c index 7e2481f..accfb7b 100644 --- a/drivers/dsp/bridge/rmgr/strm.c +++ b/drivers/dsp/bridge/rmgr/strm.c @@ -448,7 +448,7 @@ dsp_status strm_issue(struct strm_object *hStrm, IN u8 *pbuf, u32 ul_bytes, (hStrm->chnl_obj, pbuf, ul_bytes, ul_buf_size, (u32) tmp_buf, dw_arg); } - if (status == CHNL_E_NOIORPS) + if (status == -EIO) status = -ENOSR; } @@ -587,7 +587,7 @@ func_cont: DBC_ASSERT(status == CHNL_E_OUTOFSTREAMS || status == CHNL_E_BADCHANID || status == -EALREADY || - status == CHNL_E_NOIORPS); + status == -EIO); status = -EPERM; } } -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html