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 e2f3b40 commit dc4c861Copy full SHA for dc4c861
virtio-snd.c
@@ -16,6 +16,13 @@
16
17
#define PRIV(x) ((virtio_snd_config_t *) x->priv)
18
19
+enum {
20
+ VSND_QUEUE_CTRL = 0,
21
+ VSND_QUEUE_EVT = 1,
22
+ VSND_QUEUE_TX = 2,
23
+ VSND_QUEUE_RX = 3,
24
+};
25
+
26
/* supported virtio sound version */
27
enum {
28
VSND_FEATURES_0 = 0,
@@ -707,7 +714,11 @@ static bool virtio_snd_reg_write(virtio_snd_state_t *vsnd,
707
714
return true;
708
715
case _(QueueNotify):
709
716
if (value < ARRAY_SIZE(vsnd->queues)) {
710
- virtio_queue_notify_handler(vsnd, value);
717
+ switch (value) {
718
+ case VSND_QUEUE_CTRL:
719
+ virtio_queue_notify_handler(vsnd, value);
720
+ break;
721
+ }
711
722
} else {
712
723
virtio_snd_set_fail(vsnd);
713
724
}
0 commit comments