linux-stable/sound/soc/sof
Chen-Yu Tsai 760d252a99 ASoc: SOF: topology: Clear SOF link platform name upon unload
[ Upstream commit e0be875c5b ]

The SOF topology loading function sets the device name for the platform
component link. This should be unset when unloading the topology,
otherwise a machine driver unbind/bind or reprobe would complain about
an invalid component as having both its component name and of_node set:

    mt8186_mt6366 sound: ASoC: Both Component name/of_node are set for AFE_SOF_DL1
    mt8186_mt6366 sound: error -EINVAL: Cannot register card
    mt8186_mt6366 sound: probe with driver mt8186_mt6366 failed with error -22

This happens with machine drivers that set the of_node separately.

Clear the SOF link platform name in the topology unload callback.

Fixes: 311ce4fe76 ("ASoC: SOF: Add support for loading topologies")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://patch.msgid.link/20240821041006.2618855-1-wenst@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-09-12 11:10:29 +02:00
..
amd ASoC: SOF: amd: Fix for acp init sequence 2024-09-04 13:24:59 +02:00
imx ASoC: SOF: imx8m: Fix DSP control regmap retrieval 2024-08-03 08:49:51 +02:00
intel ASoC: SOF: Intel: hda-codec: Delay the codec device registration 2024-01-20 11:50:10 +01:00
mediatek ASoC: SOF: Remove libraries from topology lookups 2024-08-14 13:52:53 +02:00
xtensa
compress.c
control.c
core.c ASoC: SOF: core: Ensure sof_ops_free() is still called when probe never ran. 2023-11-20 11:52:06 +01:00
debug.c
iomem-utils.c
ipc.c
ipc3-control.c
ipc3-dtrace.c ASoC: SOF: ipc3-dtrace: uninitialized data in dfsentry_trace_filter_write() 2023-07-27 08:50:40 +02:00
ipc3-loader.c ASoC: SOF: Add some bounds checking to firmware data 2024-03-26 18:20:48 -04:00
ipc3-pcm.c
ipc3-priv.h
ipc3-topology.c
ipc3.c
ipc4-control.c
ipc4-loader.c ASoC: SOF: Introduce container struct for SOF firmware 2024-03-26 18:20:48 -04:00
ipc4-mtrace.c
ipc4-pcm.c
ipc4-priv.h
ipc4-topology.c
ipc4-topology.h
ipc4.c ASoC: SOF: ipc4: check return value of snd_sof_ipc_msg_data 2024-08-29 17:30:33 +02:00
Kconfig
loader.c ASoC: SOF: Introduce container struct for SOF firmware 2024-03-26 18:20:48 -04:00
Makefile
nocodec.c
ops.c
ops.h
pcm.c ASoC: SOF: pcm: fix pm_runtime imbalance in error handling 2023-06-09 10:34:13 +02:00
pm.c ASoC: SOF: pm: save io region state in case of errors in resume 2023-06-09 10:34:13 +02:00
sof-acpi-dev.c
sof-acpi-dev.h
sof-audio.c ASoC: SOF: sof-audio: Skip unprepare for in-use widgets on error rollback 2024-07-25 09:49:15 +02:00
sof-audio.h
sof-client-ipc-flood-test.c
sof-client-ipc-msg-injector.c
sof-client-probes.c ASoC: SOF: sof-client-probes: fix pm_runtime imbalance in error handling 2023-06-09 10:34:13 +02:00
sof-client-probes.h
sof-client.c
sof-client.h
sof-of-dev.c
sof-of-dev.h
sof-pci-dev.c ASoC: SOF: Pass PCI SSID to machine driver 2023-11-28 17:06:58 +00:00
sof-pci-dev.h
sof-priv.h ASoC: SOF: Introduce container struct for SOF firmware 2024-03-26 18:20:48 -04:00
sof-utils.c
sof-utils.h
stream-ipc.c
topology.c ASoc: SOF: topology: Clear SOF link platform name upon unload 2024-09-12 11:10:29 +02:00
trace.c