ASoC: qcom: Convert to generic PCM copy ops
authorTakashi Iwai <tiwai@suse.de>
Tue, 15 Aug 2023 19:01:31 +0000 (21:01 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 18 Aug 2023 10:19:18 +0000 (12:19 +0200)
commitce2d8ed8d809e70e1eb260b2e02a7be0ba0c0211
tree7544fa9ac55dc85660f87a27f89fb97343c5264e
parent95396d83e96cc1b7887562d07ff0324c11e744db
ASoC: qcom: Convert to generic PCM copy ops

This patch converts the qcom lpass driver code to use the new unified
PCM copy callback.  It's a straightforward conversion from *_user() to
*_iter() variants.

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

Reviewed-by: Mark Brown <broonie@kernel.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Banajit Goswami <bgoswami@quicinc.com>
Link: https://lore.kernel.org/r/20230815190136.8987-21-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/qcom/lpass-platform.c