On Thu, 2009-06-11 at 18:32 +0530, Santosh Singh wrote: > -----Original Message----- > From: Steve Chen [mailto:sc...@mvista.com] > Sent: Thursday, June 11, 2009 5:57 PM > To: Santosh Singh > Cc: davinci-linux-open-source@linux.davincidsp.com > Subject: Re: Need help for missing sound after some time in /dev/dsp > > On Thu, 2009-06-11 at 14:17 +0530, Santosh Singh wrote: > > Hi All, > > > > We are writing small application on TI's DM6446 evaluation board. > > > > I am facing sound related problem i.e., with /dev/dsp. > > > > When we are playing some .wav file using na_play ,I could hear the sound > > for a longer period without any problem. > > > > > > > > But from a C routine when we are executing a shell script using system > > call() to play a .wav file continuously for a period of time in a for loop. > > > > After some time around 2-5 min sound goes off, but shell script is still > > being called by c routine and even after reboot sound doesn't come up. > > > > Finally we have to do a hard reset to reboot the system to correct this > > sound problem. > > > > > > > > I don't find any error messages in dmesg. > > > > Even command fuser -v /dev/dsp shows only my application name. > > > > Sample code: > > > > C routine: > > > > > > > > for (int i=0; i< 1000; i++ ) > > > > system ("./na_play tem.wav"); > > > > na_play is the player in current directory and > > > > tem.wav is the .wav file to play. > > > > Please help to find out actual problem and solution if possible. > > > > > > Regards, > > > > Santosh > > > > A few qustions > > 1. Which kernel are you using. > 2. Can you reproduce the problem playing a long sound file? > > I recall reading a bug report sometime ago that start/stop audio > repeatedly can cause audio to stop working which is what you are doing. > > Regards, > Steve > > > Hi Steve, > Thanks for your response. > 1. Kernel version is 2.6.10 montavista-linux > 2. We are not able to reproduce the problem with long file, only with short > file when playing one after the other. i.e. when I try to run a sample file > as mentioned in my previous mail in a loop I find that the sound goes off > after few minutes. > When I do a soft reboot with "reboot" command and try to play any .wav file I > don't get any sound. I need to do hard reboot to fix this issue.
I'm not too familiar with 2.6.10 sound as it has the old OSS instead of ALSA found in later kernels. You may want to consider using a later kernel - either TI LSP2.0/MVL Pro 5.0 or the DaVinci GIT tree. If for some reasons, you are unable to move to newer kernel. Make sure you have all the latest updates. There was a substantial rewrite of DaVinci OSS driver during LSP 1.3 where a bunch of issues were fixed. Regards, Steve > > Thanks in advance. > > > http://www.mindtree.com/email/disclaimer.html _______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source