ASoC: dmaengine: Use iov_iter for process callback, too
authorTakashi Iwai <tiwai@suse.de>
Tue, 15 Aug 2023 19:01:33 +0000 (21:01 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 18 Aug 2023 10:19:18 +0000 (12:19 +0200)
commit9bebd65443c1379f6643397bf4854d6f80a8358c
tree64ad74dc398ef939b5f45c4bab9250e4064bd93d
parent56b00d10ffd4dcd6b068c2290ffabf0ae2d49789
ASoC: dmaengine: Use iov_iter for process callback, too

Along with the conversion to PCM copy ops, use the iov_iter for the
pointer to be passed to the dmaengine process callback, too.  It
avoids the direct reference of iter_iov_addr(), and it can potentially
help for the drivers to access memory properly (although both atmel
and stm drivers don't use the given buffer address at all for now).

Reviewed-by: Mark Brown <broonie@kernel.org>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Claudiu Beznea <claudiu.beznea@microchip.com>
Cc: Olivier Moysan <olivier.moysan@foss.st.com>
Cc: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Link: https://lore.kernel.org/r/20230815190136.8987-23-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/dmaengine_pcm.h
sound/soc/atmel/mchp-pdmc.c
sound/soc/soc-generic-dmaengine-pcm.c
sound/soc/stm/stm32_sai_sub.c