drivers/sof: Add support for max98357a with 4-ch output

Will allow boards using this speaker configuration to correctly specify
their output type.

TEST=tested with rest of patch train

Change-Id: Iefcfc928e2611f533af1a2962ec2761ec1b7bf3a
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75210
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: CoolStar <coolstarorganization@gmail.com>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Matt DeVillier 2023-05-13 14:46:51 -05:00 committed by Felix Held
parent 33f9170dae
commit e1ff8756cf
2 changed files with 5 additions and 3 deletions

View File

@ -11,6 +11,7 @@ enum _spkr_tplg {
max98373 = 1,
max98360a,
max98357a,
max98357a_tdm,
max98390,
rt1011,
rt1015,

View File

@ -14,9 +14,10 @@ static const char *get_spkr_tplg_str(unsigned int index)
case 1: return "max98373";
case 2: return "max98360a";
case 3: return "max98357a";
case 4: return "max98390";
case 5: return "rt1011";
case 6: return "rt1015";
case 4: return "max98357a-tdm";
case 5: return "max98390";
case 6: return "rt1011";
case 7: return "rt1015";
default: return "default";
}
}