Skip to content

Commit 5f9de5d

Browse files
committed
Set TX read output
1 parent 89d2401 commit 5f9de5d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

virtio-snd.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -758,10 +758,8 @@ static int virtio_snd_tx_desc_handler(virtio_snd_state_t *vsnd,
758758
virtio_snd_pcm_status_t *response =
759759
(virtio_snd_pcm_status_t *) (base + addr);
760760
response->status = VIRTIO_SND_S_OK;
761-
response->latency_bytes =
762-
0; /* TODO: show the actual latency bytes */
763-
*plen = ret_len; /* TODO: set the read length of buffer of
764-
PCM frames */
761+
response->latency_bytes = ret_len;
762+
*plen = sizeof(virtio_snd_pcm_status_t);
765763
fprintf(stderr, "TX response\n");
766764
goto early_continue;
767765
}

0 commit comments

Comments
 (0)