mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Added support for hw_free in alsa-lib
This commit is contained in:
parent
87f9071c08
commit
f12a252f20
21 changed files with 150 additions and 63 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue