summaryrefslogtreecommitdiffstats
path: root/core.c
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:14:55 +1100
commit42000f29ef6775f092dab2c80f8b3a6a319b5658 (patch)
tree38ed5d0d5ee98a95fb166d7912dc768a161e4457 /core.c
parent72e39550f316404a764dd2fa11b00a110ae38c61 (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>
Diffstat (limited to 'core.c')
-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);