summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-12-13 17:13:39 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-12-13 17:13:39 +1100
commite9a03571f6a889e69dadbb075494229cbcd7ba53 (patch)
tree38ed5d0d5ee98a95fb166d7912dc768a161e4457
parente0feba6c3f70d0a0197f20fa4933c4d58251e48e (diff)
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 <mark.farrugia@fiberdyne.com.au>
-rw-r--r--core.c1
1 files changed, 0 insertions, 1 deletions
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);