Replace DSP_ETRANSLATE with ESRCH Signed-off-by: Omar Ramirez Luna <omar.ramirez@xxxxxx> --- drivers/dsp/bridge/rmgr/node.c | 6 +++--- drivers/dsp/bridge/rmgr/strm.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/node.c b/drivers/dsp/bridge/rmgr/node.c index 1c7742a..20bfe18 100644 --- a/drivers/dsp/bridge/rmgr/node.c +++ b/drivers/dsp/bridge/rmgr/node.c @@ -1861,10 +1861,10 @@ dsp_status node_get_message(struct node_object *hnode, pmsg->dw_arg1 = (u32) tmp_buf; pmsg->dw_arg2 *= hnode->hnode_mgr->udsp_word_size; } else { - status = DSP_ETRANSLATE; + status = -ESRCH; } } else { - status = DSP_ETRANSLATE; + status = -ESRCH; } func_end: dev_dbg(bridge, "%s: hnode: %p pmsg: %p utimeout: 0x%x\n", __func__, @@ -2170,7 +2170,7 @@ dsp_status node_put_message(struct node_object *hnode, status = -EPERM; /* bad DSPWordSize */ } } else { /* failed to translate buffer address */ - status = DSP_ETRANSLATE; + status = -ESRCH; } } if (DSP_SUCCEEDED(status)) { diff --git a/drivers/dsp/bridge/rmgr/strm.c b/drivers/dsp/bridge/rmgr/strm.c index d560503..094b134 100644 --- a/drivers/dsp/bridge/rmgr/strm.c +++ b/drivers/dsp/bridge/rmgr/strm.c @@ -440,7 +440,7 @@ dsp_status strm_issue(struct strm_object *hStrm, IN u8 *pbuf, u32 ul_bytes, (void *)pbuf, CMM_VA2DSPPA); if (tmp_buf == NULL) - status = DSP_ETRANSLATE; + status = -ESRCH; } if (DSP_SUCCEEDED(status)) { @@ -676,7 +676,7 @@ dsp_status strm_reclaim(struct strm_object *hStrm, OUT u8 ** buf_ptr, CMM_PA2VA); } if (tmp_buf == NULL) - status = DSP_ETRANSLATE; + status = -ESRCH; chnl_ioc_obj.pbuf = tmp_buf; } @@ -685,7 +685,7 @@ dsp_status strm_reclaim(struct strm_object *hStrm, OUT u8 ** buf_ptr, func_end: /* ensure we return a documented return code */ DBC_ENSURE(DSP_SUCCEEDED(status) || status == -EFAULT || - status == -ETIME || status == DSP_ETRANSLATE || + status == -ETIME || status == -ESRCH || status == -EPERM); dev_dbg(bridge, "%s: hStrm: %p buf_ptr: %p pulBytes: %p pdw_arg: %p " @@ -730,7 +730,7 @@ dsp_status strm_register_notify(struct strm_object *hStrm, u32 event_mask, } /* ensure we return a documented return code */ DBC_ENSURE(DSP_SUCCEEDED(status) || status == -EFAULT || - status == -ETIME || status == DSP_ETRANSLATE || + status == -ETIME || status == -ESRCH || status == -ENOSYS || status == -EPERM); return status; } -- 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