While recording from mono codec twice as much data is received

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,
  I am able to do playback from 8 kHz samples to 48 kHz samples properly.
  However, when recording using the exact same setup for the data interface I am not getting favorable results.  For instance, if I record for 5 seconds I get output in a file for 10 seconds of audio (arecord or sox).  This results in my recording being stretched.  I change the DAI to stereo capture and record two channels and the recorded output comes back correctly (5 seconds recorded is 5 seconds).
  I'm using a wolfsom WM8974.  I'm developing using ASoC framework (can I call it that?) reusing the WM8974 codec from the Linux GIT repository.  The development is using a i.MX27.  Data interface is a SSI bus in DSP mode.  I believe my PCM code is correct since it works for playback.
  I'm stuck now.  From my understanding the clocks are setup the same way for both playback and capture.  Has anyone ran into this problem before?  The WM8974 is a mono codec so I should not have to set the DAI to stereo in order to capture data properly.
  Any help is appreciated.
Best regards,Louis
_________________________________________________________________
Attention all humans. We are your photos. Free us.
http://go.microsoft.com/?linkid=9666046
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux