From: Abramo Bagnara Date: Mon, 8 Jan 2001 15:31:34 +0000 (+0000) Subject: Use enum instead of #define where appropriate X-Git-Tag: v1.0.3~1029 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=7e4938fa0e8d46662b97207d06728e2b1a56720c;p=alsa-lib.git Use enum instead of #define where appropriate --- diff --git a/src/pcm/pcm_plugin.c b/src/pcm/pcm_plugin.c index ac4b4b04..8fa3ccad 100644 --- a/src/pcm/pcm_plugin.c +++ b/src/pcm/pcm_plugin.c @@ -76,7 +76,9 @@ int snd_pcm_plugin_status(snd_pcm_t *pcm, snd_pcm_status_t * status) int err = snd_pcm_status(plugin->slave, status); if (err < 0) return err; - status->avail = snd_pcm_avail_update(pcm); + status->avail = snd_pcm_mmap_avail(pcm); + if (plugin->client_frames) + status->avail_max = plugin->client_frames(pcm, status->avail_max); return 0; }