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.

> 
> Thanks in advance.
> 
> Regards,
> 
> Dhaval Lakkad
> 


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

Reply via email to