Skip to contentSkip to conversation

ASoC : underrun messages

DISCUSSION Naveen Krishna Ch 2 participants 3 messages Jan 28, 2009

lore
Share & tools
lore
#0 lore raw

Hello,

I am experiencing some audio issue While playing using aplay
some times i see the following messages. (Sorry if the messages are too long)

[root@OMAP3 audio_samples]#aplay sample_96K.wav
Playing WAVE 'sample_96K.wav' : Signed 16 bit Little Endian, Rate 96000 Hz, Stereo
underrun!!! (at least 1307.251 ms long)
underrun!!! (at least 554.656 ms long)
underrun!!! (at least 988.861 ms long)
underrun!!! (at least 554.443 ms long)
underrun!!! (at least 987.670 ms long)
underrun!!! (at least 995.484 ms long)
^CAborted by signal Interrupt...

[root@OMAP3 audio_samples]#aplay sample_48K.wav
Playing WAVE 'sample_48K.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
underrun!!! (at least 69.306 ms long)
underrun!!! (at least 130.981 ms long)
underrun!!! (at least 205.750 ms long)
underrun!!! (at least 178.100 ms long)
underrun!!! (at least 146.057 ms long)
^CAborted by signal Interrupt...

[root@OMAP3 audio_samples]#aplay sample_8K.wav
Playing WAVE 'sample_8K.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
^C^[[AAborted by signal Interrupt...

[root@OMAP3 audio_samples]#aplay sample_22K.wav
Playing WAVE 'sample_22K.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo
^CAborted by signal Interrupt...

[root@OMAP3 audio_samples]#aplay sample_44K.wav
Playing WAVE 'sample_44K.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
underrun!!! (at least 1602.264 ms long)
underrun!!! (at least 873.078 ms long)
underrun!!! (at least 1693.268 ms long)
underrun!!! (at least 870.483 ms long)
underrun!!! (at least 540.466 ms long)
underrun!!! (at least 1122.711 ms long)

I am using OMAP3430 + twl4030 ASoC audio codec drivers.

I understand that the prints are coming from alsa-lib aplay.c file As a result of the client not reading the buffers fast enough.

These are not conditionally reproducible, i see them uncertainly.

I saw the same isue with 2.6.26 some one suggested me to find if there is any bug in the asoc layer.
Now i am using 2.6.28 kernel from kernel.org but still got the same

Can any one suggest me a way to find a fix for this..

Signature · 2 lines
Cheers
(: Naveen Krishna Ch :)
#1 lore raw
Quoted 48 lines · Naveen Krishna Ch

Hello,

I am experiencing some audio issue While playing using aplay
some times i see the following messages. (Sorry if the messages are too long)

[root@OMAP3 audio_samples]#aplay sample_96K.wav
Playing WAVE 'sample_96K.wav' : Signed 16 bit Little Endian, Rate 96000
Hz, Stereo
underrun!!! (at least 1307.251 ms long)
underrun!!! (at least 554.656 ms long)
underrun!!! (at least 988.861 ms long)
underrun!!! (at least 554.443 ms long)
underrun!!! (at least 987.670 ms long)
underrun!!! (at least 995.484 ms long)
^CAborted by signal Interrupt...

[root@OMAP3 audio_samples]#aplay sample_48K.wav
Playing WAVE 'sample_48K.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
underrun!!! (at least 69.306 ms long)
underrun!!! (at least 130.981 ms long)
underrun!!! (at least 205.750 ms long)
underrun!!! (at least 178.100 ms long)
underrun!!! (at least 146.057 ms long)
^CAborted by signal Interrupt...

[root@OMAP3 audio_samples]#aplay sample_8K.wav
Playing WAVE 'sample_8K.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
^C^[[AAborted by signal Interrupt...

[root@OMAP3 audio_samples]#aplay sample_22K.wav
Playing WAVE 'sample_22K.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo
^CAborted by signal Interrupt...

[root@OMAP3 audio_samples]#aplay sample_44K.wav
Playing WAVE 'sample_44K.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
underrun!!! (at least 1602.264 ms long)
underrun!!! (at least 873.078 ms long)
underrun!!! (at least 1693.268 ms long)
underrun!!! (at least 870.483 ms long)
underrun!!! (at least 540.466 ms long)
underrun!!! (at least 1122.711 ms long)

Quoted 3 lines

I am using OMAP3430 + twl4030 ASoC audio codec drivers.

I understand that the prints are coming from alsa-lib aplay.c file

sorry mistaken the print is from .alsa-lib/src/pcm/pcm.c

Quoted 14 lines

As a result of the client not reading the buffers fast enough.

These are not conditionally reproducible, i see them uncertainly.

I saw the same isue with 2.6.26 some one suggested me to find if there is any bug in the asoc layer.
Now i am using 2.6.28 kernel from kernel.org but still got the same

Can any one suggest me a way to find a fix for this.. --
Cheers
(: Naveen Krishna Ch :)

Signature · 2 lines
Cheers
(: Naveen Krishna Ch :)
#2 lore raw
In reply to Naveen Krishna Ch
Quoted 5 lines · Naveen Krishna Ch

I saw the same isue with 2.6.26 some one suggested me to find if there is any bug in the asoc layer.
Now i am using 2.6.28 kernel from kernel.org but still got the same

Can any one suggest me a way to find a fix for this..

As discussed the last time you reported this you should check to ensure that aplay is able to read the data it is trying to play fast enough to supply it to the audio drivers. Storing the audio files in a ramdisk should do the trick.