Re: [PATCH v3] ALSA: virtio: use ack callback

2023-10-24 Thread Matias Ezequiel Vara Larsen
On Tue, Oct 24, 2023 at 09:11:10AM +0900, Anton Yakovlev wrote: > Hi Matias, > > Thanks for the new patch! > > > > On 24.10.2023 00:06, Matias Ezequiel Vara Larsen wrote: > > This commit uses the ack() callback to determine when a buffer has been > > updated, then exposes it to guest. > > > >

Re: [PATCH v3] ALSA: virtio: use ack callback

2023-10-24 Thread Matias Ezequiel Vara Larsen
On Mon, Oct 23, 2023 at 05:50:00PM +0200, Takashi Iwai wrote: > On Mon, 23 Oct 2023 17:06:57 +0200, > Matias Ezequiel Vara Larsen wrote: > > > > +static int virtsnd_pcm_ack(struct snd_pcm_substream *substream) > > +{ > > + struct virtio_pcm_substream *vss = snd_pcm_substream_chip(substream); > >

Re: [PATCH v3] ALSA: virtio: use ack callback

2023-10-23 Thread Anton Yakovlev via Virtualization
Hi Matias, Thanks for the new patch! On 24.10.2023 00:06, Matias Ezequiel Vara Larsen wrote: This commit uses the ack() callback to determine when a buffer has been updated, then exposes it to guest. The current mechanism splits a dma buffer into descriptors that are exposed to the device. T

[PATCH v3] ALSA: virtio: use ack callback

2023-10-23 Thread Matias Ezequiel Vara Larsen
This commit uses the ack() callback to determine when a buffer has been updated, then exposes it to guest. The current mechanism splits a dma buffer into descriptors that are exposed to the device. This dma buffer is shared with the user application. When the device consumes a buffer, the driver m