]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: Intel: avs: dmic: Refactor dai_link creation
authorCezary Rojewski <cezary.rojewski@intel.com>
Tue, 2 Sep 2025 09:48:39 +0000 (11:48 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 3 Sep 2025 11:34:00 +0000 (12:34 +0100)
commit765ee69f5e237c33795a0b51417f68ce59fd31a1
tree27b2fe25c43fd545de599e41b80bd4b934d993ca
parent7fa2ebe9b7f4a865030e6ea9be33635b4c1b9224
ASoC: Intel: avs: dmic: Refactor dai_link creation

To allow for multiple instances of the card, move away from static
dai_link declaration.

While at it, simplify the code as the name of the platform component
matches the name of the card's platform_device:
- drop mach->mach_params.platform usage
- drop snd_soc_fixup_dai_links_platform_name() usage

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Message-ID: <20250902094853.1231842-4-cezary.rojewski@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/boards/dmic.c