diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2024-08-06 00:00:57 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-08-06 13:56:21 +0100 |
commit | 7d2fb3812acde0a76e0d361877e8295db065f9f4 (patch) | |
tree | 363ecdb796fe76d4f1d5143a40ac1aeae510408b /sound/soc/soc-dai.c | |
parent | cf410c1beaded9c7ba16210b36cbe9ed0e2b4d19 (diff) |
ASoC: remove bespoke trigger support
Bespoke trigger support was added when Linux v3.5 by this patch.
commit 07bf84aaf736781a283b1bd36eaa911453b14574
("ASoC: dpcm: Add bespoke trigger()")
test-component driver is using it, but this is because it indicates used
function for debug/trace purpose. Except test-component driver, bespoke
trigger has never been used over 10 years in upstream.
We can re-support it if needed in the future, but let's remove it for now,
because it just noise in upstream.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87v80ewmdi.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-dai.c')
-rw-r--r-- | sound/soc/soc-dai.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sound/soc/soc-dai.c b/sound/soc/soc-dai.c index 9e47053419c1..302ca753a1f3 100644 --- a/sound/soc/soc-dai.c +++ b/sound/soc/soc-dai.c @@ -685,26 +685,6 @@ int snd_soc_pcm_dai_trigger(struct snd_pcm_substream *substream, return ret; } -int snd_soc_pcm_dai_bespoke_trigger(struct snd_pcm_substream *substream, - int cmd) -{ - struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); - struct snd_soc_dai *dai; - int i, ret; - - for_each_rtd_dais(rtd, i, dai) { - if (dai->driver->ops && - dai->driver->ops->bespoke_trigger) { - ret = dai->driver->ops->bespoke_trigger(substream, - cmd, dai); - if (ret < 0) - return soc_dai_ret(dai, ret); - } - } - - return 0; -} - void snd_soc_pcm_dai_delay(struct snd_pcm_substream *substream, snd_pcm_sframes_t *cpu_delay, snd_pcm_sframes_t *codec_delay) |