diff options
author | 2025-06-14 08:43:17 +0200 | |
---|---|---|
committer | 2025-06-16 08:25:32 +0200 | |
commit | 8629eea901b8a672dd096ca783ece8322701ca5a (patch) | |
tree | e1b8554120fc81b5303c4afa083ddc5e99821486 /sound/core/pcm.c | |
parent | ALSA: pcm: Replace [audio_]tstamp_[n]sec by struct __snd_timespec in struct snd_pcm_mmap_status32 (diff) | |
download | wireguard-linux-8629eea901b8a672dd096ca783ece8322701ca5a.tar.xz wireguard-linux-8629eea901b8a672dd096ca783ece8322701ca5a.zip |
ALSA: pcm: Convert snd_pcm_sync_ptr() to user_access_begin/user_access_end()
Now that snd_pcm_sync_ptr_get_user() and snd_pcm_sync_ptr_put_user()
are converted to user_access_begin/user_access_end(),
snd_pcm_sync_ptr_get_user() is more efficient than a raw get_user()
followed by a copy_from_user(). And because copy_{to/from}_user() are
generic functions focussed on transfer of big data blocks to/from user,
snd_pcm_sync_ptr_put_user() is also more efficient for small amont of
data.
So use snd_pcm_sync_ptr_get_user() and snd_pcm_sync_ptr_put_user() in
snd_pcm_sync_ptr() too.
snd_pcm_ioctl_sync_ptr_buggy() is left as it is because the conversion
wouldn't be straigh-forward due to the workaround it provides.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/6ce6bc4da498ea7ea2be5f279b374370b1613b13.1749883041.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'sound/core/pcm.c')
0 files changed, 0 insertions, 0 deletions