> +static uint32_t virtio_snd_handle_pcm_stop(VirtIOSound *s, > + VirtQueueElement *elem)
Looks very simliar to virtio_snd_handle_pcm_start.
Maybe it makes sense to have an
virtio_snd_handle_pcm_start_stop(..., bool start)
function instead?
take care,
Gerd
