summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-03-16 16:38:10 +0300
committerMark Brown <broonie@kernel.org>2026-03-16 16:38:10 +0300
commit0861893cff96624523adc0968587fa64e9a9f76d (patch)
tree89198849819cd9c8636c5c209f5739eb8c8c7eac /include
parentcb15d8e6cbe8d085ac585016deb2e1e0107b99e5 (diff)
parent175f733325ac2ce875cafd051980be2d2c06dec9 (diff)
downloadlinux-0861893cff96624523adc0968587fa64e9a9f76d.tar.xz
ASoC: soc-component: re-add pcm_new()/pcm_free()
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> says: Because old pcm_new()/pcm_free() didn't care about parameter component, to avoid name collisions, we have added pcm_construct()/pcm_destruct() by commit c64bfc9066007 ("ASoC: soc-core: add new pcm_construct/pcm_destruct") Because all driver switch to new pcm_construct()/pcm_destruct(), old pcm_new()/pcm_free() were remoted by commit e9067bb502787 ("ASoC: soc-component: remove snd_pcm_ops from component driver") But naming of pcm_construct()/pcm_destruct() are not goot. re-add pcm_new()/pcm_free(), and switch to use it, again. Because it has no functional significance, 1 patch is for 1 vender.
Diffstat (limited to 'include')
-rw-r--r--include/sound/soc-component.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
index 2a2b74b24a60..60f73c4b0bbb 100644
--- a/include/sound/soc-component.h
+++ b/include/sound/soc-component.h
@@ -86,10 +86,10 @@ struct snd_soc_component_driver {
unsigned int reg, unsigned int val);
/* pcm creation and destruction */
- int (*pcm_construct)(struct snd_soc_component *component,
- struct snd_soc_pcm_runtime *rtd);
- void (*pcm_destruct)(struct snd_soc_component *component,
- struct snd_pcm *pcm);
+ int (*pcm_new)(struct snd_soc_component *component,
+ struct snd_soc_pcm_runtime *rtd);
+ void (*pcm_free)(struct snd_soc_component *component,
+ struct snd_pcm *pcm);
/* component wide operations */
int (*set_sysclk)(struct snd_soc_component *component,