]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: match SSP config with pcm hw params
authorJaska Uimonen <jaska.uimonen@linux.intel.com>
Fri, 26 Mar 2021 16:51:50 +0000 (18:51 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 29 Mar 2021 16:28:19 +0000 (17:28 +0100)
commit6104528efe63bf29802a7f41a0b8677ad4b3efb0
tree19b8cb86a570f248740fd09c74ec096caabad6d9
parent7f39e901f881ee7eee32354576688791c72e37f4
ASoC: SOF: match SSP config with pcm hw params

This patch adds a function to find a match between pcm hw params and SSP
DAI config. Config is matched against sample rate and if match is found
current config is set. If match isn't found last matched config is left
as current i.e. current config is not touched. Functionality for SSP
DAIs with 1 config remains the same as before.

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-3-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/pcm.c