Dig archives (old posts).

This problem has been reported earlier and fixed too

Thanks

--- Andy Ngo <[EMAIL PROTECTED]> wrote:

> 
> 
> Hi,
> 
> I wonder if anyone can help me.  I was able to use
> sound driver (GIT kernel 2.6.20 version) in full
> duplex mode on the DVEVM board with any problems (I
> can just do cat /dev/dsp > /dev/dsp and let it run
> forever without any issues).  However, when I do
> this on our custom Davinci (which uses exactly the
> same codec (AIC33) as the DVEVM), it would stop
> after 3 to 5 minutes and won't work again until I
> reboot the custom board.  I wrote a simple full
> duplex program:
> 
>     // init dsp
>     openDsp();
> 
>     while (1)
>     {
>         bytes = read(dspFd, (char *)buffer,
> fragsize);
>         if (bytes < 0)
>        
>      printf("error reading from mic\n");
>         else
>             printf("read %d bytes\n", bytes);
>         wbytes = write(dspFd, buffer, fragsize);
>         if (wbytes < 0)
>             printf("error writing to speaker\n");
>         else
>             printf("wrote %d bytes\n", wbytes);
>     }
> 
> and it runs fine on the DVEVM.  On our Davinci
> custom board, it would run for around 3-5 minutes
> and then seems to stop on the read (sampling from
> the mic); I don't get any errors but the read never
> returns.  I'm trying to trace the problem; I assume
> the code is in sound/oss/davinci-audio-dma-intfc.c. 
> Can anyone please recommend how I go about fixing
>  this issue?  Thanks.
> 
> Regards,
> Andy
> 
> 
> 
> 
> 
> > _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
>
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> 



       
____________________________________________________________________________________
Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to