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") ;
 }

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to