OSDN Git Service

ALSA: core: Add memory copy helpers between iov_iter and iomem
authorTakashi Iwai <tiwai@suse.de>
Tue, 15 Aug 2023 19:01:14 +0000 (21:01 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 18 Aug 2023 10:18:16 +0000 (12:18 +0200)
commit561b4fa9c1111292ec975a04ecd8372ac0256e1e
tree06c324a483aeaf35c8bda0c4eafd9901435b32f1
parentcf393babb37a1679a1ec1d864df1090353465e23
ALSA: core: Add memory copy helpers between iov_iter and iomem

Add two more helpers for copying memory between iov_iter and iomem,
which will be used by the new PCM copy ops in a few drivers.
The existing helpers became wrappers of those now.

Note that copy_from/to_iter() returns the copied bytes, hence the
error condition is adjusted accordingly.

Link: https://lore.kernel.org/r/20230815190136.8987-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm.h
sound/core/memory.c