alsa-utils/aplay
Peter Ujfalusi 2185bc70a9 aplay: Print '=== PAUSE ===' only if it is supported
Instead of printing the '=== PAUSE ===' unconditionally before calling
do_pause(), move it to the function and only print it if the stream can
be paused.

If the stream cannot be paused that the '=== PAUSE ===' will be replaced
by `PAUSE command ignored (no hw support)` immediately, which is not
observable by users but automation scripts will catch the '=== PAUSE ==='
and might think that the stream is indeed got paused.

Move the print into do_pause() function after the snd_pcm_pause() have
returned without error to make sure it is only printed if the stream is
paused and we are waiting for the pause release from user to proceed.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
2024-07-22 09:03:00 +03:00
..
aplay.1 minor aplay man page correction 2020-10-06 13:19:00 +02:00
aplay.c aplay: Print '=== PAUSE ===' only if it is supported 2024-07-22 09:03:00 +03:00
formats.h aplay: use stdint.h types instead u_int/u_short/u_char 2023-10-17 13:45:42 +02:00
Makefile.am Makefiles - use AM_CPPFLAGS instead INCLUDES 2014-05-07 10:55:59 +02:00