![](https://secure.gravatar.com/avatar/a3dd0965b05b71c3dff6eb289eb43e59.jpg?s=120&d=mm&r=g)
15 Nov
2007
15 Nov
'07
9:34 a.m.
On Wed, 14 Nov 2007, Timur Tabi wrote:
In my ISR, I call snd_pcm_period_elapsed() to tell it that a period has elapsed. I can also detect if playback has aborted for some reason (e.g. DMA controller has died). Is there a function I can call in my ISR to tell ALSA to abort playback or capture?
Yes, call snd_pcm_stop() function. The call must be protected with snd_pcm_stream_lock... See to i2c/other/ak4117.c for an example.
Jaroslav
----- Jaroslav Kysela perex@perex.cz Linux Kernel Sound Maintainer ALSA Project