Skip to contentSkip to conversation

ASoC: SOF: Remove libraries from topology lookups

PATCH In review [email protected] 4 participants 7 messages Mar 18, 2024 – Mar 20, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: SOF: Remove libraries from topology lookups

From: Curtis Malainey <[email protected]>

Default firmware shipped in open source are not licensed for 3P libraries, therefore topologies should not reference them.

If a OS wants to use 3P (that they have licensed) then they should use the appropriate topology override mechanisms.

Fixes 8a7d5d85ed2161 ("ASoC: SOF: mediatek: mt8195: Add devicetree support to select topologies")
Cc Wojciech Macek <[email protected]>
---
 sound/soc/sof/mediatek/mt8195/mt8195.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/sof/mediatek/mt8195/mt8195.c +1 -1
index 8ee7ee246344c..f143baf75af60 100644
@@ -573,7 +573,7 @@ static struct snd_sof_dsp_ops sof_mt8195_ops = {
 static struct snd_sof_of_mach sof_mt8195_machs[] = {
 	{
 		.compatible = "google,tomato",
-		.sof_tplg_filename = "sof-mt8195-mt6359-rt1019-rt5682-dts.tplg"
+		.sof_tplg_filename = "sof-mt8195-mt6359-rt1019-rt5682.tplg"
 	}, {
 		.compatible = "mediatek,mt8195",
 		.sof_tplg_filename = "sof-mt8195.tplg"
Signature · 1 line
2.44.0.291.gc1ea87d7ee-goog
#1 lore raw

Il 18/03/24 19:29, [email protected] ha scritto:

Quoted 7 lines

From: Curtis Malainey <[email protected]>

Default firmware shipped in open source are not licensed for 3P libraries, therefore topologies should not reference them.

If a OS wants to use 3P (that they have licensed) then they should use the appropriate topology override mechanisms.

That's ok, but still needs the sof-mt8195-mt6359-rt1019-rt5682.tplg firmware in linux-firmware, or this change breaks sound.

Regards,
Angelo

Quoted 21 lines
Fixes 8a7d5d85ed2161 ("ASoC: SOF: mediatek: mt8195: Add devicetree support to select topologies")
Cc Wojciech Macek <[email protected]>
---
  sound/soc/sof/mediatek/mt8195/mt8195.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/sof/mediatek/mt8195/mt8195.c +1 -1
index 8ee7ee246344c..f143baf75af60 100644
@@ -573,7 +573,7 @@ static struct snd_sof_dsp_ops sof_mt8195_ops = {
  static struct snd_sof_of_mach sof_mt8195_machs[] = {
  	{
  		.compatible = "google,tomato",
-		.sof_tplg_filename = "sof-mt8195-mt6359-rt1019-rt5682-dts.tplg"
+		.sof_tplg_filename = "sof-mt8195-mt6359-rt1019-rt5682.tplg"
  	}, {
  		.compatible = "mediatek,mt8195",
  		.sof_tplg_filename = "sof-mt8195.tplg"
#2 lore raw
Quoted 7 lines · AngeloGioacchino Del Regno

Il 18/03/24 19:29, [email protected] ha scritto:

Quoted 5 lines

From: Curtis Malainey <[email protected]>

Default firmware shipped in open source are not licensed for 3P libraries, therefore topologies should not reference them.

Quoted 9 lines
Quoted 2 lines

If a OS wants to use 3P (that they have licensed) then they should use the appropriate topology override mechanisms.

That's ok, but still needs the sof-mt8195-mt6359-rt1019-rt5682.tplg firmware in linux-firmware, or this change breaks sound.

Regards,
Angelo

Got any docs I can refer to? I have never contributed to linux-firmware. If you are willing to send the update on my behalf that would be fine by me as well.

#3 lore raw

Il 19/03/24 16:51, Curtis Malainey ha scritto:

Quoted 15 lines
Quoted 13 lines · AngeloGioacchino Del Regno

Il 18/03/24 19:29, [email protected] ha scritto:

Quoted 7 lines

From: Curtis Malainey <[email protected]>

Default firmware shipped in open source are not licensed for 3P libraries, therefore topologies should not reference them.

If a OS wants to use 3P (that they have licensed) then they should use the appropriate topology override mechanisms.

That's ok, but still needs the sof-mt8195-mt6359-rt1019-rt5682.tplg firmware in linux-firmware, or this change breaks sound.

Quoted 7 lines
Quoted 3 lines

Regards,
Angelo

Got any docs I can refer to? I have never contributed to linux-firmware. If you are willing to send the update on my behalf that would be fine by me as well.

There you go:
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/README.md

Anyway, can you please also describe what is the appropriate topology override mechanism in the description of this commit?

Thanks,
Angelo

#4 lore raw
Quoted 21 lines · AngeloGioacchino Del Regno

Il 19/03/24 16:51, Curtis Malainey ha scritto:

Quoted 19 lines
Quoted 16 lines · AngeloGioacchino Del Regno

Il 18/03/24 19:29, [email protected] ha scritto:

Quoted 7 lines

From: Curtis Malainey <[email protected]>

Default firmware shipped in open source are not licensed for 3P libraries, therefore topologies should not reference them.

If a OS wants to use 3P (that they have licensed) then they should use the appropriate topology override mechanisms.

That's ok, but still needs the sof-mt8195-mt6359-rt1019-rt5682.tplg firmware in linux-firmware, or this change breaks sound.

Regards,
Angelo

Quoted 6 lines
Quoted 3 lines

Got any docs I can refer to? I have never contributed to linux-firmware. If you are willing to send the update on my behalf that would be fine by me as well.

There you go:
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/README.md

Thanks, I have spotted some other issues with the MTK builds, so I will be following up with them on this to get it updated.

Quoted 3 lines

Anyway, can you please also describe what is the appropriate topology override mechanism in the description of this commit?

Yep, as I said to Mark it will be part of v2

Curtis

Quoted 3 lines

Thanks,
Angelo

maintainer
#5 lore raw
In reply to [email protected]
Quoted 2 lines · On Mon, Mar 18, 2024 at 11:29:54AM -0700, [email protected] wrote:

If a OS wants to use 3P (that they have licensed) then they should use the appropriate topology override mechanisms.

A user who's bisected a problem to this commit might welcome some pointer to what the appropriate topology override mechanism is.

#6 lore raw
Quoted 8 lines · Mark Brown
Quoted 2 lines · On Mon, Mar 18, 2024 at 11:29:54AM -0700, [email protected] wrote:

If a OS wants to use 3P (that they have licensed) then they should use the appropriate topology override mechanisms.

A user who's bisected a problem to this commit might welcome some pointer to what the appropriate topology override mechanism is.

Ack, will add in V2