Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* alsa-utils aplay/arecord can't be interrupted when streaming is not active
@ 2014-04-16  7:54 jiwang
  2014-04-16  8:06 ` Jaroslav Kysela
  0 siblings, 1 reply; 7+ messages in thread
From: jiwang @ 2014-04-16  7:54 UTC (permalink / raw)
  To: alsa-devel, perex

Hi All

With latest 1.0.27.2 alsa-utils, I am facing problem to interrupt 
aplay/arecord
when the streaming is not active (no data can be written to or read from 
cards)
further more, if I start aplay/arecord with "-N" nonblocking option,
then aplay/arecord can never exit, unless I do a system reset


I found if I revert the following patch

/commit 1d0042d7e948815f8015c62bc53143eed3b83206//
//Author: Jaroslav Kysela <perex@perex.cz>//
//Date:   Mon Apr 8 13:30:54 2013 +0200//
//
//    aplay/arecord: change the interrupt handling using snd_pcm_abort()//
////
//    It is required (exclude the fatal SIGABRT) to call snd_pcm_close() 
and//
//    the end of work (outside of the interrupt handler). Use new 
snd_pcm_abort()//
//    function to inform alsa-lib to not ignore EINTR and move the 
in_aborting//
//    variable to the global scope to be checked in the i/o loops.//
////
//    Signed-off-by: Jaroslav Kysela <perex@perex.cz>//
/
http://git.alsa-project.org/?p=alsa-utils.git;a=commit;h=1d0042d7e948815f8015c62bc53143eed3b83206

then aplay/arecord can be interrupted correctly

Is it a defect in aplay.c or did I miss something?

Thanks,
Jiada

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-04-21  3:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-16  7:54 alsa-utils aplay/arecord can't be interrupted when streaming is not active jiwang
2014-04-16  8:06 ` Jaroslav Kysela
2014-04-16  8:34   ` jiwang
2014-04-16  8:58     ` Jaroslav Kysela
2014-04-16 12:00       ` Jiada Wang
2014-04-17  9:03       ` jiwang
2014-04-21  3:01       ` Jiada Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox