Skip to contentSkip to conversation

SoC: SOF: Intel: FIx device descriptions (missing ops_free)

PATCH In review Peter Ujfalusi 2 participants 6 messages Mar 7, 2023 – Mar 8, 2023

Subsystems (3)
lore
Share & tools
lore

Peter Ujfalusi

author maintainer
#0 lore raw

cover SoC: SOF: Intel: FIx device descriptions (missing ops_free)

Hi,

We have recently noticed that the ops_free callback was missed for the device descriptions on Intel platforms.

Regards,
Peter
---
Ranjani Sridharan (4):
ASoC: SOF: Intel: MTL: Fix the device description
ASoC: SOF: Intel: HDA: Fix device description
ASoC: SOF: Intel: SKL: Fix device description
ASOC: SOF: Intel: pci-tgl: Fix device description

 sound/soc/sof/intel/pci-apl.c | 1 +
 sound/soc/sof/intel/pci-cnl.c | 2 ++
 sound/soc/sof/intel/pci-icl.c | 1 +
 sound/soc/sof/intel/pci-mtl.c | 1 +
 sound/soc/sof/intel/pci-skl.c | 2 ++
 sound/soc/sof/intel/pci-tgl.c | 7 +++++++
 6 files changed, 14 insertions(+)
Signature · 1 line
2.39.2
author maintainer
#1 lore raw

PATCH 1/4 ASoC: SOF: Intel: MTL: Fix the device description

From: Ranjani Sridharan <[email protected]>

Add the missing ops_free callback.

Fixes 064520e8aeaa ("ASoC: SOF: Intel: Add support for MeteorLake (MTL)")
---
 sound/soc/sof/intel/pci-mtl.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/sof/intel/pci-mtl.c +1 -0
index 6e4e6d4ef5a5..b183dc0014b4 100644
@@ -46,6 +46,7 @@ static const struct sof_dev_desc mtl_desc = {
 	.nocodec_tplg_filename = "sof-mtl-nocodec.tplg",
 	.ops = &sof_mtl_ops,
 	.ops_init = sof_mtl_ops_init,
+	.ops_free = hda_ops_free,
 };
 
 /* PCI IDs */
Signature · 1 line
2.39.2
author maintainer
#2 lore raw

PATCH 2/4 ASoC: SOF: Intel: HDA: Fix device description

In reply to Peter Ujfalusi

From: Ranjani Sridharan <[email protected]>

Add the missing ops_free callback for APL/CNL/CML/JSL/TGL/EHL platforms.

Fixes 1da51943725f ("ASoC: SOF: Intel: hda: init NHLT for IPC4")
---
 sound/soc/sof/intel/pci-apl.c | 1 +
 sound/soc/sof/intel/pci-cnl.c | 2 ++
 sound/soc/sof/intel/pci-icl.c | 1 +
 sound/soc/sof/intel/pci-tgl.c | 5 +++++
 4 files changed, 9 insertions(+)
sound/soc/sof/intel/pci-apl.c +1 -0
index 69279dcc92dc..aff6cb573c27 100644
@@ -78,6 +78,7 @@ static const struct sof_dev_desc glk_desc = {
 	.nocodec_tplg_filename = "sof-glk-nocodec.tplg",
 	.ops = &sof_apl_ops,
 	.ops_init = sof_apl_ops_init,
+	.ops_free = hda_ops_free,
 };
 
 /* PCI IDs */
