diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-12-13 17:13:39 +1100 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-12-13 17:13:39 +1100 |
commit | e9a03571f6a889e69dadbb075494229cbcd7ba53 (patch) | |
tree | 38ed5d0d5ee98a95fb166d7912dc768a161e4457 | |
parent | e0feba6c3f70d0a0197f20fa4933c4d58251e48e (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.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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); |