From e1ff8756cfeade8ea30e6b78581b5c1328ef8aca Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Sat, 13 May 2023 14:46:51 -0500 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75210 Tested-by: build bot (Jenkins) Reviewed-by: CoolStar Reviewed-by: Felix Held --- src/drivers/sof/chip.h | 1 + src/drivers/sof/sof.c | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/drivers/sof/chip.h b/src/drivers/sof/chip.h index 134c0deadc..518e06c3bd 100644 --- a/src/drivers/sof/chip.h +++ b/src/drivers/sof/chip.h @@ -11,6 +11,7 @@ enum _spkr_tplg { max98373 = 1, max98360a, max98357a, + max98357a_tdm, max98390, rt1011, rt1015, diff --git a/src/drivers/sof/sof.c b/src/drivers/sof/sof.c index d11f7300c0..a8fc3cee0d 100644 --- a/src/drivers/sof/sof.c +++ b/src/drivers/sof/sof.c @@ -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"; } } -- cgit v1.2.1