From: Abramo Bagnara Date: Tue, 12 Sep 2000 12:39:39 +0000 (+0000) Subject: avoid useless silencing X-Git-Tag: v1.0.3~1133 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=968cea235b5d47e2d56c5a8fff16c83c0bf51609;p=alsa-lib.git avoid useless silencing --- 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)