2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/sound
Christophe Leroy 8629eea901 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
2025-06-16 08:25:32 +02:00
..
ac97 ALSA: ac97: Convert to RUNTIME_PM_OPS() macro 2025-03-14 11:07:13 +01:00
aoa ALSA: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-09-20 17:44:52 +02:00
arm ALSA: arm: aaci: Constify amba_id table 2025-02-23 18:14:49 +01:00
atmel ALSA: atmel: Replace deprecated strcpy() with strscpy() 2025-05-22 20:35:56 +02:00
core ALSA: pcm: Convert snd_pcm_sync_ptr() to user_access_begin/user_access_end() 2025-06-16 08:25:32 +02:00
drivers treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
firewire ALSA: firewire: Simplify with str_on_off() 2025-01-08 07:58:39 +01:00
hda Merge branch 'for-linus' into for-next 2025-05-22 20:34:24 +02:00
i2c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
isa treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
mips ALSA: mips/sgio2audio: Replace deprecated strcpy() with strscpy() 2025-06-10 17:53:42 +02:00
oss sound: Switch back to struct platform_driver::remove() 2024-10-30 14:47:59 +01:00
parisc
pci ALSA: hda/realtek: Add support for ASUS NUC using CS35L41 HDA 2025-06-13 10:19:43 +02:00
pcmcia ALSA: vxpocket: Fix a typo at conversion to dev_*() 2024-08-08 20:23:41 +02:00
ppc ALSA: ppc: Remove i2c client removal hack 2025-01-03 13:21:54 +01:00
sh treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
soc treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
sparc ALSA: amd7930: replace strcpy() with strscpy() 2025-05-20 16:07:18 +02:00
spi
synth treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
usb ALSA: usb-audio: Fix build with CONFIG_INPUT=n 2025-06-13 11:52:43 +02:00
virtio ALSA: virtio: use snd_kcontrol_chip() 2025-05-08 11:53:34 +02:00
x86 ALSA: intel-hdmi-audio: Replace deprecated strcpy() with strscpy() 2025-05-11 16:25:21 +02:00
xen
ac97_bus.c
Kconfig sound: Make CONFIG_SND depend on INDIRECT_IOMEM instead of UML 2024-10-10 16:11:18 +02:00
last.c
Makefile
sound_core.c