Skip to content

Commit eb9ad37

Browse files
epilysmstsirkin
authored andcommitted
virtio-sound: handle control messages and streams
Receive guest requests in the control (CTRL) queue of the virtio sound device and reply with a NOT SUPPORTED error to all control commands. The receiving handler is virtio_snd_handle_ctrl(). It stores all control messages in the queue in the device's command queue. Then it calls virtio_snd_process_cmdq() to handle each message. The handler is process_cmd() which replies with VIRTIO_SND_S_NOT_SUPP. Based-on: OpenSynergy/qemu@5a2f350 Signed-off-by: Igor Skalkin <[email protected]> Signed-off-by: Anton Yakovlev <[email protected]> Signed-off-by: Manos Pitsidianakis <[email protected]> Reviewed-by: Alex Bennée <[email protected]> Tested-by: Alex Bennée <[email protected]> Message-Id: <3224aff87e7c4f2777bfe1bbbbca93b72525992c.1698062525.git.manos.pitsidianakis@linaro.org> Acked-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 2426908 commit eb9ad37

File tree

3 files changed

+595
-9
lines changed

3 files changed

+595
-9
lines changed

hw/audio/trace-events

+4
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@ virtio_snd_vm_state_running(void) "vm state running"
4747
virtio_snd_vm_state_stopped(void) "vm state stopped"
4848
virtio_snd_realize(void *snd) "snd %p: realize"
4949
virtio_snd_unrealize(void *snd) "snd %p: unrealize"
50+
virtio_snd_handle_ctrl(void *vdev, void *vq) "snd %p: handle ctrl event for queue %p"
51+
virtio_snd_handle_code(uint32_t val, const char *code) "ctrl code msg val = %"PRIu32" == %s"
52+
virtio_snd_handle_chmap_info(void) "VIRTIO_SND_CHMAP_INFO called"
53+
virtio_snd_handle_event(void) "event queue callback called"

0 commit comments

Comments
 (0)