We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 879fdd4 commit 85c06d7Copy full SHA for 85c06d7
virtio-snd.c
@@ -858,9 +858,9 @@ static void __virtio_snd_frame_enqueue(void *payload,
858
props->ring.prod.tail = prod_next;
859
860
uint32_t buffer_bytes = props->pp.buffer_bytes;
861
- if (mask + cons_tail - prod_next >= buffer_bytes) {
+ if (prod_next - cons_tail >= buffer_bytes) {
862
fprintf(stderr, "buffer ready for %" PRIu32 " cons_tail %" PRIu32 " prod_next %" PRIu32 "\n",
863
- mask + cons_tail - prod_next, cons_tail, prod_next);
+ prod_next - cons_tail, cons_tail, prod_next);
864
props->ring.buf_ev_notity++;
865
pthread_cond_signal(&props->ring.readable);
866
}
0 commit comments