All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] ASoC: SOF: remove suport for TRIGGER_RESUME
@ 2021-12-16 23:16 Pierre-Louis Bossart
  2021-12-16 23:16 ` [PATCH 1/3] ASoC: SOF: pcm: remove support for RESUME trigger Pierre-Louis Bossart
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Pierre-Louis Bossart @ 2021-12-16 23:16 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai, broonie, Pierre-Louis Bossart

None of the SOF platforms support INFO_RESUME, and rely on the
indirect path used by the ALSA core with the prepare and TRIGGER_START
steps.

Let's remove the left-over dead code.

Ranjani Sridharan (3):
  ASoC: SOF: pcm: remove support for RESUME trigger
  ASoC: SOF: Intel: hda: remove support for RESUME trigger
  ASoC: SOF: Intel: hda: remove support for RESUME in platform trigger

 sound/soc/sof/intel/hda-dai.c    | 10 ----------
 sound/soc/sof/intel/hda-stream.c |  1 -
 sound/soc/sof/pcm.c              | 20 --------------------
 3 files changed, 31 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] ASoC: SOF: pcm: remove support for RESUME trigger
  2021-12-16 23:16 [PATCH 0/3] ASoC: SOF: remove suport for TRIGGER_RESUME Pierre-Louis Bossart
@ 2021-12-16 23:16 ` Pierre-Louis Bossart
  2021-12-16 23:16 ` [PATCH 2/3] ASoC: SOF: Intel: hda: " Pierre-Louis Bossart
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Pierre-Louis Bossart @ 2021-12-16 23:16 UTC (permalink / raw)
  To: alsa-devel
  Cc: Pierre-Louis Bossart, tiwai, Ranjani Sridharan, Rander Wang,
	Kai Vehmanen, broonie, Bard Liao

From: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>

The SOF driver removed the support for INFO_RESUME in the commit
"ASoC: SOF: pcm: do not add SNDRV_PCM_INFO_RESUME to runtime hw info".
And resuming is handled by the ALSA core with the .prepare and
.trigger_start stages. So, remove handling of RESUME trigger in the
component driver trigger op.

Reviewed-by: Kai Vehmanen <kai.vehmanen@intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
---
 sound/soc/sof/pcm.c | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/sound/soc/sof/pcm.c b/sound/soc/sof/pcm.c
index e4446defe51e..37fb8e6cd493 100644
--- a/sound/soc/sof/pcm.c
+++ b/sound/soc/sof/pcm.c
@@ -395,26 +395,6 @@ static int sof_pcm_trigger(struct snd_soc_component *component,
 	case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
 		stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_RELEASE;
 		break;
-	case SNDRV_PCM_TRIGGER_RESUME:
-		if (spcm->stream[substream->stream].suspend_ignored) {
-			/*
-			 * this case will be triggered when INFO_RESUME is
-			 * supported, no need to resume streams that remained
-			 * enabled in D0ix.
-			 */
-			spcm->stream[substream->stream].suspend_ignored = false;
-			return 0;
-		}
-
-		/* set up hw_params */
-		ret = sof_pcm_prepare(component, substream);
-		if (ret < 0) {
-			dev_err(component->dev,
-				"error: failed to set up hw_params upon resume\n");
-			return ret;
-		}
-
-		fallthrough;
 	case SNDRV_PCM_TRIGGER_START:
 		if (spcm->stream[substream->stream].suspend_ignored) {
 			/*
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] ASoC: SOF: Intel: hda: remove support for RESUME trigger
  2021-12-16 23:16 [PATCH 0/3] ASoC: SOF: remove suport for TRIGGER_RESUME Pierre-Louis Bossart
  2021-12-16 23:16 ` [PATCH 1/3] ASoC: SOF: pcm: remove support for RESUME trigger Pierre-Louis Bossart
