Harden SSP boards and add TDM support
authorMark Brown <broonie@kernel.org>
Thu, 12 Oct 2023 16:51:49 +0000 (17:51 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 12 Oct 2023 16:51:49 +0000 (17:51 +0100)
commit47c09498666056d131b0e507eb65ecf854b10085
tree8dc4585e0c52cef6a089ce86da9f2bf7b5f5dc71
parent41cb1126bed152f7679417834ad7ea39f2252dfb
parent5e07eb3ab981c5752c0e5ac324fbd166a12003ee
Harden SSP boards and add TDM support

Merge series from Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>:

In quite a few places in code there are checks for number of SSPs
present on system, to reduce maintenance burden introduce helper
functions allowing to get SSP and TDM from machine board configuration.

Current mechanism replaces "%d" present in some routes and widget names
with SSP number. However there are also configurations which make use of
of TDM number, in which case expected behavior would be to have string
in form of SSP:TDM - see implementation of avs_i2s_platform_register()
in sound/soc/intel/avs/pcm.c. Implement custom function, which parses
string and make use of it when parsing topology. While at it make sure
that we generate dynamic names only if there is no multiple SSPs or TDMs
defined.

Migrate all boards to handle TDM if requested.