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)
commit24913664b5103c3dd454081f79ba663ec18f65a1
tree492a309c131034e15eea260b32c87caf8aef5a37
parentfae93e3b952aeb0bad1a3d80ed9592cfc24aa8c6
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