Does process() return an error or does it crash?
 
If it returns an error, there is often an "extendedError" field that
contains more details - and often the codec data sheets provide details
for codec-specific extendedError values.
 
If it crashes... that's a bit tougher, but here are some ideas.
 
We've had a recent influx of support calls where it was simply just the
DSP-side codec over-running its stack and crashing - the solution is to
reconfigure the codec in the server with a larger stack and rebuild the
Server:
http://wiki.davincidsp.com/index.php?title=Stack_issues
 
[ This is sometimes very easy to identify if you can connect to the DSP
using CCS and look at all the BIOS tasks and their stack usages.  If the
stack is blown, the task will be highlighted in red. ]
 
Another common 'hang' failure is if the codec _requires_ internal memory
but doesn't get it (because, perhaps, there was none left, or the Server
wasn't configured correctly).  If the codec doesn't get internal memory
- yet requires it, it may hang as some DMA-related APIs require access
to internal memory.  Codecs that can't run without internal _should_ be
ensuring the memory they receive is internal... but some don't and will
just hang.
 
[ Again, connecting to the DSP using CCS is often helpful to identify
this as well - if the DSP is spinning in ACPY3_wait(), this often points
at the "codec didn't get internal memory but needed it" problem. ]
 
Could 'simply' be a bug in the codec that's crashing, too.  Probably
want to check with your codec vendor and see if there are any known
issues or updates available.
 
Chris


________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Vijay Manohar Dogiparthi
        Sent: Friday, March 21, 2008 12:42 AM
        To: Davinci-linux-open-source@linux.davincidsp.com
        Subject: When a decoder process fails
        
        
        Sir,
        
        I want to know when a module's *_process() function fails. 
        
        Opening the Codec Engine, Creation of algorithm instance,
Control the behavior the way the algorithm instance runs,... were
successful even. When I was decoding, the process function of a
algorithm fails.. Please through some light on, the possible conditions
for it to fail. How to set the values to the parameters of this
function. 
        
        Help is highly appreciated.
        
        Regards,
        Vijay Manohar
        

________________________________

        Why delete messages? Unlimited storage is just a click away.
<http://in.rd.yahoo.com/tagline_mail_1/*http://help.yahoo.com/l/in/yahoo
/mail/yahoomail/tools/tools-08.html/> 

_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to