aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/timer.c
diff options
context:
space:
mode:
authorChristophe Leroy <[email protected]>2025-06-14 06:43:14 +0000
committerTakashi Iwai <[email protected]>2025-06-14 11:40:14 +0000
commit2acd83beb4d3fdff1e74f56d2f16f7e70f1faa6d (patch)
tree66cde9cbd00472c17cf55f2fb435fdf85a02a24c /sound/core/timer.c
parentALSA: usb-audio: Fix build with CONFIG_INPUT=n (diff)
downloadkernel-2acd83beb4d3fdff1e74f56d2f16f7e70f1faa6d.tar.gz
kernel-2acd83beb4d3fdff1e74f56d2f16f7e70f1faa6d.zip
ALSA: pcm: refactor copy from/to user in SNDRV_PCM_IOCTL_SYNC_PTR
In an effort of optimising SNDRV_PCM_IOCTL_SYNC_PTR ioctl which is a hot path, lets first refactor the copy from and to user with macros. This is done with macros and not static inline fonctions because types differs between the different versions of snd_pcm_sync_ptr() like functions. First step is to refactor only snd_pcm_ioctl_sync_ptr_compat() and snd_pcm_ioctl_sync_ptr_x32() as it would be a performance regression for snd_pcm_sync_ptr() and snd_pcm_ioctl_sync_ptr_buggy() for now. They may be refactored after next patch. Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Link: https://patch.msgid.link/f8b77932bb9ce96148ae5c3953e7ee44fa2359f8.1749883041.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'sound/core/timer.c')
0 files changed, 0 insertions, 0 deletions