All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: SOF: use current DAI config during resume
@ 2021-04-14 16:59 Ranjani Sridharan
  2021-04-15 15:53 ` Mark Brown
  2021-04-15 18:33 ` Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Ranjani Sridharan @ 2021-04-14 16:59 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, broonie, Ranjani Sridharan, Kai Vehmanen, Pierre-Louis Bossart

Recently, the sof_pcm_dai_link_fixup() function was
updated to match SSP config with the PCM hw_params
and set the current_config for the DAI widget.

But the sof_restore_pipelines() function still chooses the
default config for the DAI widget upon resuming. Fix this
to use the last used config when setting up the DAI widget
during resume.

Fixes: a1e1f10a6ed6 ("ASoC: SOF: match SSP config with pcm hw params")
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
---
 sound/soc/sof/sof-audio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/sof/sof-audio.c b/sound/soc/sof/sof-audio.c
index 0d0d47dc0246..510883cd9107 100644
--- a/sound/soc/sof/sof-audio.c
+++ b/sound/soc/sof/sof-audio.c
@@ -267,7 +267,7 @@ int sof_restore_pipelines(struct device *dev)
 	/* restore dai links */
 	list_for_each_entry_reverse(dai, &sdev->dai_list, list) {
 		struct sof_ipc_reply reply;
-		struct sof_ipc_dai_config *config = dai->dai_config;
+		struct sof_ipc_dai_config *config = &dai->dai_config[dai->current_config];
 
 		if (!config) {
 			dev_err(dev, "error: no config for DAI %s\n",
-- 
2.25.1


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

* Re: [PATCH] ASoC: SOF: use current DAI config during resume
  2021-04-14 16:59 [PATCH] ASoC: SOF: use current DAI config during resume Ranjani Sridharan
@ 2021-04-15 15:53 ` Mark Brown
  2021-04-15 16:04   ` Pierre-Louis Bossart
  2021-04-15 18:33 ` Mark Brown
  1 sibling, 1 reply; 5+ messages in thread
From: Mark Brown @ 2021-04-15 15:53 UTC (permalink / raw)
  To: Ranjani Sridharan; +Cc: tiwai, alsa-devel, Pierre-Louis Bossart, Kai Vehmanen

[-- Attachment #1: Type: text/plain, Size: 549 bytes --]

On Wed, Apr 14, 2021 at 09:59:26AM -0700, Ranjani Sridharan wrote:
> Recently, the sof_pcm_dai_link_fixup() function was
> updated to match SSP config with the PCM hw_params
> and set the current_config for the DAI widget.
> 
> But the sof_restore_pipelines() function still chooses the
> default config for the DAI widget upon resuming. Fix this
> to use the last used config when setting up the DAI widget
> during resume.
> 
> Fixes: a1e1f10a6ed6 ("ASoC: SOF: match SSP config with pcm hw params")

I don't seem to have that commit.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH] ASoC: SOF: use current DAI config during resume
  2021-04-15 15:53 ` Mark Brown
@ 2021-04-15 16:04   ` Pierre-Louis Bossart
  2021-04-15 16:06     ` Mark Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Pierre-Louis Bossart @ 2021-04-15 16:04 UTC (permalink / raw)
  To: Mark Brown, Ranjani Sridharan; +Cc: tiwai, alsa-devel, Kai Vehmanen



On 4/15/21 10:53 AM, Mark Brown wrote:
> On Wed, Apr 14, 2021 at 09:59:26AM -0700, Ranjani Sridharan wrote:
>> Recently, the sof_pcm_dai_link_fixup() function was
>> updated to match SSP config with the PCM hw_params
>> and set the current_config for the DAI widget.
>>
>> But the sof_restore_pipelines() function still chooses the
>> default config for the DAI widget upon resuming. Fix this
>> to use the last used config when setting up the DAI widget
>> during resume.
>>
>> Fixes: a1e1f10a6ed6 ("ASoC: SOF: match SSP config with pcm hw params")
> 
> I don't seem to have that commit.

I think it should be:

Fixes: c943a586f6e49 ("ASoC: SOF: match SSP config with pcm hw params")

I can re-send if needed

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

* Re: [PATCH] ASoC: SOF: use current DAI config during resume
  2021-04-15 16:04   ` Pierre-Louis Bossart
@ 2021-04-15 16:06     ` Mark Brown
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2021-04-15 16:06 UTC (permalink / raw)
  To: Pierre-Louis Bossart; +Cc: tiwai, alsa-devel, Ranjani Sridharan, Kai Vehmanen

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

On Thu, Apr 15, 2021 at 11:04:36AM -0500, Pierre-Louis Bossart wrote:
> On 4/15/21 10:53 AM, Mark Brown wrote:

> > > Fixes: a1e1f10a6ed6 ("ASoC: SOF: match SSP config with pcm hw params")

> > I don't seem to have that commit.

> I think it should be:

> Fixes: c943a586f6e49 ("ASoC: SOF: match SSP config with pcm hw params")

> I can re-send if needed

Oh, probably yes - please resend.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH] ASoC: SOF: use current DAI config during resume
  2021-04-14 16:59 [PATCH] ASoC: SOF: use current DAI config during resume Ranjani Sridharan
  2021-04-15 15:53 ` Mark Brown
@ 2021-04-15 18:33 ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2021-04-15 18:33 UTC (permalink / raw)
  To: alsa-devel, Ranjani Sridharan
  Cc: tiwai, Mark Brown, Pierre-Louis Bossart, Kai Vehmanen

On Wed, 14 Apr 2021 09:59:26 -0700, Ranjani Sridharan wrote:
> Recently, the sof_pcm_dai_link_fixup() function was
> updated to match SSP config with the PCM hw_params
> and set the current_config for the DAI widget.
> 
> But the sof_restore_pipelines() function still chooses the
> default config for the DAI widget upon resuming. Fix this
> to use the last used config when setting up the DAI widget
> during resume.

Applied to

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

Thanks!

[1/1] ASoC: SOF: use current DAI config during resume
      commit: eea1d18e9b2d959df908746b193f66dba3078473

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-04-15 18:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-14 16:59 [PATCH] ASoC: SOF: use current DAI config during resume Ranjani Sridharan
2021-04-15 15:53 ` Mark Brown
2021-04-15 16:04   ` Pierre-Louis Bossart
2021-04-15 16:06     ` Mark Brown
2021-04-15 18:33 ` 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.