From 968cea235b5d47e2d56c5a8fff16c83c0bf51609 Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Tue, 12 Sep 2000 12:39:39 +0000 Subject: [PATCH] avoid useless silencing --- src/pcm/pcm_multi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcm/pcm_multi.c b/src/pcm/pcm_multi.c index 18578d72..433e58f8 100644 --- a/src/pcm/pcm_multi.c +++ b/src/pcm/pcm_multi.c @@ -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) -- 2.47.1