Re: [PATCH v8 10/12] virtio-sound: implement audio output (TX)

2023-09-05 Thread Volker Rümelin
Am 04.09.23 um 23:34 schrieb Volker Rümelin: Am 04.09.23 um 12:34 schrieb Manos Pitsidianakis: On Mon, 04 Sep 2023 13:26, Philippe Mathieu-Daudé wrote: +/* + * AUD_* output callback. + * + * @data: VirtIOSoundPCMStream stream + * @available: number of bytes that can be written with

Re: [PATCH v8 10/12] virtio-sound: implement audio output (TX)

2023-09-04 Thread Volker Rümelin
Am 04.09.23 um 12:34 schrieb Manos Pitsidianakis: On Mon, 04 Sep 2023 13:26, Philippe Mathieu-Daudé wrote: +/* + * AUD_* output callback. + * + * @data: VirtIOSoundPCMStream stream + * @available: number of bytes that can be written with AUD_write() + */ +static void

Re: [PATCH v8 10/12] virtio-sound: implement audio output (TX)

2023-09-04 Thread Philippe Mathieu-Daudé
On 4/9/23 12:34, Manos Pitsidianakis wrote: On Mon, 04 Sep 2023 13:26, Philippe Mathieu-Daudé wrote:   /* - * Handles VIRTIO_SND_R_PCM_RELEASE. Releases the buffer resources allocated to - * a stream. + * Returns the number of I/O messages that are being processed. + * + * @stream:

Re: [PATCH v8 10/12] virtio-sound: implement audio output (TX)

2023-09-04 Thread Manos Pitsidianakis
On Mon, 04 Sep 2023 13:26, Philippe Mathieu-Daudé wrote: /* - * Handles VIRTIO_SND_R_PCM_RELEASE. Releases the buffer resources allocated to - * a stream. + * Returns the number of I/O messages that are being processed. + * + * @stream: VirtIOSoundPCMStream + */ +static size_t

Re: [PATCH v8 10/12] virtio-sound: implement audio output (TX)

2023-09-04 Thread Philippe Mathieu-Daudé
On 28/8/23 21:55, Emmanouil Pitsidianakis wrote: Handle output IO messages in the transmit (TX) virtqueue. It allocates a VirtIOSoundPCMBlock 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

Re: [PATCH v8 10/12] virtio-sound: implement audio output (TX)

2023-08-30 Thread Alex Bennée
Emmanouil Pitsidianakis writes: > Handle output IO messages in the transmit (TX) virtqueue. > > It allocates a VirtIOSoundPCMBlock 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

[PATCH v8 10/12] virtio-sound: implement audio output (TX)

2023-08-28 Thread Emmanouil Pitsidianakis
Handle output IO messages in the transmit (TX) virtqueue. It allocates a VirtIOSoundPCMBlock 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.