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:14:55 +1100 |
commit | 42000f29ef6775f092dab2c80f8b3a6a319b5658 (patch) | |
tree | 38ed5d0d5ee98a95fb166d7912dc768a161e4457 /core.c | |
parent | 72e39550f316404a764dd2fa11b00a110ae38c61 (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.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); |