There was no space when the buffer was completely empty...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23122 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-12-13 19:27:05 +00:00
parent b879372352
commit 81abd45c3e
@@ -112,7 +112,7 @@ QueueCommands::MakeSpace(uint32 size)
uint32 head = read32(fRingBuffer.register_base + RING_BUFFER_HEAD)
& INTEL_RING_BUFFER_HEAD_MASK;
if (head < fRingBuffer.position)
if (head <= fRingBuffer.position)
head += fRingBuffer.size;
fRingBuffer.space_left = head - fRingBuffer.position;