From 42000f29ef6775f092dab2c80f8b3a6a319b5658 Mon Sep 17 00:00:00 2001 From: Mark Farrugia Date: Thu, 13 Dec 2018 17:13:39 +1100 Subject: Ensure that PCM callback 'close' is never NULL ALSA requires a 'close' callback. It does not have any checks internally to not call a NULL callback. Signed-off-by: Mark Farrugia --- core.c | 1 - 1 file changed, 1 deletion(-) (limited to 'core.c') diff --git a/core.c b/core.c index c758391..8d73ed1 100644 --- a/core.c +++ b/core.c @@ -251,7 +251,6 @@ static struct snd_pcm *pcm_create(struct snd_avirt_stream *stream) pcm_ops = &pcm_ops_avirt; /* Set PCM ops for the Audio Path*/ - PCM_OPS_SET(pcm_ops_ap, &pcm_ops, close); PCM_OPS_SET(pcm_ops_ap, &pcm_ops, prepare); PCM_OPS_SET(pcm_ops_ap, &pcm_ops, trigger); PCM_OPS_SET(pcm_ops_ap, &pcm_ops, pointer); -- cgit 1.2.3-korg