qemu/include/hw/audio
Volker Rümelin 633487df8d hw/audio/virtio-sound: return correct command response size
The payload size returned by command VIRTIO_SND_R_PCM_INFO is
wrong. The code in process_cmd() assumes that all commands
return only a virtio_snd_hdr payload, but some commands like
VIRTIO_SND_R_PCM_INFO may return an additional payload.

Add a zero initialized payload_size variable to struct
virtio_snd_ctrl_command to allow for additional payloads.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-Id: <20240218083351.8524-1-vr_qemu@t-online.de>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2024-03-12 17:56:55 -04:00
..
asc.h m68k: Clean up includes 2024-01-30 21:20:20 +03:00
pcspk.h hw/audio/pcspk: Inline pcspk_init() 2023-10-19 23:13:28 +02:00
soundhw.h hw/audio/soundhw: Clean up global variable shadowing 2023-10-06 13:16:57 +02:00
virtio-snd.h hw/audio/virtio-sound: return correct command response size 2024-03-12 17:56:55 -04:00
wm8750.h Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00