On Thu, 2009-03-12 at 18:55 +0530, DHAVAL LAKKAD wrote:
> Hi,
> 
> Thank you very much for your reply.
> 
> I would like to inform you that I am using OSS instead of ALSA. And in OSS,
> I have found this issue.

I'm not familiar with the OSS driver.  I suspect the reason mono plays
much faster is because the mono data (1 channel) is being pumped out on
both left and right channels, so it plays twice as fast.  It would
probably be faster and easier to get a newer kernel that has ALSA driver
than hacking OSS driver to make it work.


> 
> Regards,
> Dhaval Lakkad
> 
> 
> > On Thu, 2009-03-12 at 08:04 -0400, Steve Chen wrote:
> >> On Thu, 2009-03-12 at 18:26 +0530, DHAVAL LAKKAD wrote:
> >> > Hi,
> >> >
> >> > I am using dm6467 with AIC34 audio codec.
> >> >
> >> > I tried to run an application which reads the raw data from file and 
> >> > writes
> >> it
> >> > to sound device. The sample rate I am setting in application is 44100. 
> >> > Now,
> >> if I
> >> > read STEREO file (with sample rate 44100), then I can get the proper 
> >> > output.
> >> But
> >> > if I read MONO file (with sample rate 44100), then the audio in output 
> >> > comes
> >> > very fast. In case I set half sample rate (22050) in application, then 
> >> > MONO
> >> file
> >> > (with sample rate 44100) is played properly in the output.
> >> >
> >> > I have made following changes in "sound/oss/dm646x/davinci-audio-aic32.c"
> >> >
> >> > 1). Register 7 --- > 0x9E : To select Fs(ref) = 44.1 KHz and to make left
> >> and
> >> > right DAC play mono mix of left and right input channel.
> >> >
> >> >
> >> > So, what other changes are to be made in AIC34 or in application to play 
> >> > the
> >> > MONO file with the sample rate set in application same as that of MONO 
> >> > file.
> >>
> >> aplay should take care of the conversion automatically.  I hope you are
> >> using a kernel with ALSA driver instead of OSS.
> >
> > Well, I should say the plug-in lay of the ALSA does the actual
> > conversion which is utilized by aplay.
> >
> >>
> >> >
> >> > Thanks in advance.
> >> >
> >> > Regards,
> >> >
> >> > Dhaval Lakkad
> >> >
> >
> >
> >
> > Email Scanned for Virus & Dangerous Content by : www.CleanMailGateway.com
> >
> >
> 
> 
> -- 
> THANK YOU,
> DHAVAL LAKKAD
> EMBEDDED DEPT.
> KB-301
> ext. no. 312
> 


_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to