sound/soc/sof/intel/pci-cnl.c +2 -0
index 8db3f8d15b55..4c0c1c369dcd 100644
@@ -48,6 +48,7 @@ static const struct sof_dev_desc cnl_desc = {
 	.nocodec_tplg_filename = "sof-cnl-nocodec.tplg",
 	.ops = &sof_cnl_ops,
 	.ops_init = sof_cnl_ops_init,
+	.ops_free = hda_ops_free,
 };
 
 static const struct sof_dev_desc cfl_desc = {
@@ -111,6 +112,7 @@ static const struct sof_dev_desc cml_desc = {
 	.nocodec_tplg_filename = "sof-cnl-nocodec.tplg",
 	.ops = &sof_cnl_ops,
 	.ops_init = sof_cnl_ops_init,
+	.ops_free = hda_ops_free,
 };
 
 /* PCI IDs */
sound/soc/sof/intel/pci-icl.c +1 -0
index d6cf75e357db..6785669113b3 100644
@@ -79,6 +79,7 @@ static const struct sof_dev_desc jsl_desc = {
 	.nocodec_tplg_filename = "sof-jsl-nocodec.tplg",
 	.ops = &sof_cnl_ops,
 	.ops_init = sof_cnl_ops_init,
+	.ops_free = hda_ops_free,
 };
 
 /* PCI IDs */
sound/soc/sof/intel/pci-tgl.c +5 -0
index e80c4dfef85a..adc7314a1b57 100644
@@ -48,6 +48,7 @@ static const struct sof_dev_desc tgl_desc = {
 	.nocodec_tplg_filename = "sof-tgl-nocodec.tplg",
 	.ops = &sof_tgl_ops,
 	.ops_init = sof_tgl_ops_init,
+	.ops_free = hda_ops_free,
 };
 
 static const struct sof_dev_desc tglh_desc = {
@@ -110,6 +111,7 @@ static const struct sof_dev_desc ehl_desc = {
 	.nocodec_tplg_filename = "sof-ehl-nocodec.tplg",
 	.ops = &sof_tgl_ops,
 	.ops_init = sof_tgl_ops_init,
+	.ops_free = hda_ops_free,
 };
 
 static const struct sof_dev_desc adls_desc = {
@@ -141,6 +143,7 @@ static const struct sof_dev_desc adls_desc = {
 	.nocodec_tplg_filename = "sof-adl-nocodec.tplg",
 	.ops = &sof_tgl_ops,
 	.ops_init = sof_tgl_ops_init,
+	.ops_free = hda_ops_free,
 };
 
 static const struct sof_dev_desc adl_desc = {
@@ -172,6 +175,7 @@ static const struct sof_dev_desc adl_desc = {
 	.nocodec_tplg_filename = "sof-adl-nocodec.tplg",
 	.ops = &sof_tgl_ops,
 	.ops_init = sof_tgl_ops_init,
+	.ops_free = hda_ops_free,
 };
 
 static const struct sof_dev_desc adl_n_desc = {
@@ -203,6 +207,7 @@ static const struct sof_dev_desc adl_n_desc = {
 	.nocodec_tplg_filename = "sof-adl-nocodec.tplg",
 	.ops = &sof_tgl_ops,
 	.ops_init = sof_tgl_ops_init,
+	.ops_free = hda_ops_free,
 };
 
 static const struct sof_dev_desc rpls_desc = {
Signature · 1 line
2.39.2
author maintainer
#3 lore raw

PATCH 3/4 ASoC: SOF: Intel: SKL: Fix device description

In reply to Peter Ujfalusi

From: Ranjani Sridharan <[email protected]>

Add missing ops_free callback for SKL/KBL platforms.

Fixes 52d7939d10f2 ("ASoC: SOF: Intel: add ops for SKL/KBL")
---
 sound/soc/sof/intel/pci-skl.c | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/sof/intel/pci-skl.c +2 -0
index 3a99dc444f92..5b4bccf81965 100644
@@ -38,6 +38,7 @@ static struct sof_dev_desc skl_desc = {
 	.nocodec_tplg_filename = "sof-skl-nocodec.tplg",
 	.ops = &sof_skl_ops,
 	.ops_init = sof_skl_ops_init,
+	.ops_free = hda_ops_free,
 };
 
 static struct sof_dev_desc kbl_desc = {
@@ -61,6 +62,7 @@ static struct sof_dev_desc kbl_desc = {
 	.nocodec_tplg_filename = "sof-kbl-nocodec.tplg",
 	.ops = &sof_skl_ops,
 	.ops_init = sof_skl_ops_init,
+	.ops_free = hda_ops_free,
 };
 
 /* PCI IDs */
Signature · 1 line
2.39.2
author maintainer
#4 lore raw

PATCH 4/4 ASOC: SOF: Intel: pci-tgl: Fix device description

In reply to Peter Ujfalusi

From: Ranjani Sridharan <[email protected]>

Add the missing ops_free callback.

Fixes 63d375b9f2a9 ("ASoC: SOF: Intel: pci-tgl: use RPL specific firmware definitions")
---
 sound/soc/sof/intel/pci-tgl.c | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/sof/intel/pci-tgl.c +2 -0
index adc7314a1b57..22e769e0831d 100644
@@ -239,6 +239,7 @@ static const struct sof_dev_desc rpls_desc = {
 	.nocodec_tplg_filename = "sof-rpl-nocodec.tplg",
 	.ops = &sof_tgl_ops,
 	.ops_init = sof_tgl_ops_init,
+	.ops_free = hda_ops_free,
 };
 
 static const struct sof_dev_desc rpl_desc = {
@@ -270,6 +271,7 @@ static const struct sof_dev_desc rpl_desc = {
 	.nocodec_tplg_filename = "sof-rpl-nocodec.tplg",
 	.ops = &sof_tgl_ops,
 	.ops_init = sof_tgl_ops_init,
+	.ops_free = hda_ops_free,
 };
 
 /* PCI IDs */
Signature · 1 line
2.39.2
maintainer
#5 lore raw
In reply to Peter Ujfalusi
Quoted 6 lines · Peter Ujfalusi

We have recently noticed that the ops_free callback was missed for the device descriptions on Intel platforms.

Regards,
Peter

Applied to

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

Thanks!

[1/4] ASoC: SOF: Intel: MTL: Fix the device description

      commit: a659e35ca0af2765f567bdfdccfa247eff0cdab8
[2/4] ASoC: SOF: Intel: HDA: Fix device description
      commit: 9eb2b4cac223095d2079a6d52b8bbddc6e064288
[3/4] ASoC: SOF: Intel: SKL: Fix device description
      commit: 1f320bdb29b644a2c9fb301a6fb2d6170e6417e9
[4/4] ASOC: SOF: Intel: pci-tgl: Fix device description
      commit: 376f79bbf521fc37b871b536276319951b5bef3a

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