Hi Mohamed,
Thanks for response.
But I am able to play for a longer period without any problem.
My problem is with start stop many time the player /dev/dsp sound goes off 
which comes back after hard (hardware) reboot only not with software reboot 
command.
I tried out the entire sampling rate but issue us the same.
I am using montavista linux kernel 2.6.10.
I want to try out with latest kernel so please help me to find out the latest 
montavista kernel and the location to download?


Regards,
Santosh

________________________________
From: Mohamed AbdElwahed [mailto:[email protected]]
Sent: Monday, June 15, 2009 11:53 AM
To: Santosh Singh
Cc: Davinci Mailing list
Subject: RE: Need help for missing sound after some time in /dev/dsp

hi all,
i faced similar problem before, and i work around by forcing the player to play 
fixed sample rate. or to convert the media file to certain sample rate. by 
expermind i found that you can play 44100, 48000, 32000 for any period of time 
without any sound drop, try this and kindly inform me if still you have the 
problem.
--------------------------------------
 Mohamed AbdElwahed Ibrahim [http://graphics.hotmail.com/i.p.emthup.gif]






> From: [email protected]
> To: [email protected]
> Date: Mon, 15 Jun 2009 09:45:26 +0530
> CC: [email protected]
> Subject: RE: Need help for missing sound after some time in /dev/dsp
>
>
>
> -----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
> >
&g t; > 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 L SP2.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
>
> _______________________________________________
> Davi nci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy! Try 
it!<http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us>

________________________________
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

Reply via email to