]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix meter plugin
authorTakashi Iwai <tiwai@suse.de>
Thu, 22 Dec 2005 16:24:27 +0000 (16:24 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 22 Dec 2005 16:24:27 +0000 (16:24 +0000)
Fix the wrong mmap with meter plugin.

src/pcm/pcm_meter.c

index 6e3cad7a3fd5ec367b2b4d3968f02489b04865fe..413b3cb45ac9a06367161cfafd4f10b233cadbae 100644 (file)
@@ -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;