[alsa-devel] Input/output error while playing a file using aplay

Pharaoh . pharaoh137 at gmail.com
Fri Jun 22 22:12:22 CEST 2007


I am testing my audio driver using aplay. I trying to play an audio file using:

#aplay -Dplughw:0,0 --rate=44100 --format=S16 --channels=2 test.wav
 The log is as follows,

snd_card_omap_alsa_open start
snd_card_omap_alsa_open end
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
snd_omap_alsa_hw_params start
snd_omap_alsa_prepare start
snd_omap_alsa_prepare end
snd_omap_alsa_trigger start
audio_start_dma_chain start
audio_start_dma_chain end
omap_start_alsa_sound_dma end
snd_omap_alsa_trigger end
snd_omap_alsa_pointer start
audio_get_dma_pos start
audio_get_dma_pos end

It waits here for sometime and then I get
snd_omap_alsa_trigger starte error: Input/output error

Then the things are wound up as:

audio_stop_dma start
omap_stop_alsa_sound_dma start
omap_stop_alsa_sound_dma end
omap_clear_alsa_sound_dma start
omap_clear_alsa_sound_dma end
snd_omap_alsa_trigger end

snd_omap_alsa_hw_free start
snd_omap_alsa_hw_free end
snd_card_omap_alsa_close start
snd_card_omap_alsa_close end

So basically the problem is in trigger where it waits for something
and then winds up things. Any idea, what could be the reason. I am
thinking it has to do something with
DMA interrupts etc.

More information about the Alsa-devel mailing list