Handle keep_dac_busy correctly if disable_standby_mode is disable_standby_auto.

This commit is contained in:
Mike Brady
2022-03-10 17:43:12 +11:00
parent 0b4b4a73fc
commit 6b6d5986d7
+2 -8
View File
@@ -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;
}
}