1 From ea9a8ede7f343d589c8d9fac945f7b3d9dca9c3f Mon Sep 17 00:00:00 2001
2 From: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
3 Date: Thu, 15 Nov 2018 09:47:29 +1100
4 Subject: [PATCH] snd-avirt-backport-Kernel-API
6 Backport snd-pcm-ops struct callbacks for kernels prior to
9 Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
12 1 file changed, 2 insertions(+), 3 deletions(-)
14 diff --git a/core.c b/core.c
15 index 35998c0..6fd3ab3 100644
18 @@ -250,9 +250,8 @@ static struct snd_pcm *pcm_create(struct snd_avirt_stream *stream)
19 PCM_OPS_SET(pcm_ops_ap, &pcm_ops, trigger);
20 PCM_OPS_SET(pcm_ops_ap, &pcm_ops, pointer);
21 PCM_OPS_SET(pcm_ops_ap, &pcm_ops, get_time_info);
22 - PCM_OPS_SET(pcm_ops_ap, &pcm_ops, fill_silence);
23 - PCM_OPS_SET(pcm_ops_ap, &pcm_ops, copy_user);
24 - PCM_OPS_SET(pcm_ops_ap, &pcm_ops, copy_kernel);
25 + PCM_OPS_SET(pcm_ops_ap, &pcm_ops, silence);
26 + PCM_OPS_SET(pcm_ops_ap, &pcm_ops, copy);
27 PCM_OPS_SET(pcm_ops_ap, &pcm_ops, mmap);
28 PCM_OPS_SET(pcm_ops_ap, &pcm_ops, ack);