Added support for hw_free in alsa-lib

This commit is contained in:
Abramo Bagnara 2001-01-19 13:10:50 +00:00
parent 87f9071c08
commit f12a252f20
21 changed files with 150 additions and 63 deletions

View file

@ -55,9 +55,8 @@ int snd_pcm_close(snd_pcm_t *pcm)
snd_pcm_drop(pcm);
else
snd_pcm_drain(pcm);
}
if (pcm->mmap_channels) {
if ((err = snd_pcm_munmap(pcm)) < 0)
err = snd_pcm_hw_free(pcm);
if (err < 0)
ret = err;
}
if ((err = pcm->ops->close(pcm->op_arg)) < 0)