summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2019-04-08 11:30:06 +1000
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2019-04-08 11:30:06 +1000
commit54a61d453c6b1c17975230ba3897ff7d19dc0ada (patch)
treef5585e748f5ee4927bbf003c5fc17d0fd9c791e9
parent8d80a94293f651bca8a86bf7710288c46372d6ae (diff)
snd-avirt-backport-Kernel-API
Backport snd-pcm-ops struct callbacks for kernels prior to 4.13 Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
-rw-r--r--core.c5
1 files 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);