]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: Intel: avs: probe: Refactor dai_link creation
authorCezary Rojewski <cezary.rojewski@intel.com>
Tue, 2 Sep 2025 09:48:46 +0000 (11:48 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 3 Sep 2025 11:34:07 +0000 (12:34 +0100)
commita46b3da24cdce85b7fca6f012f68b3857494ade6
tree9dde303072076618a7164df353406688592f0779
parentba3684328208129d1d72ec50c417bc8a9213d4c5
ASoC: Intel: avs: probe: 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-11-cezary.rojewski@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/boards/probe.c