From 3c66f47b1eed5c73ae9bc6283793475fb9e358be Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Sun, 28 Dec 2014 12:37:33 +0000 Subject: [PATCH] Infinity: return proper size for ring buffers git-svn-id: svn://kolibrios.org@5273 a494cfbc-eb01-0410-851d-a64ba20cac60 --- drivers/audio/infinity/infinity.asm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/audio/infinity/infinity.asm b/drivers/audio/infinity/infinity.asm index 00493d2a36..e9bddc323b 100644 --- a/drivers/audio/infinity/infinity.asm +++ b/drivers/audio/infinity/infinity.asm @@ -303,7 +303,13 @@ align 4 align 4 .snd_getbuffsize: + test [edx+STREAM.format], PCM_RING mov eax, [edx+STREAM.in_size] + jz @F + + mov eax, [edx+STREAM.r_size] + add eax, eax +@@: mov ecx, [edi+IOCTL.output] mov ecx, [ecx] mov [ecx], eax