From patchwork Thu Mar 25 20:07:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hebbar, Shivananda" X-Patchwork-Id: 88332 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2PK6Q3j021290 for ; Thu, 25 Mar 2010 20:07:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754750Ab0CYUH0 (ORCPT ); Thu, 25 Mar 2010 16:07:26 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:37045 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754702Ab0CYUHY convert rfc822-to-8bit (ORCPT ); Thu, 25 Mar 2010 16:07:24 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id o2PK792J005874 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 25 Mar 2010 15:07:11 -0500 Received: from dbde71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id o2PK7870027686; Fri, 26 Mar 2010 01:37:08 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde71.ent.ti.com ([172.24.170.149]) with mapi; Fri, 26 Mar 2010 01:37:08 +0530 From: "Hebbar, Shivananda" To: "linux-omap@vger.kernel.org" CC: "Ramirez Luna, Omar" , Felipe Contreras , "Palande Ameya (Nokia-D/Helsinki)" , "Menon, Nishanth" Date: Fri, 26 Mar 2010 01:37:06 +0530 Subject: [RFC][PATCH 17/19] DSPBRIDGE: Cleanup custom error code (CHNL_E_CHANBUSY -> EALREADY) Thread-Topic: [RFC][PATCH 17/19] DSPBRIDGE: Cleanup custom error code (CHNL_E_CHANBUSY -> EALREADY) Thread-Index: AcrMVr5d4GPZuxfmTM6eN9XNIJ0whw== Message-ID: <19F8576C6E063C45BE387C64729E7394044DEBEB2D@dbde02.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 25 Mar 2010 20:07:27 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/dspbridge/errbase.h b/arch/arm/plat-omap/include/dspbridge/errbase.h index e564284..51e9407 100644 --- a/arch/arm/plat-omap/include/dspbridge/errbase.h +++ b/arch/arm/plat-omap/include/dspbridge/errbase.h @@ -293,9 +293,6 @@ /* Channel ID is out of range. */ #define CHNL_E_BADCHANID (CHNL_EBASE + 0x03) -/* Channel is already in use. */ -#define CHNL_E_CHANBUSY (CHNL_EBASE + 0x04) - /* Invalid channel mode argument. */ #define CHNL_E_BADMODE (CHNL_EBASE + 0x05) diff --git a/arch/arm/plat-omap/include/dspbridge/wmd.h b/arch/arm/plat-omap/include/dspbridge/wmd.h index 0cee536..d743063 100644 --- a/arch/arm/plat-omap/include/dspbridge/wmd.h +++ b/arch/arm/plat-omap/include/dspbridge/wmd.h @@ -394,7 +394,7 @@ typedef void (*fxn_deh_notify) (struct deh_mgr *hdeh_mgr, * EINVAL: Invalid number of IOReqs. * CHNL_E_OUTOFSTREAMS: No free channels available. * CHNL_E_BADCHANID: Channel ID is out of range. - * CHNL_E_CHANBUSY: Channel is in use. + * EALREADY: Channel is in use. * CHNL_E_NOIORPS: No free IO request packets available for * queuing. * Requires: diff --git a/drivers/dsp/bridge/rmgr/strm.c b/drivers/dsp/bridge/rmgr/strm.c index 274d387..003df3d 100644 --- a/drivers/dsp/bridge/rmgr/strm.c +++ b/drivers/dsp/bridge/rmgr/strm.c @@ -596,7 +596,7 @@ func_cont: */ DBC_ASSERT(status == CHNL_E_OUTOFSTREAMS || status == CHNL_E_BADCHANID || - status == CHNL_E_CHANBUSY || + status == EALREADY || status == CHNL_E_NOIORPS); status = DSP_EFAIL; } diff --git a/drivers/dsp/bridge/wmd/chnl_sm.c b/drivers/dsp/bridge/wmd/chnl_sm.c index 7bcaaac..b926779 100644 --- a/drivers/dsp/bridge/wmd/chnl_sm.c +++ b/drivers/dsp/bridge/wmd/chnl_sm.c @@ -811,7 +811,7 @@ dsp_status bridge_chnl_open(OUT struct chnl_object **phChnl, status = CHNL_E_BADCHANID; else if (chnl_mgr_obj->ap_channel[uChnlId] != NULL) - status = CHNL_E_CHANBUSY; + status = EALREADY; } else { /* Check for free channel */ status =