From 6b6d5986d70255512db93ab1a3f008a268de39a2 Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Thu, 10 Mar 2022 17:43:12 +1100 Subject: [PATCH] Handle keep_dac_busy correctly if disable_standby_mode is disable_standby_auto. --- activity_monitor.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/activity_monitor.c b/activity_monitor.c index 652d3720..c98bf91a 100644 --- a/activity_monitor.c +++ b/activity_monitor.c @@ -74,11 +74,8 @@ void going_active(int block) { #ifdef CONFIG_DBUS_INTERFACE if (dbus_service_is_running()) shairport_sync_set_disable_standby(SHAIRPORT_SYNC(shairportSyncSkeleton), TRUE); - else - config.keep_dac_busy = 1; -#else - config.keep_dac_busy = 1; #endif + config.keep_dac_busy = 1; } } @@ -101,11 +98,8 @@ void going_inactive(int block) { #ifdef CONFIG_DBUS_INTERFACE if (dbus_service_is_running()) shairport_sync_set_disable_standby(SHAIRPORT_SYNC(shairportSyncSkeleton), FALSE); - else - config.keep_dac_busy = 0; -#else - config.keep_dac_busy = 0; #endif + config.keep_dac_busy = 0; } }