All of lore.kernel.org
 help / color / mirror / Atom feed
* aplay: avoid any further PCM writing if in abort
       [not found] <1616152904419620037-webhooks-bot@alsa-project.org>
@ 2021-03-19 11:21 ` GitHub pull_request - opened
  0 siblings, 0 replies; only message in thread
From: GitHub pull_request - opened @ 2021-03-19 11:21 UTC (permalink / raw)
  To: alsa-devel

alsa-project/alsa-utils pull request #81 was opened from aditpape:

Terminating stream with CTRL-C will set in_aborting flag which is used to leave any
write/read loop on the ALSA device.
After ending the read/write loop aplay tries to drain the stream which is not required and can also lead to malfunctions:
-If user interrupts a blocked/non responsive PCM (e.g. usb uac2 gadget which does not consume data
due to stream stopped by host) it will successfully terminate the write loop but will hang again in drain call.
This would require to hit CTRL-C again to unblock which should be avoided.
Aplay currently anyhow allows signal handler to get invoked only once.

Signed-off-by: Andreas Pape <apape@de.adit-jv.com>

Request URL   : https://github.com/alsa-project/alsa-utils/pull/81
Patch URL     : https://github.com/alsa-project/alsa-utils/pull/81.patch
Repository URL: https://github.com/alsa-project/alsa-utils

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-19 11:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1616152904419620037-webhooks-bot@alsa-project.org>
2021-03-19 11:21 ` aplay: avoid any further PCM writing if in abort GitHub pull_request - opened

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.