File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -772,18 +772,15 @@ 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));
776- void *buf = (void *) (base + addr);
777- frame->buf = (void *) malloc(sizeof(frame->buf) * len);
778- memcpy(frame->buf, buf, len);
779- queue_push(&frame->q, frame_q);*/
775+ /* TODO: ring buffer implementation here */
780776 ret_len += len ;
781777
782778 early_continue :
783779 idx ++ ;
784780 }
785781
786782 /* Tear down the descriptor list and free space. */
783+ /* TODO: remove this part as we are going to use ring buffer */
787784 idx = 0 ;
788785 virtq_desc_queue_node_t * tmp = NULL ;
789786 queue_for_each_entry_safe (node , tmp , & q , q )
You can’t perform that action at this time.
0 commit comments