aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/core/pcm_native.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2023-08-15 21:01:36 +0200
committerTakashi Iwai <tiwai@suse.de>2023-08-18 12:19:19 +0200
commit6c0217b11066b9bcd6d8f1f8bd11c0610e536e04 (patch)
tree80cb7c6fddede80dad94fc2b8d87682a0b3fbf5b /sound/core/pcm_native.c
parentASoC: pcm: Drop obsoleted PCM copy_user ops (diff)
downloadwireguard-linux-6c0217b11066b9bcd6d8f1f8bd11c0610e536e04.tar.xz
wireguard-linux-6c0217b11066b9bcd6d8f1f8bd11c0610e536e04.zip
ALSA: pcm: Drop obsoleted PCM copy_user and copy_kernel ops
Finally all users have been converted to the new PCM copy ops, let's drop the obsoleted copy_kernel and copy_user ops completely. Link: https://lore.kernel.org/r/20230815190136.8987-26-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/pcm_native.c')
-rw-r--r--sound/core/pcm_native.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index 34efd4d198d6..bd9ddf412b46 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -809,7 +809,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 && !substream->ops->copy && !substream->ops->copy_user) {
+ if (runtime->dma_area && !substream->ops->copy) {
size_t size = runtime->dma_bytes;
if (runtime->info & SNDRV_PCM_INFO_MMAP)