This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM8168: alsa playback error

Other Parts Discussed in Thread: TLV320AIC3106

CPU : DM8168

OS : Linux 2.6.37

SDK: DVRRDK_03.00.00.00

CODEC: tlv320aic3106

Hi,

    I'm trying to get audio working well on a 8168evm.   When I use alsa-lib to record audio and then play it back in real time, capture working ok but playback return error as bellow.

Somtimes when i test above, there are many underrun reported from playback 。What is the problem?


++++++++ Audio_DrvOpen start! ++++++++AUDIO Rate requested 44100Hz, get 44100Hz)

AUDIO CAPTURE: period size = 1000 frames

AUDIO CAPTURE: period time = 22675 us

AUDIO CAPTURE: buffer_size = 16000

++++++++ Audio_DrvOpen end! ++++++++ 

audio play init start

AUDIO_PLAY >> opened device

AUDIO PLAYBACK: period size = 1000 frames

AUDIO PLAYBACK: period time = 22675 us

AUDIO PLAYBACK: buffer_size = 16000

audio play init end!

AUDIO >> audio play wait............

 

Audio_playMain: audio play pcm 174000

hwptr_update: pcmC0D0p:0: pos=36/1000/16000, hwptr=36/0/36/0

hwptr_update: pcmC0D0p:0: pos=337/1000/16000, hwptr=301/36/337/0 

hwptr_update: pcmC0D0p:0: pos=662/1000/16000, hwptr=325/337/662/0

hwptr_update: pcmC0D0p:0: pos=979/1000/16000, hwptr=317/662/979/0

hwptr_update: pcmC0D0p:0: pos=1248/1000/16000, hwptr=2/1246/1248/0

hwptr_update: pcmC0D0p:0: pos=1522/1000/16000, hwptr=274/1248/1522/0

hwptr_update: pcmC0D0p:0: pos=1802/1000/16000, hwptr=280/1522/1802/0

hwptr_update: pcmC0D0p:0: pos=2083/1000/16000, hwptr=2/2081/2083/0

hwptr_update: pcmC0D0p:0: pos=2356/1000/16000, hwptr=273/2083/2356/0

hwptr_update: pcmC0D0p:0: pos=2637/1000/16000, hwptr=281/2356/2637/0

hwptr_update: pcmC0D0p:0: pos=2918/1000/16000, hwptr=281/2637/2918/0

hwptr_update: pcmC0D0p:0: pos=3199/1000/16000, hwptr=2/3197/3199/0

hwptr_update: pcmC0D0p:0: pos=3472/1000/16000, hwptr=273/3199/3472/0

hwptr_update: pcmC0D0p:0: pos=3753/1000/16000, hwptr=281/3472/3753/0

hwptr_update: pcmC0D0p:0: pos=4034/1000/16000, hwptr=2/4032/4034/0

hwptr_update: pcmC0D0p:0: pos=4307/1000/16000, hwptr=273/4034/4307/0

hwptr_update: pcmC0D0p:0: pos=4588/1000/16000, hwptr=281/4307/4588/0

hwptr_update: pcmC0D0p:0: pos=4868/1000/16000, hwptr=280/4588/4868/0

hwptr_update: pcmC0D0p:0: pos=5149/1000/16000, hwptr=2/5147/5149/0

hwptr_update: pcmC0D0p:0: pos=5421/1000/16000, hwptr=272/5149/5421/0

hwptr_update: pcmC0D0p:0: pos=5702/1000/16000, hwptr=281/5421/5702/0

AUDIO >> error from writei: Resource temporarily unavailable

 AUDIO >>  PLAYBACK ERROR <174000 bytes> Resource temporarily unavailable, playback wont continue...