Added warning when using ALSA that suspension of output audio sinks might cause issues.

This commit is contained in:
Michal Feix 2022-08-31 21:36:32 +02:00
parent 7d3c1d100e
commit a801d0b57a
1 changed files with 10 additions and 0 deletions

View File

@ -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
}