@ 2021-12-16 23:16 ` Pierre-Louis Bossart
  2021-12-16 23:16 ` [PATCH 3/3] ASoC: SOF: Intel: hda: remove support for RESUME in platform trigger Pierre-Louis Bossart
  2021-12-21  2:50 ` [PATCH 0/3] ASoC: SOF: remove suport for TRIGGER_RESUME Mark Brown
  3 siblings, 0 replies; 5+ messages in thread
From: Pierre-Louis Bossart @ 2021-12-16 23:16 UTC (permalink / raw)
  To: alsa-devel
  Cc: Pierre-Louis Bossart, tiwai, Ranjani Sridharan, Rander Wang,
	Kai Vehmanen, broonie, Bard Liao

From: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>

The SOF driver removed the support for INFO_RESUME in the commit
"ASoC: SOF: pcm: do not add SNDRV_PCM_INFO_RESUME to runtime hw info".
And resuming is handled by the ALSA core with the .prepare and
.trigger_start stages. So, remove handling of RESUME trigger in the
HDA DAI BE trigger op.

Reviewed-by: Kai Vehmanen <kai.vehmanen@intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
---
 sound/soc/sof/intel/hda-dai.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/sound/soc/sof/intel/hda-dai.c b/sound/soc/sof/intel/hda-dai.c
index 35ffb71116c6..6381f2b227f0 100644
--- a/sound/soc/sof/intel/hda-dai.c
+++ b/sound/soc/sof/intel/hda-dai.c
@@ -342,16 +342,6 @@ static int hda_link_pcm_trigger(struct snd_pcm_substream *substream,
 	w = snd_soc_dai_get_widget(dai, substream->stream);
 
 	switch (cmd) {
-	case SNDRV_PCM_TRIGGER_RESUME:
-		/* set up hw_params */
-		ret = hda_link_pcm_prepare(substream, dai);
-		if (ret < 0) {
-			dev_err(dai->dev,
-				"error: setting up hw_params during resume\n");
-			return ret;
-		}
-
-		fallthrough;
 	case SNDRV_PCM_TRIGGER_START:
 	case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
 		snd_hdac_ext_link_stream_start(link_dev);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] ASoC: SOF: Intel: hda: remove support for RESUME in platform trigger
  2021-12-16 23:16 [PATCH 0/3] ASoC: SOF: remove suport for TRIGGER_RESUME Pierre-Louis Bossart
  2021-12-16 23:16 ` [PATCH 1/3] ASoC: SOF: pcm: remove support for RESUME trigger Pierre-Louis Bossart
  2021-12-16 23:16 ` [PATCH 2/3] ASoC: SOF: Intel: hda: " Pierre-Louis Bossart
@ 2021-12-16 23:16 ` Pierre-Louis Bossart
  2021-12-21  2:50 ` [PATCH 0/3] ASoC: SOF: remove suport for TRIGGER_RESUME Mark Brown
  3 siblings, 0 replies; 5+ messages in thread
From: Pierre-Louis Bossart @ 2021-12-16 23:16 UTC (permalink / raw)
  To: alsa-devel
  Cc: Pierre-Louis Bossart, tiwai, Ranjani Sridharan, Rander Wang,
	Kai Vehmanen, broonie, Bard Liao

From: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>

The SOF driver removed the support for INFO_RESUME in the commit
"ASoC: SOF: pcm: do not add SNDRV_PCM_INFO_RESUME to runtime hw info".
And resuming is handled by the ALSA core with the .prepare and
.trigger_start stages. So, remove handling of RESUME trigger in the
component driver trigger op. So, remove handling the RESUME trigger in
the platform trigger op for HDA platforms.

Reviewed-by: Kai Vehmanen <kai.vehmanen@intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
---
 sound/soc/sof/intel/hda-stream.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sound/soc/sof/intel/hda-stream.c b/sound/soc/sof/intel/hda-stream.c
index e910f68706d9..ba60807fbd8f 100644
--- a/sound/soc/sof/intel/hda-stream.c
+++ b/sound/soc/sof/intel/hda-stream.c
@@ -329,7 +329,6 @@ int hda_dsp_stream_trigger(struct snd_sof_dev *sdev,
 
 	/* cmd must be for audio stream */
 	switch (cmd) {
-	case SNDRV_PCM_TRIGGER_RESUME:
 	case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
 	case SNDRV_PCM_TRIGGER_START:
 		snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTCTL,
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/3] ASoC: SOF: remove suport for TRIGGER_RESUME
  2021-12-16 23:16 [PATCH 0/3] ASoC: SOF: remove suport for TRIGGER_RESUME Pierre-Louis Bossart
                   ` (2 preceding siblings ...)
  2021-12-16 23:16 ` [PATCH 3/3] ASoC: SOF: Intel: hda: remove support for RESUME in platform trigger Pierre-Louis Bossart
@ 2021-12-21  2:50 ` Mark Brown
  3 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2021-12-21  2:50 UTC (permalink / raw)
  To: Pierre-Louis Bossart, alsa-devel; +Cc: tiwai

On Thu, 16 Dec 2021 17:16:25 -0600, Pierre-Louis Bossart wrote:
> None of the SOF platforms support INFO_RESUME, and rely on the
> indirect path used by the ALSA core with the prepare and TRIGGER_START
> steps.
> 
> Let's remove the left-over dead code.
> 
> Ranjani Sridharan (3):
>   ASoC: SOF: pcm: remove support for RESUME trigger
>   ASoC: SOF: Intel: hda: remove support for RESUME trigger
>   ASoC: SOF: Intel: hda: remove support for RESUME in platform trigger
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/3] ASoC: SOF: pcm: remove support for RESUME trigger
      commit: eed5391f6747ffa7e3972b53aa721bded8feeff7
[2/3] ASoC: SOF: Intel: hda: remove support for RESUME trigger
      commit: 9b465060d144dd8196729cc8d77e328f1328dcbf
[3/3] ASoC: SOF: Intel: hda: remove support for RESUME in platform trigger
      commit: 35218cf61869ca4b11c8c0b49a95f75f379e403a

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-12-21  2:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-16 23:16 [PATCH 0/3] ASoC: SOF: remove suport for TRIGGER_RESUME Pierre-Louis Bossart
2021-12-16 23:16 ` [PATCH 1/3] ASoC: SOF: pcm: remove support for RESUME trigger Pierre-Louis Bossart
2021-12-16 23:16 ` [PATCH 2/3] ASoC: SOF: Intel: hda: " Pierre-Louis Bossart
2021-12-16 23:16 ` [PATCH 3/3] ASoC: SOF: Intel: hda: remove support for RESUME in platform trigger Pierre-Louis Bossart
2021-12-21  2:50 ` [PATCH 0/3] ASoC: SOF: remove suport for TRIGGER_RESUME Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.