From eb7d61d08c037afa19600385732b054913c36c8b Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 22 Dec 2005 16:24:27 +0000 Subject: [PATCH] Fix meter plugin Fix the wrong mmap with meter plugin. --- src/pcm/pcm_meter.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.11.0