From 54a61d453c6b1c17975230ba3897ff7d19dc0ada Mon Sep 17 00:00:00 2001 From: Mark Farrugia Date: Mon, 8 Apr 2019 11:30:06 +1000 Subject: snd-avirt-backport-Kernel-API Backport snd-pcm-ops struct callbacks for kernels prior to 4.13 Signed-off-by: Mark Farrugia --- core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core.c b/core.c index c2e32c5..356c258 100644 --- a/core.c +++ b/core.c @@ -219,9 +219,8 @@ int snd_avirt_stream_try_complete(struct snd_avirt_stream *stream) /* Set PCM ops for the Audio Path*/ PCM_OPS_SET(pcm_ops_ap, &stream->pcm_ops, pointer); PCM_OPS_SET(pcm_ops_ap, &stream->pcm_ops, get_time_info); - PCM_OPS_SET(pcm_ops_ap, &stream->pcm_ops, fill_silence); - PCM_OPS_SET(pcm_ops_ap, &stream->pcm_ops, copy_user); - PCM_OPS_SET(pcm_ops_ap, &stream->pcm_ops, copy_kernel); + PCM_OPS_SET(pcm_ops_ap, &stream->pcm_ops, silence); + PCM_OPS_SET(pcm_ops_ap, &stream->pcm_ops, copy); PCM_OPS_SET(pcm_ops_ap, &stream->pcm_ops, mmap); PCM_OPS_SET(pcm_ops_ap, &stream->pcm_ops, ack); -- cgit 1.2.3-korg