Skip to content

Commit a9b0238

Browse files
committed
Consume incoming PCM frames
Consume incoming PCM frames and save nothing for debug.
1 parent ecb2614 commit a9b0238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

virtio-snd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,11 +772,11 @@ static int virtio_snd_tx_desc_handler(virtio_snd_state_t *vsnd,
772772
goto early_continue;
773773
}
774774

775-
frame = (virtio_snd_pcm_frame_t *) malloc(sizeof(*frame));
775+
/*frame = (virtio_snd_pcm_frame_t *) malloc(sizeof(*frame));
776776
void *buf = (void *) (base + addr);
777777
frame->buf = (void *) malloc(sizeof(frame->buf) * len);
778778
memcpy(frame->buf, buf, len);
779-
queue_push(&frame->q, frame_q);
779+
queue_push(&frame->q, frame_q);*/
780780
ret_len += len;
781781

782782
early_continue:

0 commit comments

Comments
 (0)