ASoC: remove bespoke trigger support
Kuninori Morimoto
maintainerPATCH v2 1/1 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.
---
v1 -> v2
- rebased to latest asoc/for-6.12 branch
include/sound/soc-dai.h | 5 +--- include/sound/soc-dpcm.h | 1 - sound/soc/generic/test-component.c | 9 ------ sound/soc/soc-dai.c | 20 ------------- sound/soc/soc-pcm.c | 47 +++--------------------------- 5 files changed, 5 insertions(+), 77 deletions(-)
include/sound/soc-dai.h +1 -4
@@ -240,8 +240,6 @@ int snd_soc_pcm_dai_new(struct snd_soc_pcm_runtime *rtd);int snd_soc_pcm_dai_prepare (struct snd_pcm_substream *substream);int snd_soc_pcm_dai_trigger (struct snd_pcm_substream *substream,int cmd,int rollback); -int snd_soc_pcm_dai_bespoke_trigger (struct snd_pcm_substream *substream, -int cmd);void snd_soc_pcm_dai_delay (struct snd_pcm_substream *substream,snd_pcm_sframes_t *cpu_delay,snd_pcm_sframes_t *codec_delay);
@@ -345,8 +343,7 @@ struct snd_soc_dai_ops {*/ int (*trigger)(struct snd_pcm_substream *,int ,struct snd_soc_dai *); -int (*bespoke_trigger)(struct snd_pcm_substream *,int , -struct snd_soc_dai *); +/* * For hardware based FIFO caused delay reporting. * Optional.
include/sound/soc-dpcm.h +0 -1
@@ -58,7 +58,6 @@ enum snd_soc_dpcm_state {enum snd_soc_dpcm_trigger {SND_SOC_DPCM_TRIGGER_PRE =0 ,SND_SOC_DPCM_TRIGGER_POST , -SND_SOC_DPCM_TRIGGER_BESPOKE , };/*
sound/soc/generic/test-component.c +0 -9
@@ -181,14 +181,6 @@ static int test_dai_trigger(struct snd_pcm_substream *substream, int cmd, structreturn 0 ; } -static int test_dai_bespoke_trigger (struct snd_pcm_substream *substream, -int cmd,struct snd_soc_dai *dai) -{ -mile_stone (dai); - -return 0 ; -} -static const u64 test_dai_formats =/* * Select below from Sound Card, not auto
@@ -228,7 +220,6 @@ static const struct snd_soc_dai_ops test_verbose_ops = { .hw_params = test_dai_hw_params, .hw_free = test_dai_hw_free, .trigger = test_dai_trigger, - .bespoke_trigger = test_dai_bespoke_trigger, .auto_selectable_formats = &test_dai_formats, .num_auto_selectable_formats = 1, };
sound/soc/soc-dai.c +0 -20
@@ -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)
sound/soc/soc-pcm.c +4 -43
77 lines not on this page · raw message
Signature · 1 line
2.43.0
Mark Brown
maintainerQuoted 10 lines · Kuninori Morimoto
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.
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: remove bespoke trigger support
commit: 7d2fb3812acde0a76e0d361877e8295db065f9f4
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark