Re: [PATCH v5 5/9] ALSA: virtio: handling control and I/O messages for the PCM device

2021-02-25 Thread Takashi Iwai
On Mon, 22 Feb 2021 16:34:40 +0100, Anton Yakovlev wrote: > > +void virtsnd_pcm_event(struct virtio_snd *snd, struct virtio_snd_event > *event) > +{ > + struct virtio_pcm_substream *vss; > + u32 sid = le32_to_cpu(event->data); > + > + if (sid >= snd->nsubstreams) > + retur

[PATCH v5 5/9] ALSA: virtio: handling control and I/O messages for the PCM device

2021-02-22 Thread Anton Yakovlev
The driver implements a message-based transport for I/O substream operations. Before the start of the substream, the hardware buffer is sliced into I/O messages, the number of which is equal to the current number of periods. The size of each message is equal to the current size of one period. I/O