-----Original Message----- From: Steve Chen [mailto:[email protected]] Sent: Thursday, June 11, 2009 10:21 PM To: Santosh Singh Cc: [email protected] Subject: RE: Need help for missing sound after some time in /dev/dsp
On Thu, 2009-06-11 at 18:32 +0530, Santosh Singh wrote: > -----Original Message----- > From: Steve Chen [mailto:[email protected]] > Sent: Thursday, June 11, 2009 5:57 PM > To: Santosh Singh > Cc: [email protected] > 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 Hi Steve, Thanks for your response. As you suggested to use the latest kernel rather than using 2.6.10 for /dev/dsp sound missing problem when I do multiple time start and stop sound. Can I get some other solution may be some patch available for /dev/dsp kernel 2.6.10 or some modification in sound code so that I can build kernel here to fix the above issue? Thanks in advance. Regards, Santosh http://www.mindtree.com/email/disclaimer.html _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
