]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: mediatek: mt8195-mt6359: Properly register sound card for SOF
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 6 Sep 2022 09:27:23 +0000 (11:27 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 7 Sep 2022 11:40:48 +0000 (12:40 +0100)
commitdf46acd39b7e7705951e294cb99992189d7a0fbf
tree4e9d5f6ff5c0ebac26aec2853af8d657ba77cf60
parent5b5916af629865aca07f0f4e544e9cd9b890cadd
ASoC: mediatek: mt8195-mt6359: Properly register sound card for SOF

Adding a probe callback on this snd_soc_card is required when
Sound Open Firmware support is desired, as we need to appropriately
populate the stream_name for SOF to be able to bind widgets.
Failing to do so will produce errors when applying the SOF topology
leading to card registration failure (so, no sound).
While at it, also make sure to fill the topology_shortname as required.

Fixes: 933ab1d64879 ("ASoC: mediatek: mt8195: extract SOF common code")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220906092727.37324-2-angelogioacchino.delregno@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8195/mt8195-mt6359.c