Skip to content

Commit 03929f4

Browse files
committed
Get RX virtq element count
1 parent d959a2e commit 03929f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

virtio-snd.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ static uint32_t flush_stream_id = 0;
516516

517517
VSND_GEN_TX_QUEUE_HANDLER(normal, 1);
518518
VSND_GEN_TX_QUEUE_HANDLER(flush, 0);
519-
#if 0
519+
#if 1
520520
#define VSND_GEN_RX_QUEUE_HANDLER(NAME_SUFFIX, WRITE) \
521521
static int virtio_snd_rx_desc_##NAME_SUFFIX##_handler( \
522522
virtio_snd_state_t *vsnd, const virtio_snd_queue_t *queue, \
@@ -562,6 +562,7 @@ VSND_GEN_TX_QUEUE_HANDLER(flush, 0);
562562
uintptr_t base = (uintptr_t) vsnd->ram; \
563563
uint32_t ret_len = 0; \
564564
uint8_t bad_msg_err = 0; \
565+
fprintf(stderr, "*** rx_normal cnt %d\n", cnt); \
565566
list_for_each_entry (node, &q, q) { \
566567
uint32_t addr = node->vq_desc.addr; \
567568
uint32_t len = node->vq_desc.len; \
@@ -629,7 +630,7 @@ VSND_GEN_TX_QUEUE_HANDLER(flush, 0);
629630

630631
VSND_GEN_RX_QUEUE_HANDLER(normal, 1);
631632
#endif
632-
#if 1
633+
#if 0
633634
static int virtio_snd_rx_desc_normal_handler(virtio_snd_state_t *vsnd,
634635
const virtio_snd_queue_t *queue,
635636
uint32_t desc_idx,

0 commit comments

Comments
 (0)