Fixed compilation problem for dmix (donot_close)

This commit is contained in:
Jaroslav Kysela 2003-02-12 11:49:47 +00:00
parent 13b79dcd56
commit b5316c86cc
2 changed files with 2 additions and 1 deletions

View file

@ -659,7 +659,7 @@ int snd_pcm_close(snd_pcm_t *pcm)
{
int err;
assert(pcm);
if (pcm->setup) {
if (pcm->setup && !pcm->donot_close) {
snd_pcm_drop(pcm);
err = snd_pcm_hw_free(pcm);
if (err < 0)

View file

@ -200,6 +200,7 @@ struct _snd_pcm {
snd_pcm_rbptr_t hw;
snd_pcm_uframes_t min_align;
int mmap_rw;
int donot_close;
snd_pcm_channel_info_t *mmap_channels;
snd_pcm_channel_area_t *running_areas;
snd_pcm_channel_area_t *stopped_areas;