diff options
| author | Michał Kopeć <michal@nozomi.space> | 2026-10-03 21:44:58 +0200 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-10-08 10:15:42 +0200 |
| commit | 6cb1f09e1f699d0c7f748057bc50d84a1e9e77fc (patch) | |
| tree | 53b51504c3cd301c79617087a71aaad6629d15b2 /scripts/Makefile.thinlto | |
| parent | 0d6ef8b530db8dbad6b06309cf2683f1032f8013 (diff) | |
| download | linux-6cb1f09e1f699d0c7f748057bc50d84a1e9e77fc.tar.gz linux-6cb1f09e1f699d0c7f748057bc50d84a1e9e77fc.zip | |
ASoC: mediatek: common: Keep codec references until the card is bound
mtk_soundcard_common_probe() drops the codec references parsed from the
devicetree right after devm_snd_soc_register_card() returns. When a
component is still missing, snd_soc_bind_card() queues the card for a
later rebind and registration still returns success, so the card is not
instantiated yet. The rebind reuses the same dai_link array, but with the
codec references released both the codec name and of_node are unset, so
it fails the dai link sanity check and the sound card never appears.
Release the references right away only when the card was instantiated
or registration failed. Otherwise keep them for the rebind and release
them when the device is unbound.
Fixes: bce93a162505 ("ASoC: mediatek: Add common machine soundcard driver probe mechanism")
Signed-off-by: Michał Kopeć <michal@nozomi.space>
Link: https://patch.msgid.link/20261003194501.832558-2-michal@nozomi.space
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
