OSDN Git Service

ASoC: SOF: parse multiple SSP DAI and hw configs
authorJaska Uimonen <jaska.uimonen@linux.intel.com>
Fri, 26 Mar 2021 16:51:48 +0000 (18:51 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 29 Mar 2021 16:28:17 +0000 (17:28 +0100)
commitc1c03888f1e89e669aa6da0c9a491f02fd6a999e
tree7b002e58f4630b648ec8441186020d23c025a62f
parent502e5321d89214a34a7b8bda697fc98d14b51cae
ASoC: SOF: parse multiple SSP DAI and hw configs

ASoC parses multiple hw_configs defined in topology. However currently
in SOF only the first config is used and others are discarded. First
change SOF driver to parse and save possible multiple configs in ssp
case. Also save the default config value provided by ASoC. Functionality
with only one defined config stays the same.

Signed-off-by: Jaska Uimonen <jaska.uimonen@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20210326165150.255533-1-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/pcm.c
sound/soc/sof/sof-audio.h
sound/soc/sof/topology.c