]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: sof_es8336: remove hard-coded SSP selection
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 25 Jul 2022 19:49:06 +0000 (14:49 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 25 Jul 2022 21:37:09 +0000 (22:37 +0100)
commit3b5ab4d8e461db547c4638a6371e929ee6121a20
tree492a309c131034e15eea260b32c87caf8aef5a37
parent753d346a49812d5c4c1d203b1500a37470cbaed0
ASoC: Intel: sof_es8336: remove hard-coded SSP selection

For some reason we open-coded the SSP selection and only supported
SSP0, 1 and 2. On ApolloLake platforms, the SSP5 can be used as well
for the ES8336 hardware link.

Remove hard-coded if/else code and align with same code already used
in the SOF driver.

BugLink: https://github.com/thesofproject/sof/issues/6015
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220725194909.145418-8-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_es8336.c