From patchwork Mon Sep 14 10:24:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yusuf Caglar AKYUZ X-Patchwork-Id: 47281 Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8EAU2Vf001676 for ; Mon, 14 Sep 2009 10:30:03 GMT Received: from dlep33.itg.ti.com ([157.170.170.112]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id n8EASK3j029079; Mon, 14 Sep 2009 05:28:21 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id n8EASJFq001299; Mon, 14 Sep 2009 05:28:20 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 24AF080627; Mon, 14 Sep 2009 05:28:19 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp53.itg.ti.com (dflp53.itg.ti.com [128.247.5.6]) by linux.omap.com (Postfix) with ESMTP id 0242980626 for ; Mon, 14 Sep 2009 05:28:18 -0500 (CDT) Received: from white.ext.ti.com (localhost [127.0.0.1]) by dflp53.itg.ti.com (8.13.8/8.13.8) with ESMTP id n8EASHX5002179 for ; Mon, 14 Sep 2009 05:28:17 -0500 (CDT) Received: from mail125-va3-R.bigfish.com (mail-va3.bigfish.com [216.32.180.113]) by white.ext.ti.com (8.13.7/8.13.7) with ESMTP id n8EASHg0013118 for ; Mon, 14 Sep 2009 05:28:17 -0500 Received: from mail125-va3 (localhost.localdomain [127.0.0.1]) by mail125-va3-R.bigfish.com (Postfix) with ESMTP id 5062A13B0176 for ; Mon, 14 Sep 2009 10:28:17 +0000 (UTC) X-SpamScore: -20 X-BigFish: vps-20(z3b68jz328cM9370K98dN14e4M936eMzz1202h10adjzzz2fh5fh5eh259h6bh61h) X-Spam-TCS-SCL: 0:0 X-FB-SS: 5, X-MS-Exchange-Organization-Antispam-Report: OrigIP: 209.85.220.208; Service: EHS Received: by mail125-va3 (MessageSwitch) id 1252924095972870_1488; Mon, 14 Sep 2009 10:28:15 +0000 (UCT) Received: from mail-fx0-f208.google.com (mail-fx0-f208.google.com [209.85.220.208]) by mail125-va3.bigfish.com (Postfix) with ESMTP id BDB761408055 for ; Mon, 14 Sep 2009 10:28:15 +0000 (UTC) Received: by fxm4 with SMTP id 4so2213073fxm.40 for ; Mon, 14 Sep 2009 03:28:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=D5VN28hL/jkRXS7MFZr+g2wcCfmv/sMpbU9fajwW3qc=; b=OKm7peHnElPdSoyDZ+JXA+x3RqQSdOxUJedlQRpL678delOldbFN5b24VsXiNh8eR3 k/hIIOd6xj0u97gdITY3VIe0ubmTP+t8C17PsUH3jzFyi4Ds7cIQuaKJqJGDTedIjo0P 5xBrfi7UNaj0XYUJiE3KHHZqyPE9nXjHkIgZo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=pLzmE/Qb+mdCKNvfoLiJJh6gEZRSNhkB388j4w9cdGGg2l261fNqtoX0Tzc4lgEaxa QzESQWITWedp/gei+drTdNjprhsWw6rvD03YqTHsIYfrEq8a9UdakQGlWsJWc2Kq4U4T PRXggpAx+ek40XZ1q3GOzzQP+F9CtfnmzcNak= Received: by 10.86.220.9 with SMTP id s9mr1803956fgg.40.1252924094949; Mon, 14 Sep 2009 03:28:14 -0700 (PDT) Received: from gordion.localnet ([85.104.148.246]) by mx.google.com with ESMTPS id l19sm134959fgb.7.2009.09.14.03.28.12 (version=SSLv3 cipher=RC4-MD5); Mon, 14 Sep 2009 03:28:13 -0700 (PDT) From: Caglar Akyuz To: davinci-linux-open-source@linux.davincidsp.com Date: Mon, 14 Sep 2009 13:24:34 +0300 User-Agent: KMail/1.9.51 (KDE/4.0.4; ; ) References: <4feed6860909110437u7cdb5900k68479868f0bc9e49@mail.gmail.com> <2A3DCF3DA181AD40BDE86A3150B27B6B02F6453CD6@dbde02.ent.ti.com> <4feed6860909140309s1cc78067i36c8e1ccfe893f5f@mail.gmail.com> In-Reply-To: <4feed6860909140309s1cc78067i36c8e1ccfe893f5f@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200909141324.34937.caglarakyuz@gmail.com> Cc: yang shaobo Subject: Re: How to disable the signal handler in dsplink X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.4 Precedence: list Reply-To: caglarakyuz@gmail.com List-Id: davinci-linux-open-source.linux.davincidsp.com List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com On Monday 14 September 2009 13:09:28 yang shaobo wrote: > Dear Uppal : > Thanks for your quick reply. > I modified the $(DSPLINK)/config/all/CFG_Linux.c. > I changed the Handle signals for cleanup from "TRUE" to "FALSE". > And , changed NUMSIGNALS from "8u" to "0u". > Then , I recompiled the dsplink , cmem ,dmai , codec_combos, also > gstreamer ( I use gstreamer as my application ). > However , the gstreamer still can not receive signals. > It seemed that nothing is changed. > So, I am confused . > I guess you need to change your codec engine configuration. AFAIK, $(DSPLINK)/config/all/CFG_Linux.c file is not used while using codec engine, instead CE provides its own configuration. It was far easier for me to modify dsplink code for this. Please see the attached patch. I hope this helps, Caglar --- ti-codec-engine-221-r0/codec_engine_2_21/cetools/packages/dsplink/gpp/src/api/Linux/drv_api.c 2008-10-24 22:58:03.000000000 +0300 +++ ti-codec-engine-221-r0/codec_engine_2_21/cetools/packages/dsplink/gpp/src/api/Linux/drv_api_mine.c 2009-07-06 15:45:50.000000000 +0300 @@ -477,7 +477,8 @@ status = DSP_EPOINTER ; SET_FAILURE_REASON ; } - + + DSPLINK_atExitHandler(); TRC_1LEAVE ("DRV_Finalize", status) ; return status ; @@ -1606,7 +1607,7 @@ TRC_1ENTER ("DRV_installCleanupRoutines", linkCfgPtr) ; - if (linkCfgPtr->gppObject->gppOsObject->handleSignals == TRUE) { + if (0 && linkCfgPtr->gppObject->gppOsObject->handleSignals == TRUE) { sigemptyset (&block_mask) ; sigfillset( &block_mask) ; sigInstaller.sa_flags = (SA_RESTART) ; @@ -1619,7 +1620,6 @@ NULL) ; } } - atexit (&DSPLINK_atExitHandler) ; TRC_0LEAVE ("DRV_installCleanupRoutines") ; }