From a801d0b57a6fe6da40e1ccd4efccc7179fe0b4fd Mon Sep 17 00:00:00 2001 From: Michal Feix Date: Wed, 31 Aug 2022 21:36:32 +0200 Subject: [PATCH] Added warning when using ALSA that suspension of output audio sinks might cause issues. --- src/xmit.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/xmit.c b/src/xmit.c index 6a725a7..3800127 100644 --- a/src/xmit.c +++ b/src/xmit.c @@ -913,9 +913,19 @@ static void xmit_ax25_frames (int chan, int prio, packet_t pp, int max_bundle) /* Looks like a bug with the RPi audio system. Never an issue with Ubuntu. */ /* This runs over randomly sometimes. TODO: investigate more fully sometime. */ + #ifndef __arm__ text_color_set(DW_COLOR_ERROR); dw_printf ("Transmit timing error: PTT is on %d mSec too long.\n", -wait_more); + + /* This also happens with recent Linux distributions with PipeWire audio subsystem */ + /* where Wireplumber in its default setting turns off the audio output sink after */ + /* several seconds of inactivity, which results in slight delay while warming up again. */ + /* See: https://unix.stackexchange.com/questions/676846/how-do-i-disable-audio-sink-suspend-on-idle-using-wireplumber-in-fedora-35-so-th */ +#if USE_ALSA + dw_printf ("If using PipeWIre, make sure your output sinks are not being suspended for inactivity.\n"); +#endif + #endif }