OSDN Git Service

Merge tag 'v4.4.214' into 10
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / sound / core / pcm_native.c
index 6a5cee1..9f53562 100644 (file)
@@ -588,7 +588,7 @@ static int snd_pcm_hw_params(struct snd_pcm_substream *substream,
                runtime->boundary *= 2;
 
        /* clear the buffer for avoiding possible kernel info leaks */
-       if (runtime->dma_area)
+       if (runtime->dma_area && !substream->ops->copy)
                memset(runtime->dma_area, 0, runtime->dma_bytes);
 
        snd_pcm_timer_resolution_change(substream);