-----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. 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