Completed renaming drain->stop, flush->drain (PCM). Done renaming drain->drop, flush->drain (rawmidi and seq). Removed wrong module usage count inc/dec from mmap

This commit is contained in:
Abramo Bagnara 2000-09-29 20:49:18 +00:00
parent 7088f19233
commit 2ea3fd4bb3
22 changed files with 86 additions and 86 deletions

View file

@ -191,10 +191,10 @@ int snd_pcm_stop(snd_pcm_t *pcm)
return pcm->fast_ops->stop(pcm->fast_op_arg);
}
int snd_pcm_flush(snd_pcm_t *pcm)
int snd_pcm_drain(snd_pcm_t *pcm)
{
assert(pcm);
return pcm->fast_ops->flush(pcm->fast_op_arg);
return pcm->fast_ops->drain(pcm->fast_op_arg);
}
int snd_pcm_pause(snd_pcm_t *pcm, int enable)
@ -411,7 +411,7 @@ static assoc_t starts[] = { START(EXPLICIT), START(DATA), END };
static assoc_t readys[] = { READY(FRAGMENT), READY(ASAP), END };
static assoc_t xfers[] = { XFER(INTERLEAVED), XFER(NONINTERLEAVED), END };
static assoc_t mmaps[] = { MMAP(INTERLEAVED), MMAP(NONINTERLEAVED), END };
static assoc_t xrun_acts[] = { XRUN_ACT(FLUSH), XRUN_ACT(DRAIN), END };
static assoc_t xrun_acts[] = { XRUN_ACT(STOP), XRUN_ACT(DROP), END };
static assoc_t onoff[] = { {0, "OFF", NULL}, {1, "ON", NULL}, {-1, "ON", NULL}, END };
int snd_pcm_dump_setup(snd_pcm_t *pcm, FILE *fp)