Re: [PATCH v6 6/9] ALSA: virtio: PCM substream operators

2021-03-01 Thread Takashi Iwai
On Mon, 01 Mar 2021 10:29:24 +0100, Anton Yakovlev wrote: > > On 28.02.2021 12:32, Takashi Iwai wrote: > > On Sat, 27 Feb 2021 09:59:53 +0100, > > Anton Yakovlev wrote: > >> > > > [snip] > > > >> +static snd_pcm_uframes_t > >> +virtsnd_pcm_pointer(struct snd_pcm_substream *substream) > >> +{ >

Re: [PATCH v6 6/9] ALSA: virtio: PCM substream operators

2021-03-01 Thread Anton Yakovlev
On 28.02.2021 12:32, Takashi Iwai wrote: On Sat, 27 Feb 2021 09:59:53 +0100, Anton Yakovlev wrote: [snip] +static snd_pcm_uframes_t +virtsnd_pcm_pointer(struct snd_pcm_substream *substream) +{ + struct virtio_pcm_substream *vss = snd_pcm_substream_chip(substream); + snd_pcm_uframe

Re: [PATCH v6 6/9] ALSA: virtio: PCM substream operators

2021-02-28 Thread Takashi Iwai
On Sat, 27 Feb 2021 09:59:53 +0100, Anton Yakovlev wrote: > > +static int virtsnd_pcm_trigger(struct snd_pcm_substream *substream, int > command) > +{ > + struct virtio_pcm_substream *vss = snd_pcm_substream_chip(substream); > + struct virtio_snd *snd = vss->snd; > + struct virtio_snd

[PATCH v6 6/9] ALSA: virtio: PCM substream operators

2021-02-27 Thread Anton Yakovlev
Introduce the operators required for the operation of substreams. Signed-off-by: Anton Yakovlev --- sound/virtio/Makefile | 3 +- sound/virtio/virtio_pcm.c | 2 + sound/virtio/virtio_pcm.h | 4 + sound/virtio/virtio_pcm_ops.c | 453 ++ 4 file