Re: [RFC PATCH 21/27] virtio-snd: Add VIRTIO_SND_R_PCM_STOP handler

2021-04-30 Thread Gerd Hoffmann
> +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

[RFC PATCH 21/27] virtio-snd: Add VIRTIO_SND_R_PCM_STOP handler

2021-04-29 Thread Shreyansh Chouhan
Signed-off-by: Shreyansh Chouhan --- hw/audio/virtio-snd.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/hw/audio/virtio-snd.c b/hw/audio/virtio-snd.c index 65104baba8..8be3fb9bf5 100644 --- a/hw/audio/virtio-snd.c +++ b/hw/audio/virtio-snd.c