From 36386ac7f4e5a8101bae87a75270312cf3ce8db5 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 29 Jul 2024 19:10:43 +0200 Subject: [PATCH] Pro Audio Spectrum 16: Do not enable the timeout watchdog timer if (val & 0x3f) is zero, fixes some hangs. --- src/sound/snd_pas16.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sound/snd_pas16.c b/src/sound/snd_pas16.c index d88a498d5..80a2c9a7b 100644 --- a/src/sound/snd_pas16.c +++ b/src/sound/snd_pas16.c @@ -1504,7 +1504,8 @@ pas16_out(uint16_t port, uint8_t val, void *priv) pas16->timeout_count = val; if (timer_is_enabled(&pas16->scsi_timer)) timer_disable(&pas16->scsi_timer); - timer_set_delay_u64(&pas16->scsi_timer, (val & 0x3f) * PASSCSICONST); + if ((val & 0x3f) > 0x00) + timer_set_delay_u64(&pas16->scsi_timer, (val & 0x3f) * PASSCSICONST); } break;