aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/soc-component.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2023-08-15 21:01:35 +0200
committerTakashi Iwai <tiwai@suse.de>2023-08-18 12:19:19 +0200
commit205d3e030a02b18a6bc1ca590965871a803163f2 (patch)
treea873a6a980c2c26d9f529573e799403b607ddfe4 /sound/soc/soc-component.c
parentALSA: doc: Update description for the new PCM copy ops (diff)
downloadwireguard-linux-205d3e030a02b18a6bc1ca590965871a803163f2.tar.xz
wireguard-linux-205d3e030a02b18a6bc1ca590965871a803163f2.zip
ASoC: pcm: Drop obsoleted PCM copy_user ops
Now all ASoC users have been replaced to use the new PCM copy ops, let's drop the obsoleted copy_user ops and its helper function. Reviewed-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20230815190136.8987-25-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/soc-component.c')
-rw-r--r--sound/soc/soc-component.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/sound/soc/soc-component.c b/sound/soc/soc-component.c
index ffa2dd8a21ba..f18406dfa1e4 100644
--- a/sound/soc/soc-component.c
+++ b/sound/soc/soc-component.c
@@ -1070,26 +1070,6 @@ int snd_soc_pcm_component_copy(struct snd_pcm_substream *substream,
return -EINVAL;
}
-int snd_soc_pcm_component_copy_user(struct snd_pcm_substream *substream,
- int channel, unsigned long pos,
- void __user *buf, unsigned long bytes)
-{
- struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
- struct snd_soc_component *component;
- int i;
-
- /* FIXME. it returns 1st copy now */
- for_each_rtd_components(rtd, i, component)
- if (component->driver->copy_user)
- return soc_component_ret(
- component,
- component->driver->copy_user(
- component, substream, channel,
- pos, buf, bytes));
-
- return -EINVAL;
-}
-
struct page *snd_soc_pcm_component_page(struct snd_pcm_substream *substream,
unsigned long offset)
{