drivers/sof: Add support for max98373a using port SSP2

Some devices using the MAX98373a smart amp have the speakers connected
to port SSP2 vs the default SSP1, so add a configuration item to be
able to specify that.

TEST=tested with rest of patch train

Change-Id: I11d8011c54946aa72a83c73fa88456b4bb5d7d95
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75231
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Matt DeVillier 2023-05-15 10:36:59 -05:00 committed by Felix Held
parent 4c5ec21374
commit e29b770d83
2 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,8 @@
/* Speaker topology */
enum _spkr_tplg {
max98373 = 1,
max98373 = 1, /* port SSP1 */
max98373_ssp2,
max98360a,
max98357a,
max98357a_tdm,

View File

@ -12,6 +12,7 @@ static const char *get_spkr_tplg_str(enum _spkr_tplg tplg)
{
switch (tplg) {
case max98373: return "max98373";
case max98373_ssp2: return "max98373-ssp2";
case max98360a: return "max98360a";
case max98357a: return "max98357a";
case max98357a_tdm: return "max98357a-tdm";