linux/sound
Chen-Yu Tsai e0be875c5b
ASoc: SOF: topology: Clear SOF link platform name upon unload
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>
2024-08-28 13:01:44 +01:00
..
ac97 driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
aoa
arm
atmel
core sound fixes for 6.11-rc1 2024-07-26 11:01:31 -07:00
drivers parport: Remove parport_driver.devmodel 2024-07-03 16:44:22 +02:00
firewire ALSA: firewire-lib: fix wrong value as length of header for CIP_NO_HEADER case 2024-07-27 10:28:36 +09:00
hda Driver core changes for 6.11-rc1 2024-07-25 10:42:22 -07:00
i2c
isa ALSA: sb: Drop NULL check for snd_ctl_remove() 2024-06-18 12:51:50 +02:00
mips
oss sound/oss/dmasound: add missing MODULE_DESCRIPTION() macro 2024-06-18 11:55:53 +02:00
parisc
pci sound fixes for 6.11-rc1 2024-07-26 11:01:31 -07:00
pcmcia
ppc ALSA: ppc: keywest: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-07-09 09:16:30 +02:00
sh
soc ASoc: SOF: topology: Clear SOF link platform name upon unload 2024-08-28 13:01:44 +01:00
sparc
spi ALSA: spi: Drop NULL check for snd_ctl_remove() 2024-06-18 12:54:34 +02:00
synth
usb ALSA: usb-audio: Add a quirk for Sonix HD USB Camera 2024-07-22 14:45:14 +02:00
virtio virtio: rename virtio_find_vqs_info() to virtio_find_vqs() 2024-07-17 05:20:58 -04:00
x86 Merge drm/drm-next into drm-intel-next 2024-06-19 11:38:31 +03:00
xen ALSA: xen-front: remove unused struct 'alsa_sndif_hw_param' 2024-06-13 14:14:46 +02:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c