summaryrefslogtreecommitdiff
path: root/sound/virtio/virtio_pcm.c
diff options
context:
space:
mode:
authorAnton Yakovlev <anton.yakovlev@opensynergy.com>2021-03-02 17:47:06 +0100
committerTakashi Iwai <tiwai@suse.de>2021-03-07 09:08:03 +0100
commitda76e9f3e43a7195c69d370ee514cccae6517c76 (patch)
tree0fd9ce8748ee3ff96493e4bd8fd1918c5d13f522 /sound/virtio/virtio_pcm.c
parentf40a28679e0b7cb3a9cc6627a8dbb40961990f0a (diff)
downloadlwn-da76e9f3e43a7195c69d370ee514cccae6517c76.tar.gz
lwn-da76e9f3e43a7195c69d370ee514cccae6517c76.zip
ALSA: virtio: PCM substream operators
Introduce the operators required for the operation of substreams. Signed-off-by: Anton Yakovlev <anton.yakovlev@opensynergy.com> Link: https://lore.kernel.org/r/20210302164709.3142702-7-anton.yakovlev@opensynergy.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/virtio/virtio_pcm.c')
-rw-r--r--sound/virtio/virtio_pcm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/virtio/virtio_pcm.c b/sound/virtio/virtio_pcm.c
index 2dcd763efa29..c10d91fff2fb 100644
--- a/sound/virtio/virtio_pcm.c
+++ b/sound/virtio/virtio_pcm.c
@@ -470,6 +470,8 @@ int virtsnd_pcm_build_devs(struct virtio_snd *snd)
for (kss = ks->substream; kss; kss = kss->next)
vs->substreams[kss->number]->substream = kss;
+
+ snd_pcm_set_ops(vpcm->pcm, i, &virtsnd_pcm_ops);
}
snd_pcm_set_managed_buffer_all(vpcm->pcm,