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. 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 -- _____________________________________________________________________ Disclaimer: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated.Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. __________________________________________________________________________ _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
