]> git.alsa-project.org Git - alsa-lib.git/commitdiff
avoid useless silencing
authorAbramo Bagnara <abramo@alsa-project.org>
Tue, 12 Sep 2000 12:39:39 +0000 (12:39 +0000)
committerAbramo Bagnara <abramo@alsa-project.org>
Tue, 12 Sep 2000 12:39:39 +0000 (12:39 +0000)
src/pcm/pcm_multi.c

index 18578d72007c4af6c6c3fff11f8c155ce9915eab..433e58f807dc916f29b6fc5f64a669f4a29ccf13 100644 (file)
@@ -604,7 +604,7 @@ static int snd_pcm_multi_mmap_data(snd_pcm_t *pcm, void **buffer, size_t bsize A
                if (err < 0)
                        return err;
                setup = &handle->setup;
-               {
+               if (pcm->stream == SND_PCM_STREAM_PLAYBACK) {
                        snd_pcm_channel_area_t areas[setup->format.channels];
                        err = snd_pcm_mmap_get_areas(handle, areas);
                        if (err < 0)