ASoC: Intel: avs: Only create SSP%d snd_soc_dai_driver when requested
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Thu, 12 Oct 2023 08:34:59 +0000 (10:34 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 12 Oct 2023 12:04:37 +0000 (13:04 +0100)
commit393648ce731b087f5a685044c9e41afb815421f7
tree08a994c50ff0444ba7e103f2f365b33352c5abb1
parent59825951707eccf92782e109c04772d34fc07eb6
ASoC: Intel: avs: Only create SSP%d snd_soc_dai_driver when requested

When using TDM configuration some other device may be using SSP%d, so
don't create snd_soc_dai_driver configuration for it unless requested
by TDM configuration.

While at it adjust tdf8532 board to explicitly describe TDM
configuration.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20231012083514.492626-2-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/board_selection.c
sound/soc/intel/avs/pcm.c