From c79074c980b4a69c6facb180b3d0c2e1f5b6b4ef Mon Sep 17 00:00:00 2001 From: SarahW Date: Wed, 10 Apr 2019 20:31:31 +0100 Subject: [PATCH] Fix timer bug in AudioPCI. --- src/sound_audiopci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound_audiopci.c b/src/sound_audiopci.c index e9d4ef7..b56b510 100644 --- a/src/sound_audiopci.c +++ b/src/sound_audiopci.c @@ -1224,7 +1224,7 @@ static void es1371_speed_changed(void *p) { es1371_t *es1371 = (es1371_t *)p; - es1371->dac[1].latch = (int)((double)TIMER_USEC * (1000000.0 / 48000.0)); + es1371->dac[1].latch = (uint64_t)((double)TIMER_USEC * (1000000.0 / 48000.0)); } void es1371_add_status_info_dac(es1371_t *es1371, char *s, int max_len, int dac_nr)