From: Takashi Iwai Date: Thu, 22 Dec 2005 16:24:27 +0000 (+0000) Subject: Fix meter plugin X-Git-Tag: v1.0.11rc2~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=eb7d61d08c037afa19600385732b054913c36c8b;p=alsa-lib.git Fix meter plugin Fix the wrong mmap with meter plugin. --- diff --git a/src/pcm/pcm_meter.c b/src/pcm/pcm_meter.c index 6e3cad7a..413b3cb4 100644 --- a/src/pcm/pcm_meter.c +++ b/src/pcm/pcm_meter.c @@ -575,6 +575,7 @@ int snd_pcm_meter_open(snd_pcm_t **pcmp, const char *name, unsigned int frequenc return err; } pcm->mmap_rw = 1; + pcm->mmap_shadow = 1; pcm->ops = &snd_pcm_meter_ops; pcm->fast_ops = &snd_pcm_meter_fast_ops; pcm->private_data = meter;