Re: [PATCH v10 09/11] virtio-sound: implement audio output (TX)

2023-10-03 Thread Philippe Mathieu-Daudé
Hi Manos, On 29/9/23 20:59, Manos Pitsidianakis wrote: On Fri, 29 Sep 2023 17:08, Emmanouil Pitsidianakis wrote: Handle output IO messages in the transmit (TX) virtqueue. [..] +    if (!stream->active) { +    /* Stream has stopped, so do not perform AUD_write. */ +   

Re: [PATCH v10 09/11] virtio-sound: implement audio output (TX)

2023-09-29 Thread Manos Pitsidianakis
On Fri, 29 Sep 2023 17:08, Emmanouil Pitsidianakis wrote: Handle output IO messages in the transmit (TX) virtqueue. [..] +if (!stream->active) { +/* Stream has stopped, so do not perform AUD_write. */ +goto return_tx_buffer; +} [..]

[PATCH v10 09/11] virtio-sound: implement audio output (TX)

2023-09-29 Thread Emmanouil Pitsidianakis
Handle output IO messages in the transmit (TX) virtqueue. It allocates a VirtIOSoundPCMBuffer for each IO message and copies the data buffer to it. When the IO buffer is written to the host's sound card, the guest will be notified that it has been consumed. The lifetime of an IO message is: 1.